任务模块编写

main
dongdingding 2 months ago
parent a8be580801
commit a0664ee32e

@ -3,13 +3,15 @@ package com.ruoyi.tc.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.tc.entity.AssetCurrent;
import com.ruoyi.tc.entity.AssetTask; import com.ruoyi.tc.entity.AssetTask;
import com.ruoyi.tc.entity.request.AssestTaskXqRequest;
import com.ruoyi.tc.entity.request.AssetTaskPageRequest; import com.ruoyi.tc.entity.request.AssetTaskPageRequest;
import com.ruoyi.tc.entity.response.AssestTaskXqresponse;
import com.ruoyi.tc.entity.response.AssetTaskIdResponse; import com.ruoyi.tc.entity.response.AssetTaskIdResponse;
import com.ruoyi.tc.service.AssetTaskService; import com.ruoyi.tc.service.AssetTaskService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.data.domain.PageRequest;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -95,5 +97,34 @@ public class AssetTaskController extends BaseController {
return AjaxResult.success(this.assetTaskService.deleteById(id)); return AjaxResult.success(this.assetTaskService.deleteById(id));
} }
/**
*
*
* @param taskId id
* @param assetId id
* @return
*/
@ApiOperation(value = "任务审核", response = AssetCurrent.class)
@GetMapping("/taskSh")
public AjaxResult taskSh(@RequestParam("taskId") int taskId, @RequestParam("assetId") int assetId) {
assetTaskService.taskSh(taskId,assetId);
return AjaxResult.success();
}
/**
*
*
* @param page
* @param pageRequest
* @return
*/
@ApiOperation(value = "资产核查信息", response = AssestTaskXqresponse.class)
@GetMapping("/zcHc")
public AjaxResult zcHc(Page<AssestTaskXqresponse> page, AssestTaskXqRequest pageRequest) {
return AjaxResult.success(assetTaskService.zcHc(page, pageRequest));
}
} }

@ -31,7 +31,7 @@ import java.util.List;
*/ */
@Api(tags = "单位表控制层") @Api(tags = "单位表控制层")
@RestController @RestController
@PreAuthorize("@ss.hasAnyRoles('admin,common')") //@PreAuthorize("@ss.hasAnyRoles('admin,common')")
@RequestMapping("/tc/unit") @RequestMapping("/tc/unit")
public class UnitController { public class UnitController {
@ -165,4 +165,16 @@ public class UnitController {
examineInfoService.deleteByUnitIds(ids); examineInfoService.deleteByUnitIds(ids);
return AjaxResult.success(); return AjaxResult.success();
} }
/**
*
*/
@ApiOperation(value = "单位列表过滤", response = Unit.class)
@GetMapping("/dwList")
public AjaxResult dwList(UnitRequest unit) {
Page<Unit> page = new Page<>();
page.setSize(unit.getSize());
page.setCurrent(unit.getCurrent());
return AjaxResult.success(unitService.dwList(page, unit));
}
} }

@ -193,19 +193,19 @@ public class AssetCurrent extends BaseClass implements Serializable {
*/ */
@Excel(name = "机密性",dictType = "zc_c_i_a",comboReadDict = true,sort = 39) @Excel(name = "机密性",dictType = "zc_c_i_a",comboReadDict = true,sort = 39)
@ApiModelProperty("C-机密性(字典)") @ApiModelProperty("C-机密性(字典)")
private String cJmx; private String cjmx;
/** /**
* I- * I-
*/ */
@Excel(name = "完整性",dictType = "zc_c_i_a",comboReadDict = true,sort = 40) @Excel(name = "完整性",dictType = "zc_c_i_a",comboReadDict = true,sort = 40)
@ApiModelProperty("I-完整性(字典)") @ApiModelProperty("I-完整性(字典)")
private String iWzx; private String iwzx;
/** /**
* A-( * A-(
*/ */
@Excel(name = "可用性",dictType = "zc_c_i_a",comboReadDict = true,sort = 41) @Excel(name = "可用性",dictType = "zc_c_i_a",comboReadDict = true,sort = 41)
@ApiModelProperty("A-可用性(字典)") @ApiModelProperty("A-可用性(字典)")
private String aKyx; private String akyx;
/** /**
* *
*/ */

@ -0,0 +1,38 @@
package com.ruoyi.tc.entity.request;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.bind.annotation.RequestParam;
/**
* @author dong
* @since 2024/11/19 18:21
*/
@Data
@ApiModel("资产核查请求类")
public class AssestTaskXqRequest {
/**
* id
*/
@ApiModelProperty("任务id")
private String taskId;
/**
*
*/
@ApiModelProperty("资产类型")
private String zclx;
/**
*
*/
@ApiModelProperty("单位名称")
private String dwmc;
/**
* 01345
*/
@ApiModelProperty("审核状态0待核查1待审核3审核通过4审核不通过5审核不通过")
private String status;
}

@ -0,0 +1,50 @@
package com.ruoyi.tc.entity.response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author dong
* @since 2024/11/19 15:09
*/
@Data
@ApiModel("资产核查响应类")
public class AssestTaskXqresponse {
/**
* id
*/
@ApiModelProperty("资产id")
private Integer id;
/**
* id
*/
@ApiModelProperty("任务id")
private Integer taskId;
/**
*
*/
@ApiModelProperty("系统类型")
private String xtlx;
/**
*
*/
@ApiModelProperty("系统名称")
private String xtmc;
/**
*
*/
@ApiModelProperty("资产单位名称")
private String zcdwmc;
/**
* 01345
*/
@ApiModelProperty("审核状态0待核查1待审核3审核通过4审核不通过5审核不通过")
private String status;
}

@ -21,7 +21,7 @@ import java.io.Serializable;
public class AssetBasicNetworkCpResponse extends BaseClass implements Serializable { public class AssetBasicNetworkCpResponse extends BaseClass implements Serializable {
private Integer id; private Long id;
/** /**
* id * id
@ -52,7 +52,7 @@ public class AssetBasicNetworkCpResponse extends BaseClass implements Serializab
* *
*/ */
@ApiModelProperty("操作系统") @ApiModelProperty("操作系统")
private Integer czxt; private String czxt;
/** /**
* *
*/ */
@ -86,4 +86,7 @@ public class AssetBasicNetworkCpResponse extends BaseClass implements Serializab
@ApiModelProperty("删除标志0代表存在 2代表删除") @ApiModelProperty("删除标志0代表存在 2代表删除")
private String delFlag; private String delFlag;
@ApiModelProperty("任务id")
private Integer taskId;
} }

@ -22,8 +22,7 @@ import java.io.Serializable;
@TableName(value = "asset_business_form_cp") @TableName(value = "asset_business_form_cp")
public class AssetBusinessFormCpResponse extends BaseClass implements Serializable { public class AssetBusinessFormCpResponse extends BaseClass implements Serializable {
private Long id;
private Integer id;
/** /**
* id * id
*/ */
@ -39,7 +38,7 @@ public class AssetBusinessFormCpResponse extends BaseClass implements Serializab
* - * -
*/ */
@ApiModelProperty("云平台-是否租户级安全") @ApiModelProperty("云平台-是否租户级安全")
private Integer yptSfzh; private String yptSfzh;
/** /**
* - * -
*/ */
@ -122,7 +121,7 @@ public class AssetBusinessFormCpResponse extends BaseClass implements Serializab
* - * -
*/ */
@ApiModelProperty("大数据平台-是否数据审计") @ApiModelProperty("大数据平台-是否数据审计")
private Integer dsjSfsjsj; private String dsjSfsjsj;
/** /**
* - * -
*/ */
@ -139,7 +138,7 @@ public class AssetBusinessFormCpResponse extends BaseClass implements Serializab
* - * -
*/ */
@ApiModelProperty("一般物联网设备-服务对象") @ApiModelProperty("一般物联网设备-服务对象")
private Integer wlwsbFwdx; private String wlwsbFwdx;
/** /**
* - * -
*/ */
@ -150,7 +149,7 @@ public class AssetBusinessFormCpResponse extends BaseClass implements Serializab
* - * -
*/ */
@ApiModelProperty("一般物联网设备-网络互联情况") @ApiModelProperty("一般物联网设备-网络互联情况")
private Integer wlwsbWlhlqk; private String wlwsbWlhlqk;
/** /**
* - * -
*/ */
@ -161,7 +160,7 @@ public class AssetBusinessFormCpResponse extends BaseClass implements Serializab
* - * -
*/ */
@ApiModelProperty("一般物联网设备-服务范围") @ApiModelProperty("一般物联网设备-服务范围")
private Integer wlwsbFwfw; private String wlwsbFwfw;
/** /**
* - * -
*/ */
@ -262,7 +261,7 @@ public class AssetBusinessFormCpResponse extends BaseClass implements Serializab
* APP-APP * APP-APP
*/ */
@ApiModelProperty("移动APP-APP是否有身份认证") @ApiModelProperty("移动APP-APP是否有身份认证")
private Integer appSfysfrz; private String appSfysfrz;
/** /**
* - * -
*/ */
@ -279,7 +278,7 @@ public class AssetBusinessFormCpResponse extends BaseClass implements Serializab
* - * -
*/ */
@ApiModelProperty("工业控制-服务对象") @ApiModelProperty("工业控制-服务对象")
private Integer gykzFwdx; private String gykzFwdx;
/** /**
* - * -
*/ */
@ -290,7 +289,7 @@ public class AssetBusinessFormCpResponse extends BaseClass implements Serializab
* - * -
*/ */
@ApiModelProperty("工业控制-网络互联情况") @ApiModelProperty("工业控制-网络互联情况")
private Integer gykzWlhxqk; private String gykzWlhxqk;
/** /**
* - * -
*/ */
@ -301,7 +300,7 @@ public class AssetBusinessFormCpResponse extends BaseClass implements Serializab
* - * -
*/ */
@ApiModelProperty("工业控制-服务范围") @ApiModelProperty("工业控制-服务范围")
private Integer gykzFwfw; private String gykzFwfw;
/** /**
* - * -
*/ */
@ -366,7 +365,7 @@ public class AssetBusinessFormCpResponse extends BaseClass implements Serializab
* CDN-CDN使 * CDN-CDN使
*/ */
@ApiModelProperty("CDN信息-CDN是否使用") @ApiModelProperty("CDN信息-CDN是否使用")
private Integer cdnSfsy; private String cdnSfsy;
/** /**
* CDN-CDN * CDN-CDN
*/ */
@ -400,4 +399,8 @@ public class AssetBusinessFormCpResponse extends BaseClass implements Serializab
@ApiModelProperty("删除标志0代表存在 2代表删除") @ApiModelProperty("删除标志0代表存在 2代表删除")
private String delFlag; private String delFlag;
@ApiModelProperty("任务id")
private Integer taskId;
} }

@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.annotation.Excel;
import com.ruoyi.tc.baseClass.BaseClass; import com.ruoyi.tc.baseClass.BaseClass;
import com.ruoyi.tc.entity.AssetBasicNetwork; import com.ruoyi.tc.entity.AssetBasicNetwork;
import com.ruoyi.tc.entity.AssetBusinessForm;
import com.ruoyi.tc.entity.AssetSupplyChain;
import com.ruoyi.tc.entity.UnitOtherConcat; import com.ruoyi.tc.entity.UnitOtherConcat;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
@ -28,9 +30,7 @@ import java.util.List;
public class AssetCurrentResponse extends BaseClass implements Serializable { public class AssetCurrentResponse extends BaseClass implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private Long id;
private Integer id;
/** /**
* *
@ -120,20 +120,20 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@Excel(name = "*系统类型", dictType = "zc_xtlx", comboReadDict = true, sort = 8) @Excel(name = "*系统类型", dictType = "zc_xtlx", comboReadDict = true, sort = 8)
@NotNull @NotNull
@ApiModelProperty("系统类型(字典)") @ApiModelProperty("系统类型(字典)")
private Integer xtlx; private String xtlx;
/** /**
* *
*/ */
@Excel(name = "系统重要性", dictType = "zc_xtzyx", comboReadDict = true, sort = 9) @Excel(name = "系统重要性", dictType = "zc_xtzyx", comboReadDict = true, sort = 9)
@ApiModelProperty("系统重要性(字典)") @ApiModelProperty("系统重要性(字典)")
private Integer xtzyx; private String xtzyx;
/** /**
* *
*/ */
@NotNull @NotNull
@Excel(name = "*是否关基系统", dictType = "is_no", comboReadDict = true, sort = 10) @Excel(name = "*是否关基系统", dictType = "is_no", comboReadDict = true, sort = 10)
@ApiModelProperty("是否关基系统(字典)") @ApiModelProperty("是否关基系统(字典)")
private Integer gjxt; private String gjxt;
/** /**
* *
*/ */
@ -163,7 +163,7 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@NotNull @NotNull
@Excel(name = "*是否是互联网系统", dictType = "is_no", comboReadDict = true, sort = 117) @Excel(name = "*是否是互联网系统", dictType = "is_no", comboReadDict = true, sort = 117)
@ApiModelProperty("是否是互联网系统(字典)") @ApiModelProperty("是否是互联网系统(字典)")
private Integer hlwxt; private String hlwxt;
/** /**
* *
*/ */
@ -177,13 +177,13 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@Excel(name = "*系统状态", dictType = "zc_xtzt", comboReadDict = true, sort = 36) @Excel(name = "*系统状态", dictType = "zc_xtzt", comboReadDict = true, sort = 36)
@NotNull @NotNull
@ApiModelProperty("系统状态(字典)") @ApiModelProperty("系统状态(字典)")
private Integer xtzt; private String xtzt;
/** /**
* 线 * 线
*/ */
@Excel(name = "在线状态", dictType = "zc_zxzt", comboReadDict = true, sort = 37) @Excel(name = "在线状态", dictType = "zc_zxzt", comboReadDict = true, sort = 37)
@ApiModelProperty("在线状态(字典)") @ApiModelProperty("在线状态(字典)")
private Integer zxzt; private String zxzt;
@Excel(name = "使用人", sort = 38) @Excel(name = "使用人", sort = 38)
@TableField(exist = false) @TableField(exist = false)
@ -194,24 +194,24 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
*/ */
@Excel(name = "机密性", dictType = "zc_c_i_a", comboReadDict = true, sort = 39) @Excel(name = "机密性", dictType = "zc_c_i_a", comboReadDict = true, sort = 39)
@ApiModelProperty("C-机密性(字典)") @ApiModelProperty("C-机密性(字典)")
private Integer cJmx; private String cjmx;
/** /**
* I- * I-
*/ */
@Excel(name = "完整性", dictType = "zc_c_i_a", comboReadDict = true, sort = 40) @Excel(name = "完整性", dictType = "zc_c_i_a", comboReadDict = true, sort = 40)
@ApiModelProperty("I-完整性(字典)") @ApiModelProperty("I-完整性(字典)")
private Integer iWzx; private String iwzx;
/** /**
* A-( * A-(
*/ */
@Excel(name = "可用性", dictType = "zc_c_i_a", comboReadDict = true, sort = 41) @Excel(name = "可用性", dictType = "zc_c_i_a", comboReadDict = true, sort = 41)
@ApiModelProperty("A-可用性(字典)") @ApiModelProperty("A-可用性(字典)")
private Integer aKyx; private String akyx;
/** /**
* *
*/ */
@ApiModelProperty("存活率(字典)") @ApiModelProperty("存活率(字典)")
private Integer chl; private String chl;
/** /**
* *
*/ */
@ -242,7 +242,7 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@Excel(name = "*用户规模", dictType = "zc_yhgm", comboReadDict = true, sort = 53) @Excel(name = "*用户规模", dictType = "zc_yhgm", comboReadDict = true, sort = 53)
@NotNull @NotNull
@ApiModelProperty("用户规模") @ApiModelProperty("用户规模")
private Integer yhgm; private String yhgm;
/** /**
* *
*/ */
@ -271,7 +271,7 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@NotNull @NotNull
@Excel(name = "*是否部署云平台", sort = 56, dictType = "is_no", comboReadDict = true) @Excel(name = "*是否部署云平台", sort = 56, dictType = "is_no", comboReadDict = true)
@ApiModelProperty("是否部署云平台(字典)") @ApiModelProperty("是否部署云平台(字典)")
private Integer bsypt; private String bsypt;
/** /**
* *
*/ */
@ -292,7 +292,7 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@Excel(name = "*系统部署方式", dictType = "zc_xtbsfs", comboReadDict = true, sort = 59) @Excel(name = "*系统部署方式", dictType = "zc_xtbsfs", comboReadDict = true, sort = 59)
@NotNull @NotNull
@ApiModelProperty("系统部署方式") @ApiModelProperty("系统部署方式")
private Integer xtbsfs; private String xtbsfs;
/** /**
* *
*/ */
@ -313,14 +313,14 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@Excel(name = "*是否对公众开放", dictType = "is_no", comboReadDict = true, sort = 62, width = 22) @Excel(name = "*是否对公众开放", dictType = "is_no", comboReadDict = true, sort = 62, width = 22)
@NotNull @NotNull
@ApiModelProperty("是否对公众开放(字典)") @ApiModelProperty("是否对公众开放(字典)")
private Integer dgzkf; private String dgzkf;
/** /**
* *
*/ */
@NotNull @NotNull
@Excel(name = "*互联网开放用途", dictType = "zc_hlwkfyt", comboReadDict = true, sort = 63, width = 22) @Excel(name = "*互联网开放用途", dictType = "zc_hlwkfyt", comboReadDict = true, sort = 63, width = 22)
@ApiModelProperty("互联网开放用途(字典)") @ApiModelProperty("互联网开放用途(字典)")
private Integer hlwkfyt; private String hlwkfyt;
/** /**
* -( * -(
*/ */
@ -345,32 +345,32 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
* - * -
*/ */
@ApiModelProperty("相关业务-覆盖范围") @ApiModelProperty("相关业务-覆盖范围")
private Integer xgywFgfw; private String xgywFgfw;
/** /**
* - * -
*/ */
@ApiModelProperty("相关业务-网络性质") @ApiModelProperty("相关业务-网络性质")
private Integer xgywWlxz; private String xgywWlxz;
/** /**
* - * -
*/ */
@ApiModelProperty("相关业务-业务类型") @ApiModelProperty("相关业务-业务类型")
private Integer xgywYwlx; private String xgywYwlx;
/** /**
* - * -
*/ */
@ApiModelProperty("相关业务-互联情况") @ApiModelProperty("相关业务-互联情况")
private Integer xgywHlqk; private String xgywHlqk;
/** /**
* - * -
*/ */
@ApiModelProperty("相关业务-服务对象") @ApiModelProperty("相关业务-服务对象")
private Integer xgywFwdx; private String xgywFwdx;
/** /**
* - * -
*/ */
@ApiModelProperty("相关业务-服务范围") @ApiModelProperty("相关业务-服务范围")
private Integer xgywFwfw; private String xgywFwfw;
/** /**
* - * -
*/ */
@ -463,12 +463,12 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@Excel(name = "*ICP备案状态", dictType = "is_no", comboReadDict = true, sort = 24) @Excel(name = "*ICP备案状态", dictType = "is_no", comboReadDict = true, sort = 24)
@NotNull @NotNull
@ApiModelProperty("ICP备案信息-是否备案") @ApiModelProperty("ICP备案信息-是否备案")
private Integer ipcSfba; private String ipcSfba;
/** /**
* ICP- * ICP-
*/ */
@ApiModelProperty("ICP备案信息-备案有效性") @ApiModelProperty("ICP备案信息-备案有效性")
private Integer ipcBayxx; private String ipcBayxx;
/** /**
* ICP- * ICP-
*/ */
@ -507,7 +507,7 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
* ICP- * ICP-
*/ */
@ApiModelProperty("ICP备案信息-备案单位性质") @ApiModelProperty("ICP备案信息-备案单位性质")
private Integer ipcBadwxz; private String ipcBadwxz;
/** /**
* ICP- * ICP-
*/ */
@ -532,7 +532,7 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@NotNull @NotNull
@Excel(name = "*公安机关备案状态", dictType = "is_no", comboReadDict = true, sort = 27, width = 24) @Excel(name = "*公安机关备案状态", dictType = "is_no", comboReadDict = true, sort = 27, width = 24)
@ApiModelProperty("公安机关备案信息-是否备案") @ApiModelProperty("公安机关备案信息-是否备案")
private Integer gajgSfba; private String gajgSfba;
/** /**
* - * -
*/ */
@ -607,14 +607,14 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@Excel(name = "*是否国产化系统", dictType = "is_no", comboReadDict = true, sort = 35, width = 22) @Excel(name = "*是否国产化系统", dictType = "is_no", comboReadDict = true, sort = 35, width = 22)
@NotNull @NotNull
@ApiModelProperty("系统架构-是否国产化系统") @ApiModelProperty("系统架构-是否国产化系统")
private Integer xtjgGcxt; private String xtjgGcxt;
/** /**
* - * -
*/ */
@Excel(name = "*是否有国产设备", dictType = "is_no", comboReadDict = true, sort = 35, width = 22) @Excel(name = "*是否有国产设备", dictType = "is_no", comboReadDict = true, sort = 35, width = 22)
@NotNull @NotNull
@ApiModelProperty("系统架构-是否有国产设备") @ApiModelProperty("系统架构-是否有国产设备")
private Integer xtjgGcsb; private String xtjgGcsb;
/** /**
* - * -
*/ */
@ -627,7 +627,7 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@Excel(name = "*是否是等保系统", dictType = "is_no", comboReadDict = true, sort = 42) @Excel(name = "*是否是等保系统", dictType = "is_no", comboReadDict = true, sort = 42)
@NotNull @NotNull
@ApiModelProperty("等保信息-是否等保系统") @ApiModelProperty("等保信息-是否等保系统")
private Integer dbxxSfdbxt; private String dbxxSfdbxt;
/** /**
* - * -
*/ */
@ -642,7 +642,7 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@NotNull @NotNull
@Excel(name = "*等保等级", dictType = "dbxx_dbdj", comboReadDict = true, sort = 44) @Excel(name = "*等保等级", dictType = "dbxx_dbdj", comboReadDict = true, sort = 44)
@ApiModelProperty("等保信息-等保等级") @ApiModelProperty("等保信息-等保等级")
private Integer dbxxDbdj; private String dbxxDbdj;
/** /**
* - * -
*/ */
@ -653,12 +653,12 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
* - * -
*/ */
@ApiModelProperty("等保信息-专家评审") @ApiModelProperty("等保信息-专家评审")
private Integer dbxxZjps; private String dbxxZjps;
/** /**
* - * -
*/ */
@ApiModelProperty("等保信息-主管部门评审") @ApiModelProperty("等保信息-主管部门评审")
private Integer dbxxZgbmps; private String dbxxZgbmps;
/** /**
* - * -
*/ */
@ -673,7 +673,7 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@ApiModelProperty("等保信息-是否有第三方测评") @ApiModelProperty("等保信息-是否有第三方测评")
@NotNull @NotNull
@Excel(name = "是否有第三方测评(是否是等保系统选择是则必填)", width = 45, dictType = "is_no", comboReadDict = true, sort = 45) @Excel(name = "是否有第三方测评(是否是等保系统选择是则必填)", width = 45, dictType = "is_no", comboReadDict = true, sort = 45)
private Integer dbxxSfydsfcp; private String dbxxSfydsfcp;
@ApiModelProperty("地理位置-省") @ApiModelProperty("地理位置-省")
@Excel(name = "地理位置-省", sort = 46) @Excel(name = "地理位置-省", sort = 46)
@ -755,12 +755,12 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
* - * -
*/ */
@ApiModelProperty("第三方测评-测评师证书等级") @ApiModelProperty("第三方测评-测评师证书等级")
private Integer sfCpszsdj; private String sfCpszsdj;
/** /**
* - * -
*/ */
@ApiModelProperty("第三方测评-测评等级") @ApiModelProperty("第三方测评-测评等级")
private Integer sfCpdj; private String sfCpdj;
/** /**
* - * -
*/ */
@ -829,7 +829,7 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
* Whois- * Whois-
*/ */
@ApiModelProperty("Whois信息-有效性") @ApiModelProperty("Whois信息-有效性")
private Integer whoisYxx; private String whoisYxx;
/** /**
* Whois- * Whois-
*/ */
@ -934,28 +934,28 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@NotNull @NotNull
@Excel(name = "*共享属性", dictType = "sjzc_gxsx", comboReadDict = true, sort = 103) @Excel(name = "*共享属性", dictType = "sjzc_gxsx", comboReadDict = true, sort = 103)
@ApiModelProperty("数据资产-共享属性") @ApiModelProperty("数据资产-共享属性")
private Integer sjzcGxsx; private String sjzcGxsx;
/** /**
* - * -
*/ */
@Excel(name = "*开放属性", dictType = "sjzc_kfsx", comboReadDict = true, sort = 104) @Excel(name = "*开放属性", dictType = "sjzc_kfsx", comboReadDict = true, sort = 104)
@NotNull @NotNull
@ApiModelProperty("数据资产-开放属性") @ApiModelProperty("数据资产-开放属性")
private Integer sjzcKfsx; private String sjzcKfsx;
/** /**
* - * -
*/ */
@NotNull @NotNull
@Excel(name = "*数据领域", dictType = "sjzc_sjly", comboReadDict = true, sort = 105) @Excel(name = "*数据领域", dictType = "sjzc_sjly", comboReadDict = true, sort = 105)
@ApiModelProperty("数据资产-数据领域") @ApiModelProperty("数据资产-数据领域")
private Integer sjzcSjly; private String sjzcSjly;
/** /**
* - * -
*/ */
@NotNull @NotNull
@Excel(name = "*更新周期", dictType = "sjzc_gxzq", comboReadDict = true, sort = 106) @Excel(name = "*更新周期", dictType = "sjzc_gxzq", comboReadDict = true, sort = 106)
@ApiModelProperty("数据资产-更新周期") @ApiModelProperty("数据资产-更新周期")
private Integer sjzcGxzq; private String sjzcGxzq;
/** /**
* - * -
*/ */
@ -983,28 +983,28 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@NotNull @NotNull
@Excel(name = "*是否为涉密数据", dictType = "is_no", comboReadDict = true, sort = 110) @Excel(name = "*是否为涉密数据", dictType = "is_no", comboReadDict = true, sort = 110)
@ApiModelProperty("数据资产-是否为涉密数据") @ApiModelProperty("数据资产-是否为涉密数据")
private Integer sjzcSmsj; private String sjzcSmsj;
/** /**
* - * -
*/ */
@NotNull @NotNull
@Excel(name = "*数据是否出境", dictType = "is_no", comboReadDict = true, sort = 111) @Excel(name = "*数据是否出境", dictType = "is_no", comboReadDict = true, sort = 111)
@ApiModelProperty("数据资产-数据是否出境") @ApiModelProperty("数据资产-数据是否出境")
private Integer sjzcCj; private String sjzcCj;
/** /**
* - * -
*/ */
@NotNull @NotNull
@Excel(name = "*数据分级分类", dictType = "sjzc_sjfjfl", comboReadDict = true, sort = 112) @Excel(name = "*数据分级分类", dictType = "sjzc_sjfjfl", comboReadDict = true, sort = 112)
@ApiModelProperty("数据资产-数据分级分类") @ApiModelProperty("数据资产-数据分级分类")
private Integer sjzcSjfjfl; private String sjzcSjfjfl;
/** /**
* - * -
*/ */
@NotNull @NotNull
@Excel(name = "数据重要程度", dictType = "zc_xtzyx", comboReadDict = true, sort = 113) @Excel(name = "数据重要程度", dictType = "zc_xtzyx", comboReadDict = true, sort = 113)
@ApiModelProperty("数据资产-数据重要程度") @ApiModelProperty("数据资产-数据重要程度")
private Integer sjzcSjzycd; private String sjzcSjzycd;
/** /**
* - * -
*/ */
@ -1026,4 +1026,18 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@ApiModelProperty("删除标志0代表存在 2代表删除") @ApiModelProperty("删除标志0代表存在 2代表删除")
private String delFlag; private String delFlag;
@ApiModelProperty("是否报废默认0不报废 2代表报废")
private String isbf;
@ApiModelProperty("报废原因")
private String bfyy;
@ApiModelProperty("审核状态0待核查1待审核3审核通过4审核不通过5审核不通过")
private String status;
@ApiModelProperty("任务id")
private Integer taskId;
} }

@ -21,7 +21,7 @@ import java.io.Serializable;
@TableName(value = "asset_supply_chain_cp") @TableName(value = "asset_supply_chain_cp")
public class AssetSupplyChainCpResponse extends BaseClass implements Serializable { public class AssetSupplyChainCpResponse extends BaseClass implements Serializable {
private Integer id; private Long id;
/** /**
* id * id
*/ */
@ -66,8 +66,11 @@ public class AssetSupplyChainCpResponse extends BaseClass implements Serializabl
* *
*/ */
@ApiModelProperty("注册地是否为太仓") @ApiModelProperty("注册地是否为太仓")
private Integer sfwtc; private String sfwtc;
@ApiModelProperty("删除标志0代表存在 2代表删除") @ApiModelProperty("删除标志0代表存在 2代表删除")
private String delFlag; private String delFlag;
@ApiModelProperty("任务id")
private Integer taskId;
} }

@ -5,7 +5,7 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.util.List;
import java.time.LocalDateTime; import java.time.LocalDateTime;
/** /**
@ -58,7 +58,7 @@ public class AssetTaskIdResponse {
* *
*/ */
@ApiModelProperty("单位名称") @ApiModelProperty("单位名称")
private Integer dwmc; private String dwmc;
/** /**
* id * id
*/ */
@ -117,15 +117,6 @@ public class AssetTaskIdResponse {
@ApiModelProperty("备注") @ApiModelProperty("备注")
private String reamark; private String reamark;
/**
*
*/
@ApiModelProperty("系统类型")
private String xtlx;
/**
*
*/
@ApiModelProperty("系统名称")
private String xtmc;
} }

@ -0,0 +1,125 @@
package com.ruoyi.tc.entity.response;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import java.util.List;
/**
* @author dong
* @since 2024/11/19 9:58
*/
@Data
@ApiModel("任务详情响应类")
public class AssetTaskResponse {
/**
* id
*/
@ApiModelProperty("主键id")
private Integer id;
/**
*
*/
@ApiModelProperty("任务名称")
private String taskName;
/**
*
*/
@ApiModelProperty("任务下发时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime taskTime;
/**
*
*/
@ApiModelProperty("任务截至时间")
private String taskDeadline;
/**
*
*/
@ApiModelProperty("任务完成时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime taskFinishTime;
/**
* 12345
*/
@ApiModelProperty("任务状态1进行中2正常完成3超期完成4正常完成5审核驳回")
private String taskStatus;
/**
*
*/
@ApiModelProperty("单位名称")
private String dwmc;
/**
* id
*/
/**
* id
*/
@ApiModelProperty("用户id")
private Integer userId;
/**
* id
*/
@ApiModelProperty("部门id")
private Integer deptId;
/**
* id
*/
@ApiModelProperty("创建者id")
private Integer createId;
/**
*
*/
@ApiModelProperty("创建人")
private String createBy;
/**
*
*/
@ApiModelProperty("创建时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime createTime;
/**
* id
*/
@ApiModelProperty("更新着id")
private Integer updateId;
/**
*
*/
@ApiModelProperty("更新者")
private String updateBy;
/**
*
*/
@ApiModelProperty("更新时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime updateTime;
/**
*
*/
@ApiModelProperty("版本")
private String version;
/**
*
*/
@ApiModelProperty("备注")
private String reamark;
/**
* 01345
*/
@ApiModelProperty("审核状态0待核查1待审核3审核通过4审核不通过5审核不通过")
private String status;
}

@ -0,0 +1,67 @@
package com.ruoyi.tc.entity.response;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.tc.entity.AssetCurrent;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
/**
* @author dong
* @since 2024/11/19 15:02
*/
@Data
@ApiModel("任务审核")
public class AssetTaskShRespons {
/**
*
*/
@ApiModelProperty("任务编号")
private String taskId;
/**
*
*/
@ApiModelProperty("任务名称")
private String taskName;
/**
*
*/
@ApiModelProperty("任务下发时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime taskTime;
/**
*
*/
@ApiModelProperty("任务截至时间")
private String taskDeadline;
/**
*
*/
@ApiModelProperty("任务完成时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime taskFinishTime;
/**
* 12345
*/
@ApiModelProperty("任务状态1进行中2正常完成3超期完成4正常完成5审核驳回")
private String taskStatus;
/**
*
*/
@ApiModelProperty("单位名称")
private String dwmc;
/**
*
*/
@ApiModelProperty("资产主表")
private AssetCurrent assetCurrent;
}

@ -18,7 +18,7 @@ import java.io.Serializable;
@ApiModel("单位其他联系人复制表") @ApiModel("单位其他联系人复制表")
@TableName(value = "unit_other_contact_cp") @TableName(value = "unit_other_contact_cp")
public class UnitOtherConcatCpResponse extends BaseClass implements Serializable { public class UnitOtherConcatCpResponse extends BaseClass implements Serializable {
@ApiModelProperty("主键id")
private Long concatId; private Long concatId;
@ApiModelProperty("单位id") @ApiModelProperty("单位id")
@ -41,4 +41,7 @@ public class UnitOtherConcatCpResponse extends BaseClass implements Serializable
@ApiModelProperty("删除标志0代表存在 2代表删除") @ApiModelProperty("删除标志0代表存在 2代表删除")
private String delFlag; private String delFlag;
@ApiModelProperty("任务id")
private Integer taskId;
} }

@ -21,8 +21,8 @@ public interface AssetBasicNetWorkCpMapper extends BaseMapper<AssetBasicNetworkC
* @return * @return
*/ */
@Select("select id from asset_basic_network_cp where asset_id=#{assetId} ") @Select("select * from asset_basic_network where asset_id=#{assetId} ")
int findByassetId(Integer assetId); List<AssetBasicNetworkCpResponse> findByassetId(Long assetId);
} }

@ -3,7 +3,7 @@ package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.tc.entity.response.AssetBusinessFormCpResponse; import com.ruoyi.tc.entity.response.AssetBusinessFormCpResponse;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import java.util.List;
/** /**
* (asset_business_form_cp)访 * (asset_business_form_cp)访
* *
@ -19,8 +19,8 @@ public interface AssetBusinessFormCpMapper extends BaseMapper<AssetBusinessFormC
* @param assetId id * @param assetId id
* @return * @return
*/ */
@Select("select id from asset_business_form_cp where asset_id =#{assetId}") @Select("select * from asset_business_form where asset_id =#{assetId}")
int findByassetId(Integer assetId); List<AssetBusinessFormCpResponse> findByassetId(Long assetId);
} }

@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.tc.entity.response.AssetSupplyChainCpResponse; import com.ruoyi.tc.entity.response.AssetSupplyChainCpResponse;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import java.util.List;
/** /**
* (asset_supply_chain_cp)访 * (asset_supply_chain_cp)访
* *
@ -20,8 +22,8 @@ public interface AssetSupplyChainCpMapper extends BaseMapper<AssetSupplyChainCpR
* @param assetId id * @param assetId id
* @return * @return
*/ */
@Select("select id from asset_supply_chain_cp where asset_id=#{assetId}") @Select("select * from asset_supply_chain where asset_id=#{assetId}")
int findByassetId(Integer assetId); List<AssetSupplyChainCpResponse> findByassetId(Long assetId);
} }

@ -2,11 +2,12 @@ package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.tc.entity.AssetCurrent;
import com.ruoyi.tc.entity.AssetTask; import com.ruoyi.tc.entity.AssetTask;
import com.ruoyi.tc.entity.request.AssestTaskXqRequest;
import com.ruoyi.tc.entity.request.AssetTaskPageRequest; import com.ruoyi.tc.entity.request.AssetTaskPageRequest;
import com.ruoyi.tc.entity.response.AssestTaskXqresponse;
import com.ruoyi.tc.entity.response.AssetCurrentResponse; import com.ruoyi.tc.entity.response.AssetCurrentResponse;
import com.ruoyi.tc.entity.response.AssetTaskIdResponse; import com.ruoyi.tc.entity.response.AssetTaskResponse;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
@ -36,7 +37,7 @@ public interface AssetTaskMapper extends BaseMapper<AssetTask> {
* @param id * @param id
* @return * @return
*/ */
List<AssetTaskIdResponse> queryById(Integer id); AssetTaskResponse queryById(Integer id);
/** /**
* *
@ -103,6 +104,26 @@ public interface AssetTaskMapper extends BaseMapper<AssetTask> {
* @param dwmc * @param dwmc
* @return * @return
*/ */
AssetCurrentResponse findByDwmcAssetCurrent(String dwmc); List<AssetCurrentResponse> findByDwmcAssetCurrent(String dwmc);
/**
*
*
* @param page
* @param pageRequest
* @return
*/
Page<AssestTaskXqresponse> zcHc(Page<AssestTaskXqresponse> page, @Param("req") AssestTaskXqRequest pageRequest);
/**
* idid
*
* @param taskId id
* @param assetId id
* @return
*/
AssetCurrentResponse findBytaskIdandAssestId(@Param("taskId") int taskId, @Param("assetId") int assetId);
} }

@ -50,4 +50,13 @@ public interface UnitMapper extends BaseMapper<Unit> {
* id * id
*/ */
Unit getById(Long id); Unit getById(Long id);
/**
*
*
* @param unit
* @return
*/
Page<Unit> dwList(Page<Unit> page, @Param("req") UnitRequest unit);
} }

@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.tc.entity.response.UnitOtherConcatCpResponse; import com.ruoyi.tc.entity.response.UnitOtherConcatCpResponse;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import java.util.List;
/** /**
* (unit_other_contact_cp) * (unit_other_contact_cp)
* *
@ -18,6 +20,6 @@ public interface UnitOtherConcatCpMapper extends BaseMapper<UnitOtherConcatCpRes
* @param assetId id * @param assetId id
* @return * @return
*/ */
@Select("select id from unit_other_contact_cp where asset_id =#{assetId}") @Select("select * from unit_other_contact where asset_id =#{assetId}")
int findByassetId(Integer assetId); List<UnitOtherConcatCpResponse> findByassetId(Long assetId);
} }

@ -20,6 +20,6 @@ public interface AssetBasicNetworkCpService extends IService<AssetBasicNetworkCp
* @param assetId id * @param assetId id
* @return * @return
*/ */
int findByassetId(Integer assetId); List<AssetBasicNetworkCpResponse> findByassetId(Long assetId);
} }

@ -3,6 +3,8 @@ package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.response.AssetBusinessFormCpResponse; import com.ruoyi.tc.entity.response.AssetBusinessFormCpResponse;
import java.util.List;
/** /**
* (asset_business_form_cp) * (asset_business_form_cp)
* *
@ -16,7 +18,7 @@ public interface AssetBusinessFormCpService extends IService<AssetBusinessFormCp
* @param assetId id * @param assetId id
* @return * @return
*/ */
int findByassetId(Integer assetId); List<AssetBusinessFormCpResponse> findByassetId(Long assetId);
} }

@ -3,6 +3,8 @@ package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.response.AssetSupplyChainCpResponse; import com.ruoyi.tc.entity.response.AssetSupplyChainCpResponse;
import java.util.List;
/** /**
* (asset_supply_chain_cp) * (asset_supply_chain_cp)
* *
@ -17,7 +19,7 @@ public interface AssetSupplyChainCpService extends IService<AssetSupplyChainCpRe
* @param assetId id * @param assetId id
* @return * @return
*/ */
int findByassetId(Integer assetId); List<AssetSupplyChainCpResponse> findByassetId(Long assetId);
} }

@ -1,11 +1,17 @@
package com.ruoyi.tc.service; package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.AssetCurrent;
import com.ruoyi.tc.entity.AssetTask; import com.ruoyi.tc.entity.AssetTask;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.tc.entity.request.AssestTaskXqRequest;
import com.ruoyi.tc.entity.request.AssetTaskPageRequest; import com.ruoyi.tc.entity.request.AssetTaskPageRequest;
import com.ruoyi.tc.entity.response.AssestTaskXqresponse;
import com.ruoyi.tc.entity.response.AssetCurrentResponse;
import com.ruoyi.tc.entity.response.AssetTaskIdResponse; import com.ruoyi.tc.entity.response.AssetTaskIdResponse;
import com.ruoyi.tc.entity.response.AssetTaskResponse;
import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.PageRequest;
import java.util.List; import java.util.List;
/** /**
@ -22,7 +28,7 @@ public interface AssetTaskService extends IService<AssetTask> {
* @param id * @param id
* @return * @return
*/ */
List<AssetTaskIdResponse> queryById(Integer id); AssetTaskResponse queryById(Integer id);
/** /**
* *
@ -57,4 +63,22 @@ public interface AssetTaskService extends IService<AssetTask> {
*/ */
boolean deleteById(Integer id); boolean deleteById(Integer id);
/**
*
*
* @param taskId id
* @param assetId id
* @return
*/
AssetCurrentResponse taskSh(int taskId, int assetId);
/**
*
*
* @param page
* @param pageRequest
* @return
*/
Page<AssestTaskXqresponse> zcHc(Page<AssestTaskXqresponse> page, AssestTaskXqRequest pageRequest);
} }

@ -19,5 +19,5 @@ public interface UnitOtherConcatCpService extends IService<UnitOtherConcatCpResp
* @param assetId id * @param assetId id
* @return * @return
*/ */
int findByassetId(Integer assetId); List<UnitOtherConcatCpResponse> findByassetId(Long assetId);
} }

@ -55,4 +55,14 @@ public interface UnitService extends IService<Unit> {
* *
*/ */
void deleteUnits(List<Long> ids); void deleteUnits(List<Long> ids);
/**
*
*
* @param unit
* @return
*/
Page<Unit> dwList(Page<Unit> page, UnitRequest unit);
} }

@ -7,6 +7,7 @@ import com.ruoyi.tc.service.AssetBasicNetworkCpService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List;
/** /**
* (AssetBasicNetworkCpResponse) * (AssetBasicNetworkCpResponse)
@ -21,7 +22,9 @@ public class AssetBasicNetworkCpServiceImpl extends ServiceImpl<AssetBasicNetWor
private AssetBasicNetWorkCpMapper assetBasicNetWorkCpMapper; private AssetBasicNetWorkCpMapper assetBasicNetWorkCpMapper;
@Override @Override
public int findByassetId(Integer assetId) { public List<AssetBasicNetworkCpResponse> findByassetId(Long assetId) {
return assetBasicNetWorkCpMapper.findByassetId(assetId); return assetBasicNetWorkCpMapper.findByassetId(assetId);
} }
} }

@ -6,6 +6,7 @@ import com.ruoyi.tc.mapper.AssetBusinessFormCpMapper;
import com.ruoyi.tc.service.AssetBusinessFormCpService; import com.ruoyi.tc.service.AssetBusinessFormCpService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
import javax.annotation.Resource; import javax.annotation.Resource;
/** /**
@ -21,7 +22,7 @@ public class AssetBusinessFormCpServiceImpl extends ServiceImpl<AssetBusinessFor
private AssetBusinessFormCpMapper assetBusinessFormCpMapper; private AssetBusinessFormCpMapper assetBusinessFormCpMapper;
@Override @Override
public int findByassetId(Integer assetId) { public List<AssetBusinessFormCpResponse> findByassetId(Long assetId) {
return assetBusinessFormCpMapper.findByassetId(assetId); return assetBusinessFormCpMapper.findByassetId(assetId);
} }
} }

@ -24,7 +24,7 @@ public class AssetSupplyChainCpServiceImpl extends ServiceImpl<AssetSupplyChainC
@Resource @Resource
private AssetSupplyChainCpMapper assetSupplyChainCpMapper; private AssetSupplyChainCpMapper assetSupplyChainCpMapper;
@Override @Override
public int findByassetId(Integer assetId) { public List<AssetSupplyChainCpResponse> findByassetId(Long assetId) {
return assetSupplyChainCpMapper.findByassetId(assetId); return assetSupplyChainCpMapper.findByassetId(assetId);
} }
} }

@ -2,7 +2,8 @@ package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.AssetTask; import com.ruoyi.tc.entity.*;
import com.ruoyi.tc.entity.request.AssestTaskXqRequest;
import com.ruoyi.tc.entity.request.AssetTaskPageRequest; import com.ruoyi.tc.entity.request.AssetTaskPageRequest;
import com.ruoyi.tc.entity.response.*; import com.ruoyi.tc.entity.response.*;
import com.ruoyi.tc.mapper.AssetTaskMapper; import com.ruoyi.tc.mapper.AssetTaskMapper;
@ -40,6 +41,9 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
@Resource @Resource
private UnitOtherConcatCpService unitOtherConcatCpService; private UnitOtherConcatCpService unitOtherConcatCpService;
/** /**
* ID * ID
* *
@ -47,8 +51,8 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
* @return * @return
*/ */
@Override @Override
public List<AssetTaskIdResponse> queryById(Integer id) { public AssetTaskResponse queryById(Integer id) {
return this.assetTaskDao.queryById(id); return assetTaskDao.queryById(id);
} }
/** /**
@ -72,50 +76,62 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
@Override @Override
public void insert(AssetTask assetTask) { public void insert(AssetTask assetTask) {
//任务新增 //任务新增
assetTaskDao.insert(assetTask); int id= assetTaskDao.insert(assetTask);
String[] parts = assetTask.getDwmc().split(","); String[] parts = assetTask.getDwmc().split(",");
for (String part : parts) { for (String part : parts) {
//根据单位名称查询资产 //根据单位名称查询资产
AssetCurrentResponse assetCurrentResponse = assetTaskDao.findByDwmcAssetCurrent(part); List<AssetCurrentResponse> list = assetTaskDao.findByDwmcAssetCurrent(part);
assetCurrentCpService.save(assetCurrentResponse); for (AssetCurrentResponse assetCurrentResponse:list){
assetCurrentResponse.setTaskId(id);
}
assetCurrentCpService.saveBatch(list);
for (AssetCurrentResponse assetCurrentResponse : list) {
//新增新监管业务形态 //新增新监管业务形态
if (assetCurrentResponse.getXjgywxt() != null) {
//根据资产id查询新监管业务形态主表id //根据资产id查询新监管业务形态主表id
int businessId = assetBusinessFormCpService.findByassetId(assetCurrentResponse.getId()); List<AssetBusinessFormCpResponse> bussList = assetBusinessFormCpService.findByassetId(assetCurrentResponse.getId());
assetCurrentResponse.getXjgywxt().setId(businessId); if (bussList != null) {
assetCurrentResponse.getXjgywxt().setAssetId(Long.valueOf(assetCurrentResponse.getId())); for (AssetBusinessFormCpResponse assetBusinessFormCpResponse : bussList) {
assetCurrentResponse.getXjgywxt().setId(assetBusinessFormCpResponse.getId());
assetCurrentResponse.getXjgywxt().setAssetId(assetCurrentResponse.getId());
assetCurrentResponse.getXjgywxt().setTaskId(id);
assetBusinessFormCpService.save(assetCurrentResponse.getXjgywxt()); assetBusinessFormCpService.save(assetCurrentResponse.getXjgywxt());
} }
if (!assetCurrentResponse.getGylxxList().isEmpty()) {
for (AssetSupplyChainCpResponse items : assetCurrentResponse.getGylxxList()) {
//根据资产id查询供应链主表id
int supplyChainId = assetSupplyChainCpService.findByassetId(assetCurrentResponse.getId());
items.setAssetId(Long.valueOf(assetCurrentResponse.getId()));
items.setId(supplyChainId);
} }
//根据资产id查询供应链主表id-
List<AssetSupplyChainCpResponse> supplyChainList = assetSupplyChainCpService.findByassetId(assetCurrentResponse.getId());
if (supplyChainList != null) {
for (AssetSupplyChainCpResponse items : supplyChainList) {
items.setAssetId(assetCurrentResponse.getId());
items.setId(items.getId());
items.setTaskId(id);
//新增供应链 //新增供应链
assetSupplyChainCpService.saveBatch(assetCurrentResponse.getGylxxList()); assetSupplyChainCpService.save(items);
} }
if (!assetCurrentResponse.getJcwlList().isEmpty()) {
for (AssetBasicNetworkCpResponse items : assetCurrentResponse.getJcwlList()) {
//根据资产id查询基础网络主表id
int basicNetworkId = assetBasicNetworkCpService.findByassetId(assetCurrentResponse.getId());
items.setAssetId(Long.valueOf(assetCurrentResponse.getId()));
items.setId(basicNetworkId);
} }
List<AssetBasicNetworkCpResponse> BasicNetworkCpList = assetBasicNetworkCpService.findByassetId(assetCurrentResponse.getId());
if (BasicNetworkCpList != null) {
for (AssetBasicNetworkCpResponse items : BasicNetworkCpList) {
//根据资产id查询基础网络主表id
items.setAssetId(assetCurrentResponse.getId());
items.setId(items.getId());
items.setTaskId(id);
//新增基础网络 //新增基础网络
assetBasicNetworkCpService.saveBatch(assetCurrentResponse.getJcwlList()); assetBasicNetworkCpService.save(items);
} }
if (!assetCurrentResponse.getOtherConcat().isEmpty()) {
for (UnitOtherConcatCpResponse items : assetCurrentResponse.getOtherConcat()) {
//根据资产id查询其他联系人主表id
int unitOtherConcatId = unitOtherConcatCpService.findByassetId(assetCurrentResponse.getId());
items.setAssetId(Long.valueOf(assetCurrentResponse.getId()));
items.setConcatId((long) unitOtherConcatId);
} }
List<UnitOtherConcatCpResponse> unitOtherConcatList = unitOtherConcatCpService.findByassetId(assetCurrentResponse.getId());
if (unitOtherConcatList != null) {
for (UnitOtherConcatCpResponse items : unitOtherConcatList) {
//根据资产id查询其他联系人主表id
items.setAssetId(assetCurrentResponse.getId());
items.setConcatId(items.getConcatId());
items.setTaskId(id);
//新增其他联系人 //新增其他联系人
unitOtherConcatCpService.saveBatch(assetCurrentResponse.getOtherConcat()); unitOtherConcatCpService.save(items);
}
}
} }
} }
@ -143,4 +159,19 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
public boolean deleteById(Integer id) { public boolean deleteById(Integer id) {
return this.assetTaskDao.deleteById(id) > 0; return this.assetTaskDao.deleteById(id) > 0;
} }
@Override
public AssetCurrentResponse taskSh(int taskId,int assetId) {
AssetCurrentResponse byId = assetTaskDao.findBytaskIdandAssestId(taskId,assetId);
byId.setGylxxList(assetSupplyChainCpService.lambdaQuery().eq(AssetSupplyChainCpResponse::getAssetId,assetId).eq(AssetSupplyChainCpResponse::getDelFlag,"0").eq(AssetSupplyChainCpResponse::getTaskId,taskId).list());
byId.setJcwlList(assetBasicNetworkCpService.lambdaQuery().eq(AssetBasicNetworkCpResponse::getAssetId,assetId).eq(AssetBasicNetworkCpResponse::getDelFlag,"0").eq(AssetBasicNetworkCpResponse::getTaskId,taskId).list());
byId.setXjgywxt(assetBusinessFormCpService.lambdaQuery().eq(AssetBusinessFormCpResponse::getAssetId,assetId).eq(AssetBusinessFormCpResponse::getDelFlag,"0").eq(AssetBusinessFormCpResponse::getTaskId,taskId).one());
byId.setOtherConcat(unitOtherConcatCpService.lambdaQuery().eq(UnitOtherConcatCpResponse::getAssetId,assetId).eq(UnitOtherConcatCpResponse::getDelFlag,"0").eq(UnitOtherConcatCpResponse::getTaskId,taskId).list());
return byId;
}
@Override
public Page<AssestTaskXqresponse> zcHc(Page<AssestTaskXqresponse> assetTask, AssestTaskXqRequest pageRequest) {
return assetTaskDao.zcHc(assetTask,pageRequest);
}
} }

@ -7,6 +7,7 @@ import com.ruoyi.tc.service.UnitOtherConcatCpService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List;
/** /**
* (unit_other_contact_cp) * (unit_other_contact_cp)
@ -20,7 +21,7 @@ public class UnitOtherConcatCpServiceImpl extends ServiceImpl<UnitOtherConcatCpM
private UnitOtherConcatCpMapper unitOtherConcatCpMapper; private UnitOtherConcatCpMapper unitOtherConcatCpMapper;
@Override @Override
public int findByassetId(Integer assetId) { public List<UnitOtherConcatCpResponse> findByassetId(Long assetId) {
return unitOtherConcatCpMapper.findByassetId(assetId); return unitOtherConcatCpMapper.findByassetId(assetId);
} }
} }

@ -35,6 +35,8 @@ public class UnitServiceImpl extends ServiceImpl<UnitMapper, Unit> implements Un
*/ */
@Override @Override
public Page<Unit> page(Page<Unit> page, UnitRequest unit) { public Page<Unit> page(Page<Unit> page, UnitRequest unit) {
return baseMapper.selectUnitList(page,unit); return baseMapper.selectUnitList(page,unit);
} }
@ -100,4 +102,9 @@ public class UnitServiceImpl extends ServiceImpl<UnitMapper, Unit> implements Un
baseMapper.deleteUnits(ids); baseMapper.deleteUnits(ids);
} }
@Override
public Page<Unit> dwList(Page<Unit> page, UnitRequest unit) {
return baseMapper.dwList(page,unit);
}
} }

@ -4,7 +4,6 @@
<resultMap type="com.ruoyi.tc.entity.AssetTask" id="AssetTaskMap"> <resultMap type="com.ruoyi.tc.entity.AssetTask" id="AssetTaskMap">
<result property="id" column="id" jdbcType="INTEGER"/> <result property="id" column="id" jdbcType="INTEGER"/>
<result property="taskId" column="task_id" jdbcType="VARCHAR"/>
<result property="taskName" column="task_name" jdbcType="VARCHAR"/> <result property="taskName" column="task_name" jdbcType="VARCHAR"/>
<result property="taskTime" column="task_time" jdbcType="TIMESTAMP"/> <result property="taskTime" column="task_time" jdbcType="TIMESTAMP"/>
<result property="taskDeadline" column="task_deadline" jdbcType="VARCHAR"/> <result property="taskDeadline" column="task_deadline" jdbcType="VARCHAR"/>
@ -24,9 +23,8 @@
</resultMap> </resultMap>
<!--查询单个--> <!--查询单个-->
<select id="queryById" resultMap="AssetTaskMap"> <select id="queryById" resultType="com.ruoyi.tc.entity.response.AssetTaskResponse">
select a.id, select a.id,
a.task_id,
a.task_name, a.task_name,
a.task_time, a.task_time,
a.task_deadline, a.task_deadline,
@ -42,24 +40,23 @@
a.user_id, a.user_id,
a.dept_id, a.dept_id,
a.version, a.version,
a.reamark, a.reamark
b.xtlx,b.xtmc
from asset_task a left join asset_current b on a.dwmc =b.dwmc from asset_task a
where a.id = #{id} where a.id = #{id}
</select> </select>
<!--查询指定行数据--> <!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="AssetTaskMap"> <select id="queryAllByLimit" resultMap="AssetTaskMap">
select select
id,task_id,task_name,task_time,task_deadline,task_finish_time,task_status,dwmc,create_id,create_by,create_time,update_id,update_by,update_time,user_id,dept_id,version,reamark id,task_name,task_time,task_deadline,task_finish_time,task_status,dwmc,create_id,create_by,create_time,update_id,update_by,update_time,user_id,dept_id,version,reamark
from asset_task from asset_task
<where> <where>
<if test="id != null"> <if test="id != null">
and id = #{id} and id = #{id}
</if> </if>
<if test="taskId != null and taskId != ''">
and task_id = #{taskId}
</if>
<if test="taskName != null and taskName != ''"> <if test="taskName != null and taskName != ''">
and task_name = #{taskName} and task_name = #{taskName}
</if> </if>
@ -120,9 +117,7 @@
<if test="id != null"> <if test="id != null">
and id = #{id} and id = #{id}
</if> </if>
<if test="taskId != null and taskId != ''">
and task_id = #{taskId}
</if>
<if test="taskName != null and taskName != ''"> <if test="taskName != null and taskName != ''">
and task_name = #{taskName} and task_name = #{taskName}
</if> </if>
@ -175,14 +170,12 @@
</select> </select>
<select id="queryByPage" resultType="com.ruoyi.tc.entity.AssetTask"> <select id="queryByPage" resultType="com.ruoyi.tc.entity.AssetTask">
select select
id,task_id,task_name,task_time,task_deadline,task_finish_time,task_status,dwmc,create_id,create_by,create_time,update_id,update_by,update_time,user_id,dept_id,version,reamark id,task_name,task_time,task_deadline,task_finish_time,task_status,dwmc,create_id,create_by,create_time,update_id,update_by,update_time,user_id,dept_id,version,reamark
from asset_task from asset_task
<where> <where>
<if test="req.taskName != null and req.taskName != ''"> <if test="req.taskName != null and req.taskName != ''">
and task_name = #{req.taskName} and task_name = #{req.taskName}
</if> </if>
<if test="req.begainTime != null"> <if test="req.begainTime != null">
and task_finish_time &gt;= #{req.begainTime} and task_finish_time &gt;= #{req.begainTime}
</if> </if>
@ -192,43 +185,74 @@
<if test="req.taskStatus != null and req.taskStatus != ''"> <if test="req.taskStatus != null and req.taskStatus != ''">
and task_status = #{req.taskStatus} and task_status = #{req.taskStatus}
</if> </if>
<if test="req.taskId != null and req.taskId != ''">
and task_id = #{req.taskId}
</if>
</where> </where>
</select> </select>
<select id="findByDwmcAssetCurrent" resultType="com.ruoyi.tc.entity.response.AssetCurrentResponse"> <select id="findByDwmcAssetCurrent" resultType="com.ruoyi.tc.entity.response.AssetCurrentResponse">
select * from asset_current
<where>
del_flag = '0' and isbf = '0'
<if test="dwmc!=null and dwmc!='' ">
and dwmc like concat('%',#{dwmc},'%')
</if>
</where>
</select>
<select id="zcHc" resultType="com.ruoyi.tc.entity.response.AssestTaskXqresponse">
select b.xtlx,
b.xtmc,
b.dwmc,
b.status,
b.id
from asset_task a
LEFT JOIN
asset_current_cp b ON FIND_IN_SET(b.dwmc, a.dwmc)
<where>
<if test="req.dwmc!=null and req.dwmc!='' ">
and b.dwmc like concat('%',#{req.dwmc},'%')
</if>
<if test="req.taskId !=null ">
and a.id = #{req.taskId}
</if>
<if test="req.status!=null ">
and b.status =#{req.status}
</if>
<if test="req.zclx!=null and req.zclx!='' ">
and b.zclx = #{req.zclx}
</if>
</where>
</select>
<select id="findBytaskIdandAssestId" resultType="com.ruoyi.tc.entity.response.AssetCurrentResponse">
select * from asset_current_cp where task_id =#{taskId} and asset_id =#{assetId}
</select> </select>
<!--新增所有列--> <!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true"> <insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into asset_task(task_id, task_name, task_time, task_deadline, task_finish_time, task_status, dwmc, insert into asset_task( task_name, task_time, task_deadline, task_finish_time, task_status, dwmc,
create_id, create_by, create_time, update_id, update_by, update_time, user_id, dept_id, create_id, create_by, create_time, update_id, update_by, update_time, user_id, dept_id,
version, reamark) version, reamark)
values (#{taskId}, #{taskName}, #{taskTime}, #{taskDeadline}, #{taskFinishTime}, #{taskStatus}, #{dwmc}, values (#{taskName}, #{taskTime}, #{taskDeadline}, #{taskFinishTime}, #{taskStatus}, #{dwmc},
#{createId}, #{createBy}, #{createTime}, #{updateId}, #{updateBy}, #{updateTime}, #{userId}, #{deptId}, #{createId}, #{createBy}, #{createTime}, #{updateId}, #{updateBy}, #{updateTime}, #{userId}, #{deptId},
#{version}, #{reamark}) #{version}, #{reamark})
</insert> </insert>
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
insert into insert into
asset_task(task_id,task_name,task_time,task_deadline,task_finish_time,task_status,dwmc,create_id,create_by,create_time,update_id,update_by,update_time,user_id,dept_id,version,reamark) asset_task(task_name,task_time,task_deadline,task_finish_time,task_status,dwmc,create_id,create_by,create_time,update_id,update_by,update_time,user_id,dept_id,version,reamark)
values values
<foreach collection="entities" item="entity" separator=","> <foreach collection="entities" item="entity" separator=",">
(#{entity.taskId},#{entity.taskName},#{entity.taskTime},#{entity.taskDeadline},#{entity.taskFinishTime},#{entity.taskStatus},#{entity.dwmc},#{entity.createId},#{entity.createBy},#{entity.createTime},#{entity.updateId},#{entity.updateBy},#{entity.updateTime},#{entity.userId},#{entity.deptId},#{entity.version},#{entity.reamark}) (#{entity.taskName},#{entity.taskTime},#{entity.taskDeadline},#{entity.taskFinishTime},#{entity.taskStatus},#{entity.dwmc},#{entity.createId},#{entity.createBy},#{entity.createTime},#{entity.updateId},#{entity.updateBy},#{entity.updateTime},#{entity.userId},#{entity.deptId},#{entity.version},#{entity.reamark})
</foreach> </foreach>
</insert> </insert>
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into insert into
asset_task(task_id,task_name,task_time,task_deadline,task_finish_time,task_status,dwmc,create_id,create_by,create_time,update_id,update_by,update_time,user_id,dept_id,version,reamark) asset_task(task_name,task_time,task_deadline,task_finish_time,task_status,dwmc,create_id,create_by,create_time,update_id,update_by,update_time,user_id,dept_id,version,reamark)
values values
<foreach collection="entities" item="entity" separator=","> <foreach collection="entities" item="entity" separator=",">
(#{entity.taskId},#{entity.taskName},#{entity.taskTime},#{entity.taskDeadline}#{entity.taskFinishTime}#{entity.taskStatus}#{entity.dwmc}#{entity.createId}#{entity.createBy}#{entity.createTime}#{entity.updateId}#{entity.updateBy}#{entity.updateTime}#{entity.userId}#{entity.deptId}#{entity.version}#{entity.reamark}) (#{entity.taskName},#{entity.taskTime},#{entity.taskDeadline}#{entity.taskFinishTime}#{entity.taskStatus}#{entity.dwmc}#{entity.createId}#{entity.createBy}#{entity.createTime}#{entity.updateId}#{entity.updateBy}#{entity.updateTime}#{entity.userId}#{entity.deptId}#{entity.version}#{entity.reamark})
</foreach> </foreach>
on duplicate key update on duplicate key update
task_id = values(task_id)task_name = values(task_name)task_time = values(task_time)task_deadline = task_name = values(task_name)task_time = values(task_time)task_deadline =
values(task_deadline)task_finish_time = values(task_finish_time)task_status = values(task_status)dwmc = values(task_deadline)task_finish_time = values(task_finish_time)task_status = values(task_status)dwmc =
values(dwmc)create_id = values(create_id)create_by = values(create_by)create_time = values(dwmc)create_id = values(create_id)create_by = values(create_by)create_time =
values(create_time)update_id = values(update_id)update_by = values(update_by)update_time = values(create_time)update_id = values(update_id)update_by = values(update_by)update_time =
@ -240,9 +264,7 @@
<update id="update"> <update id="update">
update asset_task update asset_task
<set> <set>
<if test="taskId != null and taskId != ''">
task_id = #{taskId},
</if>
<if test="taskName != null and taskName != ''"> <if test="taskName != null and taskName != ''">
task_name = #{taskName}, task_name = #{taskName},
</if> </if>

@ -112,6 +112,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</select> </select>
<select id="dwList" resultType="com.ruoyi.tc.entity.Unit">
SELECT a.*
FROM unit_info a
<where>
a.nick_name NOT IN (SELECT dwmc FROM asset_task where task_status=1) and
a.del_flag = '0'
<if test="req.nickName != null and req.nickName != '' ">
and a.nick_name like concat('%',#{req.nickName},'%')
</if>
<if test="req.dwlx != null">
and a.dwlx = #{req.dwlx}
</if>
<if test="req.userName != null and req.userName != '' ">
and a.user_name like concat('%',#{req.userName},'%')
</if>
</where>
</select>
<update id="deleteUnits"> <update id="deleteUnits">
update unit_info set del_flag = '2' where id in update unit_info set del_flag = '2' where id in
<foreach collection="array" item="ids" open="(" separator="," close=")"> <foreach collection="array" item="ids" open="(" separator="," close=")">

@ -115,7 +115,7 @@ public class SecurityConfig
// 静态资源,可匿名访问 // 静态资源,可匿名访问
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll() .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
.antMatchers("/unit/assetTask/**").permitAll() .antMatchers("/unit/assetTask/**","/tc/**").permitAll()
// 除上面外的所有请求全部需要鉴权认证 // 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated(); .anyRequest().authenticated();
}) })

Loading…
Cancel
Save