字典字段修改为字符串

main
杜函宇 2 months ago
parent ddc6006ee6
commit 84ff1fa4f0

@ -8,6 +8,7 @@ import com.ruoyi.tc.entity.request.UnitRequest;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.exception.ServiceException; import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tc.service.ExamineInfoService;
import com.ruoyi.tc.service.UnitOtherConcatService; import com.ruoyi.tc.service.UnitOtherConcatService;
import com.ruoyi.tc.service.UnitService; import com.ruoyi.tc.service.UnitService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
@ -40,6 +41,9 @@ public class UnitController {
@Resource @Resource
private UnitOtherConcatService unitOtherConcatService; private UnitOtherConcatService unitOtherConcatService;
@Resource
private ExamineInfoService examineInfoService;
/** /**
* *
*/ */
@ -103,7 +107,7 @@ public class UnitController {
@Log(title = "新增单位", businessType = BusinessType.INSERT) @Log(title = "新增单位", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public AjaxResult add(@Valid @RequestBody Unit unit) { public AjaxResult add( @RequestBody Unit unit) {
if (!unitService.lambdaQuery().eq(Unit::getUserName, unit.getUserName()).eq(Unit::getDelFlag, "0").list().isEmpty()) { if (!unitService.lambdaQuery().eq(Unit::getUserName, unit.getUserName()).eq(Unit::getDelFlag, "0").list().isEmpty()) {
throw new ServiceException(unit.getUserName() + "'已存在单位!"); throw new ServiceException(unit.getUserName() + "'已存在单位!");
} }
@ -111,6 +115,8 @@ public class UnitController {
unitService.save(unit); unitService.save(unit);
//新增其他联系人 //新增其他联系人
unitOtherConcatService.saveBatch(unit.getOtherConcat()); unitOtherConcatService.saveBatch(unit.getOtherConcat());
//新增检查信息
examineInfoService.saveBatch(unit.getJcxxList());
//查询用户表是否存在该用户 //查询用户表是否存在该用户
unitService.validUser(unit); unitService.validUser(unit);
return AjaxResult.success(); return AjaxResult.success();
@ -135,6 +141,12 @@ public class UnitController {
}); });
} }
unitOtherConcatService.saveOrUpdateBatch(x.getOtherConcat()); unitOtherConcatService.saveOrUpdateBatch(x.getOtherConcat());
if(!x.getJcxxList().isEmpty()){
x.getJcxxList().forEach(y->{
y.setUnitId(x.getId());
});
}
examineInfoService.saveOrUpdateBatch(x.getJcxxList());
return AjaxResult.success(); return AjaxResult.success();
} }
@ -150,6 +162,7 @@ public class UnitController {
unitService.deleteUsers(userNames); unitService.deleteUsers(userNames);
unitService.deleteUnits(ids); unitService.deleteUnits(ids);
unitOtherConcatService.deleteByUnitIds(ids); unitOtherConcatService.deleteByUnitIds(ids);
examineInfoService.deleteByUnitIds(ids);
return AjaxResult.success(); return AjaxResult.success();
} }
} }

@ -21,7 +21,7 @@ import java.io.Serializable;
public class AssetBasicNetwork extends BaseClass implements Serializable { public class AssetBasicNetwork extends BaseClass implements Serializable {
@TableId(type = IdType.AUTO,value = "id") @TableId(type = IdType.AUTO,value = "id")
private Integer id; private Long id;
/** /**
* id * id
@ -52,7 +52,7 @@ public class AssetBasicNetwork extends BaseClass implements Serializable {
* *
*/ */
@ApiModelProperty("操作系统") @ApiModelProperty("操作系统")
private Integer czxt; private String czxt;
/** /**
* *
*/ */

@ -23,7 +23,7 @@ import java.io.Serializable;
public class AssetBusinessForm extends BaseClass implements Serializable { public class AssetBusinessForm extends BaseClass implements Serializable {
@TableId(type = IdType.AUTO,value = "id") @TableId(type = IdType.AUTO,value = "id")
private Integer id; private Long id;
/** /**
* id * id
*/ */
@ -39,7 +39,7 @@ public class AssetBusinessForm extends BaseClass implements Serializable {
* - * -
*/ */
@ApiModelProperty("云平台-是否租户级安全") @ApiModelProperty("云平台-是否租户级安全")
private Integer yptSfzh; private String yptSfzh;
/** /**
* - * -
*/ */
@ -122,7 +122,7 @@ public class AssetBusinessForm extends BaseClass implements Serializable {
* - * -
*/ */
@ApiModelProperty("大数据平台-是否数据审计") @ApiModelProperty("大数据平台-是否数据审计")
private Integer dsjSfsjsj; private String dsjSfsjsj;
/** /**
* - * -
*/ */
@ -139,7 +139,7 @@ public class AssetBusinessForm extends BaseClass implements Serializable {
* - * -
*/ */
@ApiModelProperty("一般物联网设备-服务对象") @ApiModelProperty("一般物联网设备-服务对象")
private Integer wlwsbFwdx; private String wlwsbFwdx;
/** /**
* - * -
*/ */
@ -150,7 +150,7 @@ public class AssetBusinessForm extends BaseClass implements Serializable {
* - * -
*/ */
@ApiModelProperty("一般物联网设备-网络互联情况") @ApiModelProperty("一般物联网设备-网络互联情况")
private Integer wlwsbWlhlqk; private String wlwsbWlhlqk;
/** /**
* - * -
*/ */
@ -161,7 +161,7 @@ public class AssetBusinessForm extends BaseClass implements Serializable {
* - * -
*/ */
@ApiModelProperty("一般物联网设备-服务范围") @ApiModelProperty("一般物联网设备-服务范围")
private Integer wlwsbFwfw; private String wlwsbFwfw;
/** /**
* - * -
*/ */
@ -262,7 +262,7 @@ public class AssetBusinessForm extends BaseClass implements Serializable {
* APP-APP * APP-APP
*/ */
@ApiModelProperty("移动APP-APP是否有身份认证") @ApiModelProperty("移动APP-APP是否有身份认证")
private Integer appSfysfrz; private String appSfysfrz;
/** /**
* - * -
*/ */
@ -279,7 +279,7 @@ public class AssetBusinessForm extends BaseClass implements Serializable {
* - * -
*/ */
@ApiModelProperty("工业控制-服务对象") @ApiModelProperty("工业控制-服务对象")
private Integer gykzFwdx; private String gykzFwdx;
/** /**
* - * -
*/ */
@ -290,7 +290,7 @@ public class AssetBusinessForm extends BaseClass implements Serializable {
* - * -
*/ */
@ApiModelProperty("工业控制-网络互联情况") @ApiModelProperty("工业控制-网络互联情况")
private Integer gykzWlhxqk; private String gykzWlhxqk;
/** /**
* - * -
*/ */
@ -301,7 +301,7 @@ public class AssetBusinessForm extends BaseClass implements Serializable {
* - * -
*/ */
@ApiModelProperty("工业控制-服务范围") @ApiModelProperty("工业控制-服务范围")
private Integer gykzFwfw; private String gykzFwfw;
/** /**
* - * -
*/ */
@ -366,7 +366,7 @@ public class AssetBusinessForm extends BaseClass implements Serializable {
* CDN-CDN使 * CDN-CDN使
*/ */
@ApiModelProperty("CDN信息-CDN是否使用") @ApiModelProperty("CDN信息-CDN是否使用")
private Integer cdnSfsy; private String cdnSfsy;
/** /**
* CDN-CDN * CDN-CDN
*/ */

@ -119,20 +119,20 @@ public class AssetCurrent 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;
/** /**
* *
*/ */
@ -162,7 +162,7 @@ public class AssetCurrent 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;
/** /**
* *
*/ */
@ -176,13 +176,13 @@ public class AssetCurrent 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)
@ -193,24 +193,24 @@ 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 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;
/** /**
* *
*/ */
@ -241,7 +241,7 @@ public class AssetCurrent 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;
/** /**
* *
*/ */
@ -270,7 +270,7 @@ public class AssetCurrent 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;
/** /**
* *
*/ */
@ -291,7 +291,7 @@ public class AssetCurrent 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;
/** /**
* *
*/ */
@ -312,14 +312,14 @@ public class AssetCurrent 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;
/** /**
* -( * -(
*/ */
@ -344,32 +344,32 @@ public class AssetCurrent 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;
/** /**
* - * -
*/ */
@ -462,12 +462,12 @@ public class AssetCurrent 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-
*/ */
@ -506,7 +506,7 @@ public class AssetCurrent extends BaseClass implements Serializable {
* ICP- * ICP-
*/ */
@ApiModelProperty("ICP备案信息-备案单位性质") @ApiModelProperty("ICP备案信息-备案单位性质")
private Integer ipcBadwxz; private String ipcBadwxz;
/** /**
* ICP- * ICP-
*/ */
@ -531,7 +531,7 @@ public class AssetCurrent 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;
/** /**
* - * -
*/ */
@ -606,14 +606,14 @@ public class AssetCurrent 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;
/** /**
* - * -
*/ */
@ -626,7 +626,7 @@ public class AssetCurrent 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;
/** /**
* - * -
*/ */
@ -641,7 +641,7 @@ public class AssetCurrent 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;
/** /**
* - * -
*/ */
@ -652,12 +652,12 @@ public class AssetCurrent extends BaseClass implements Serializable {
* - * -
*/ */
@ApiModelProperty("等保信息-专家评审") @ApiModelProperty("等保信息-专家评审")
private Integer dbxxZjps; private String dbxxZjps;
/** /**
* - * -
*/ */
@ApiModelProperty("等保信息-主管部门评审") @ApiModelProperty("等保信息-主管部门评审")
private Integer dbxxZgbmps; private String dbxxZgbmps;
/** /**
* - * -
*/ */
@ -672,7 +672,7 @@ public class AssetCurrent 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)
@ -754,12 +754,12 @@ public class AssetCurrent extends BaseClass implements Serializable {
* - * -
*/ */
@ApiModelProperty("第三方测评-测评师证书等级") @ApiModelProperty("第三方测评-测评师证书等级")
private Integer sfCpszsdj; private String sfCpszsdj;
/** /**
* - * -
*/ */
@ApiModelProperty("第三方测评-测评等级") @ApiModelProperty("第三方测评-测评等级")
private Integer sfCpdj; private String sfCpdj;
/** /**
* - * -
*/ */
@ -828,7 +828,7 @@ public class AssetCurrent extends BaseClass implements Serializable {
* Whois- * Whois-
*/ */
@ApiModelProperty("Whois信息-有效性") @ApiModelProperty("Whois信息-有效性")
private Integer whoisYxx; private String whoisYxx;
/** /**
* Whois- * Whois-
*/ */
@ -933,28 +933,28 @@ public class AssetCurrent 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;
/** /**
* - * -
*/ */
@ -982,28 +982,28 @@ public class AssetCurrent 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;
/** /**
* - * -
*/ */
@ -1025,4 +1025,7 @@ public class AssetCurrent extends BaseClass implements Serializable {
@ApiModelProperty("删除标志0代表存在 2代表删除") @ApiModelProperty("删除标志0代表存在 2代表删除")
private String delFlag; private String delFlag;
@ApiModelProperty("是否报废默认0不报废 2代表报废")
private String isbf;
} }

@ -41,7 +41,7 @@ public class AssetExport extends AssetCurrent{
* *
*/ */
@Excel(name = "*系统建设单位注册地址是否为太仓",width=26,sort = 70,dictType = "is_no",comboReadDict = true) @Excel(name = "*系统建设单位注册地址是否为太仓",width=26,sort = 70,dictType = "is_no",comboReadDict = true)
private Integer sfwtc; private String sfwtc;
/** /**
* *
@ -62,7 +62,7 @@ public class AssetExport extends AssetCurrent{
* *
*/ */
@Excel(name = "*服务器信息-操作系统",width=26,sort = 80,dictType = "fwq_czxt",comboReadDict = true) @Excel(name = "*服务器信息-操作系统",width=26,sort = 80,dictType = "fwq_czxt",comboReadDict = true)
private Integer czxt; private String czxt;
/** /**
* *
*/ */

@ -25,7 +25,7 @@ import java.util.Date;
public class AssetSupplyChain extends BaseClass implements Serializable { public class AssetSupplyChain extends BaseClass implements Serializable {
@TableId(value = "id",type = IdType.AUTO) @TableId(value = "id",type = IdType.AUTO)
private Integer id; private Long id;
/** /**
* id * id
*/ */
@ -70,7 +70,7 @@ public class AssetSupplyChain extends BaseClass implements Serializable {
* *
*/ */
@ApiModelProperty("注册地是否为太仓") @ApiModelProperty("注册地是否为太仓")
private Integer sfwtc; private String sfwtc;
@ApiModelProperty("删除标志0代表存在 2代表删除") @ApiModelProperty("删除标志0代表存在 2代表删除")
private String delFlag; private String delFlag;

@ -0,0 +1,72 @@
package com.ruoyi.tc.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.tc.baseClass.BaseClass;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* (unit_examine_info)
* @author du
* @since 2024/11/19 11:10
*/
@Data
@ApiModel("单位对应的检查信息字段")
@TableName(value = "unit_examine_info")
public class ExamineInfo extends BaseClass {
@TableId(value = "jcid",type = IdType.AUTO)
private Long jcid;
/**
* id
*/
@ApiModelProperty("单位id")
private Long unitId;
/**
*
*/
@ApiModelProperty("时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date sj;
/**
*
*/
@ApiModelProperty("系统域名")
private String xtym;
/**
*
*/
@ApiModelProperty("系统名称")
private String xthc;
/**
*
*/
@ApiModelProperty("等保级别")
private String dbjb;
/**
*
*/
@ApiModelProperty("单位名称")
private String dwmc;
/**
*
*/
@ApiModelProperty("检查结果")
private String jcjg;
@ApiModelProperty("删除标志0代表存在 2代表删除")
private String delFlag;
}

@ -61,11 +61,11 @@ public class Unit implements Serializable {
@ApiModelProperty("所属行业") @ApiModelProperty("所属行业")
@Excel(name = "所属行业",dictType="sshy",comboReadDict = true) @Excel(name = "所属行业",dictType="sshy",comboReadDict = true)
private Integer sshy; private String sshy;
@ApiModelProperty("单位类型") @ApiModelProperty("单位类型")
@Excel(name = "单位类型",dictType="dwlx",comboReadDict = true ) @Excel(name = "单位类型",dictType="dwlx",comboReadDict = true )
private Integer dwlx; private String dwlx;
@ApiModelProperty("单位标签(多个标签逗号隔开)") @ApiModelProperty("单位标签(多个标签逗号隔开)")
@Excel(name = "单位标签(多个标签逗号隔开)") @Excel(name = "单位标签(多个标签逗号隔开)")
@ -73,7 +73,7 @@ public class Unit implements Serializable {
@ApiModelProperty("单位角色") @ApiModelProperty("单位角色")
@Excel(name = "单位角色",dictType="dwjs",comboReadDict = true) @Excel(name = "单位角色",dictType="dwjs",comboReadDict = true)
private Integer dwjs; private String dwjs;
@ApiModelProperty("统一社会信用代码/用户账号") @ApiModelProperty("统一社会信用代码/用户账号")
@Excel(name = "统一社会信用代码",required = true) @Excel(name = "统一社会信用代码",required = true)
@ -81,7 +81,7 @@ public class Unit implements Serializable {
@ApiModelProperty("是否关基单位") @ApiModelProperty("是否关基单位")
@Excel(name="是否关基单位",dictType="gjdw",comboReadDict = true) @Excel(name="是否关基单位",dictType="gjdw",comboReadDict = true)
private Integer gjdw; private String gjdw;
@ApiModelProperty("日常运营负责部门") @ApiModelProperty("日常运营负责部门")
private String rcyyfzbm; private String rcyyfzbm;
@ -150,13 +150,14 @@ public class Unit implements Serializable {
@Excel(name="第一联系人职务职称") @Excel(name="第一联系人职务职称")
private String dylxrzwzc; private String dylxrzwzc;
@ApiModelProperty("第一联系人职务职称") @ApiModelProperty("单位其他联系人")
@TableField(exist = false) @TableField(exist = false)
private List<UnitOtherConcat> otherConcat; private List<UnitOtherConcat> otherConcat;
@ApiModelProperty("检查信息") @ApiModelProperty("检查信息列表")
private String jcxx; @TableField(exist = false)
private List<ExamineInfo> jcxxList;
@ApiModelProperty("官网") @ApiModelProperty("官网")
@Excel(name = "官网") @Excel(name = "官网")
@ -172,7 +173,7 @@ public class Unit implements Serializable {
@ApiModelProperty("单位直属性质") @ApiModelProperty("单位直属性质")
@Excel(name = "单位直属性质", dictType="dwzsxz",comboReadDict = true) @Excel(name = "单位直属性质", dictType="dwzsxz",comboReadDict = true)
private Integer dwzsxz; private String dwzsxz;
/** /**
* *

@ -0,0 +1,23 @@
package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.tc.entity.AssetBasicNetwork;
import com.ruoyi.tc.entity.ExamineInfo;
import java.util.List;
/**
* (unit_examine_info)访
* @author makejava
* @since 2024-11-15 10:03:56
*/
public interface ExamineInfoMapper extends BaseMapper<ExamineInfo> {
/**
*
*/
void deleteByUnitIds(List<Long> idList);
}

@ -0,0 +1,20 @@
package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.AssetBasicNetwork;
import com.ruoyi.tc.entity.ExamineInfo;
import java.util.List;
/**
* (unit_examine_info)
*
* @author makejava
* @since 2024-11-15 16:05:26
*/
public interface ExamineInfoService extends IService<ExamineInfo> {
/**
*
*/
void deleteByUnitIds(List<Long> idList);
}

@ -0,0 +1,30 @@
package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.AssetBasicNetwork;
import com.ruoyi.tc.entity.ExamineInfo;
import com.ruoyi.tc.mapper.AssetBasicNetWorkMapper;
import com.ruoyi.tc.mapper.ExamineInfoMapper;
import com.ruoyi.tc.service.AssetBasicNetworkService;
import com.ruoyi.tc.service.ExamineInfoService;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* (unit_examine_info)
*
* @author makejava
* @since 2024-11-15 16:05:26
*/
@Service("examineInfoServiceImpl")
public class ExamineInfoServiceImpl extends ServiceImpl<ExamineInfoMapper, ExamineInfo> implements ExamineInfoService {
/**
*
*/
@Override
public void deleteByUnitIds(List<Long> idList) {
baseMapper.deleteByUnitIds(idList);
}
}

@ -8,7 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="page" resultType="com.ruoyi.tc.entity.AssetCurrent"> <select id="page" resultType="com.ruoyi.tc.entity.AssetCurrent">
select * from asset_current select * from asset_current
<where> <where>
del_flag = '0' del_flag = '0' and isbf = '0'
<if test="req.xtmc!=null and req.xtmc!='' "> <if test="req.xtmc!=null and req.xtmc!='' ">
and xtmc like concat('%',#{req.xtmc},'%') and xtmc like concat('%',#{req.xtmc},'%')
</if> </if>

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.tc.mapper.ExamineInfoMapper">
<update id="deleteByUnitIds">
update asset_examine_info set del_flag = '2' where unit_id in
<foreach collection="idList" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>

@ -37,7 +37,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="dylxrlxfs" column="dylxrlxfs"/> <result property="dylxrlxfs" column="dylxrlxfs"/>
<result property="dylxryx" column="dylxryx"/> <result property="dylxryx" column="dylxryx"/>
<result property="dylxrzwzc" column="dylxrzwzc"/> <result property="dylxrzwzc" column="dylxrzwzc"/>
<result property="jcxx" column="jcxx"/>
<result property="gw" column="gw"/> <result property="gw" column="gw"/>
<result property="dtjd" column="dtjd"/> <result property="dtjd" column="dtjd"/>
<result property="dtwd" column="dtwd"/> <result property="dtwd" column="dtwd"/>
@ -64,6 +63,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="updateTime" column="update_time"/> <result property="updateTime" column="update_time"/>
<result property="remark" column="remark"/> <result property="remark" column="remark"/>
</collection> </collection>
<collection property="jcxxList" javaType="java.util.List" ofType="com.ruoyi.tc.entity.ExamineInfo" >
<id property="jcid" column="jcid" />
<result property="unitId" column="unit_id" />
<result property="sj" column="sj" />
<result property="xtym" column="xtym" />
<result property="xthc" column="xthc" />
<result property="dbjb" column="dbjb" />
<result property="dwmc" column="dwmc" />
<result property="jcjg" column="jcjg" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by"/>
<result property="createId" column="create_id"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateId" column="update_id"/>
<result property="updateTime" column="update_time"/>
<result property="remark" column="remark"/>
</collection>
</resultMap> </resultMap>
<select id="selectUnitList" parameterType="unit" resultMap="unitResult"> <select id="selectUnitList" parameterType="unit" resultMap="unitResult">
@ -82,8 +99,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where> </where>
</select> </select>
<select id="getById" parameterType="unit" resultMap="unitResult"> <select id="getById" parameterType="unit" resultMap="unitResult">
select a.*,c.* from unit_info a select a.*,c.*,e.* from unit_info a
left join unit_other_contact c on a.id = c.unit_id left join unit_other_contact c on a.id = c.unit_id
left join unit_examine_info e on a.id = e.unit_id
where id = #{id} where id = #{id}
</select> </select>

Loading…
Cancel
Save