任务模块编写

main
dongdingding 2 months ago
parent 0088011cf4
commit 1972dc8038

@ -3,12 +3,16 @@ package com.ruoyi.tc.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.tc.entity.AssetCurrent;
import com.ruoyi.tc.entity.AssetLc;
import com.ruoyi.tc.entity.AssetTask;
import com.ruoyi.tc.entity.po.*;
import com.ruoyi.tc.entity.request.AssestTaskXqRequest;
import com.ruoyi.tc.entity.request.AssetCurrentShRequest;
import com.ruoyi.tc.entity.request.AssetTaskPageRequest;
import com.ruoyi.tc.entity.response.*;
import com.ruoyi.tc.entity.response.AssestTaskXqresponse;
import com.ruoyi.tc.entity.response.AssetTaskIdResponse;
import com.ruoyi.tc.service.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@ -49,6 +53,25 @@ public class AssetTaskController extends BaseController {
@Resource
private UnitOtherConcatCpService unitOtherConcatCpService;
@Resource
private AssetCurrentJyService assetCurrentJyService;
@Resource
private AssetBusinessFormJyService assetBusinessFormJyService;
@Resource
private AssetSupplyChainJyService assetSupplyChainJyService;
@Resource
AssetBasicNetworkJyService assetBasicNetworkJyService;
@Resource
private UnitOtherConcatJyservice unitOtherConcatJyservice;
@Resource
private AssetLcService assetLcService;
/**
*
*
@ -140,7 +163,6 @@ public class AssetTaskController extends BaseController {
@ApiOperation(value = "资产核查信息", response = AssestTaskXqresponse.class)
@GetMapping("/zcHc")
public AjaxResult zcHc(Page<AssestTaskXqresponse> page, AssestTaskXqRequest pageRequest) {
return AjaxResult.success(assetTaskService.zcHc(page, pageRequest));
}
@ -154,22 +176,37 @@ public class AssetTaskController extends BaseController {
@ApiOperation(value = "单位端暂存报废")
@PostMapping("/zc")
@Transactional(rollbackFor = Exception.class)
public AjaxResult zcHc(@RequestBody AssetCurrentResponse assetCurrent) {
// //根据资产id和任务id删除五张表数据
// assetCurrentCpService.deletByAssetIdandTaskId(assetCurrent.getId(), assetCurrent.getTaskId());
// assetBusinessFormCpService.deletByAssetIdandTaskId(assetCurrent.getId(), assetCurrent.getTaskId());
// assetSupplyChainCpService.deletByAssetIdandTaskId(assetCurrent.getId(), assetCurrent.getTaskId());
// unitOtherConcatCpService.deletByAssetIdandTaskId(assetCurrent.getId(), assetCurrent.getTaskId());
// assetBasicNetworkCpService.deletByAssetIdandTaskId(assetCurrent.getId(), assetCurrent.getTaskId());
if(assetCurrent.getBfyy().isEmpty()) {
public AjaxResult zcHc(@RequestBody AssetCurrentCpPo assetCurrent) {
//根据资产id和任务id删除五张表数据
assetCurrentCpService.deletByAssetIdandTaskId(assetCurrent.getId(), assetCurrent.getTaskId());
assetBusinessFormCpService.deletByAssetIdandTaskId(assetCurrent.getId(), assetCurrent.getTaskId());
assetSupplyChainCpService.deletByAssetIdandTaskId(assetCurrent.getId(), assetCurrent.getTaskId());
unitOtherConcatCpService.deletByAssetIdandTaskId(assetCurrent.getId(), assetCurrent.getTaskId());
assetBasicNetworkCpService.deletByAssetIdandTaskId(assetCurrent.getId(), assetCurrent.getTaskId());
if (StringUtils.isBlank(assetCurrent.getBfyy())) {
//待审批
assetCurrent.setStatus(1);
}else{
} else {
//已报废
assetCurrent.setStatus(5);
}
assetCurrent.setGlym(String.join(",", assetCurrent.getGlymList()));
assetCurrent.setGlIp(String.join(",", assetCurrent.getGlIpList()));
StringBuilder a = new StringBuilder();
if (!assetCurrent.getGlymList().isEmpty()) {
assetCurrent.getGlymList().forEach(x -> {
a.append(x);
a.append(",");
});
}
assetCurrent.setGlym(a.toString());
StringBuilder b = new StringBuilder();
if (!assetCurrent.getGlIpList().isEmpty()) {
assetCurrent.getGlymList().forEach(x -> {
b.append(x);
b.append(",");
});
}
assetCurrent.setGlIp(b.toString());
// assetCurrent.setCurrentId(null);
assetCurrentCpService.save(assetCurrent);
//新增新监管业务形态
if (assetCurrent.getXjgywxt() != null) {
@ -178,25 +215,28 @@ public class AssetTaskController extends BaseController {
assetBusinessFormCpService.save(assetCurrent.getXjgywxt());
}
if (!assetCurrent.getGylxxList().isEmpty()) {
for (AssetSupplyChainCpResponse items : assetCurrent.getGylxxList()) {
for (AssetSupplyChainCpPo items : assetCurrent.getGylxxList()) {
items.setAssetId(assetCurrent.getId());
items.setTaskId(assetCurrent.getTaskId());
}
//新增供应链
assetSupplyChainCpService.saveBatch(assetCurrent.getGylxxList());
}
if (!assetCurrent.getJcwlList().isEmpty()) {
for (AssetBasicNetworkCpResponse items : assetCurrent.getJcwlList()) {
for (AssetBasicNetworkCpPo items : assetCurrent.getJcwlList()) {
items.setAssetId(assetCurrent.getId());
items.setTaskId(assetCurrent.getTaskId());
}
//新增基础网络
assetBasicNetworkCpService.saveBatch(assetCurrent.getJcwlList());
}
if (!assetCurrent.getOtherConcat().isEmpty()) {
for (UnitOtherConcatCpResponse items : assetCurrent.getOtherConcat()) {
for (UnitOtherConcatCpPo items : assetCurrent.getOtherConcat()) {
items.setAssetId(assetCurrent.getId());
items.setTaskId(assetCurrent.getTaskId());
}
//新增其他联系人
unitOtherConcatCpService.saveBatch(assetCurrent.getOtherConcat());
@ -205,19 +245,83 @@ public class AssetTaskController extends BaseController {
}
/**
*
*
*
* @param assetCurrent
* @return
*/
@ApiOperation(value = "单位端提交")
@PostMapping("/tj")
@ApiOperation(value = "单位端校验提交")
@PostMapping("/jyTj")
@Transactional(rollbackFor = Exception.class)
public AjaxResult tj(@RequestBody AssetCurrentResponse assetCurrent) {
return AjaxResult.success();
public AjaxResult tj(@RequestBody AssetCurrentJyPo assetCurrent) {
//根据资产id和任务id删除五张表数据
assetCurrentCpService.deletByAssetIdandTaskId(assetCurrent.getId(), assetCurrent.getTaskId());
assetBusinessFormCpService.deletByAssetIdandTaskId(assetCurrent.getId(), assetCurrent.getTaskId());
assetSupplyChainCpService.deletByAssetIdandTaskId(assetCurrent.getId(), assetCurrent.getTaskId());
unitOtherConcatCpService.deletByAssetIdandTaskId(assetCurrent.getId(), assetCurrent.getTaskId());
assetBasicNetworkCpService.deletByAssetIdandTaskId(assetCurrent.getId(), assetCurrent.getTaskId());
//新增流程节点时间
AssetLc assetLc = new AssetLc();
assetLc.setTaskId(assetCurrent.getTaskId());
assetLc.setAssetName(assetCurrent.getXtmc());
//当审核状态为审核不通过 单位端重新提交
if (assetCurrent.getStatus().equals(4)){
assetLc.setDwcxhcTime(LocalDateTime.now());
}
StringBuilder a = new StringBuilder();
if (!assetCurrent.getGlymList().isEmpty()) {
assetCurrent.getGlymList().forEach(x -> {
a.append(x);
a.append(",");
});
}
assetCurrent.setGlym(a.toString());
StringBuilder b = new StringBuilder();
if (!assetCurrent.getGlIpList().isEmpty()) {
assetCurrent.getGlymList().forEach(x -> {
b.append(x);
b.append(",");
});
}
assetCurrent.setGlIp(b.toString());
assetCurrentJyService.save(assetCurrent);
//当审核状态为带待核查
if(assetCurrent.getStatus().equals(1)){
assetLc.setDwhcTime(LocalDateTime.now());
}
//新增新监管业务形态
if (assetCurrent.getXjgywxt() != null) {
assetCurrent.getXjgywxt().setAssetId(assetCurrent.getId());
assetCurrent.getXjgywxt().setTaskId(assetCurrent.getTaskId());
assetBusinessFormJyService.save(assetCurrent.getXjgywxt());
}
if (!assetCurrent.getGylxxList().isEmpty()) {
for (AssetSupplyChainJyPo items : assetCurrent.getGylxxList()) {
items.setAssetId(assetCurrent.getId());
items.setTaskId(assetCurrent.getTaskId());
}
//新增供应链
assetSupplyChainJyService.saveBatch(assetCurrent.getGylxxList());
}
if (!assetCurrent.getJcwlList().isEmpty()) {
for (AssetBasicNetworkJyPo items : assetCurrent.getJcwlList()) {
items.setAssetId(assetCurrent.getId());
items.setTaskId(assetCurrent.getTaskId());
}
//新增基础网络
assetBasicNetworkJyService.saveBatch(assetCurrent.getJcwlList());
}
if (!assetCurrent.getOtherConcat().isEmpty()) {
for (UnitOtherConcatJyPo items : assetCurrent.getOtherConcat()) {
items.setAssetId(assetCurrent.getId());
items.setTaskId(assetCurrent.getTaskId());
}
//新增其他联系人
unitOtherConcatJyservice.saveBatch(assetCurrent.getOtherConcat());
}
return success();
}
/**
@ -231,9 +335,5 @@ public class AssetTaskController extends BaseController {
public AjaxResult sh(@RequestBody AssetCurrentShRequest req) {
return AjaxResult.success(assetTaskService.sh(req));
}
}

@ -119,6 +119,12 @@ public class AssetLc implements Serializable {
@ApiModelProperty("备注")
private String remark;
/**
*
*/
@ApiModelProperty("资产名称")
private String assetName;
}

@ -1,4 +1,4 @@
package com.ruoyi.tc.entity.response;
package com.ruoyi.tc.entity.po;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
@ -12,16 +12,21 @@ import java.io.Serializable;
/**
* (asset_basic_network)
*
* @author du
* @since 2024/11/13 14:44
*/
*/
@Data
@ApiModel("资产基础网络复制表")
@TableName(value = "asset_basic_network_cp")
public class AssetBasicNetworkCpResponse extends BaseClass implements Serializable {
public class AssetBasicNetworkCpPo extends BaseClass implements Serializable {
/**
* id
*/
@TableId(type = IdType.AUTO,value = "network_id")
private Long networkId;
private Long id;
/**
* id
@ -89,4 +94,10 @@ public class AssetBasicNetworkCpResponse extends BaseClass implements Serializab
@ApiModelProperty("任务id")
private Integer taskId;
/**
* IP
*/
@ApiModelProperty("设备IP类型")
private String ipType;
}

@ -0,0 +1,104 @@
package com.ruoyi.tc.entity.po;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.tc.baseClass.BaseClass;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* (asset_basic_network)
* @author du
* @since 2024/11/13 14:44
*/
@Data
@ApiModel("资产基础网络")
@TableName(value = "asset_basic_network_cp")
public class AssetBasicNetworkJyPo extends BaseClass implements Serializable {
/**
* id
*/
@TableId(type = IdType.AUTO,value = "network_id")
private Long networkId;
/**
* id
*/
@ApiModelProperty("资源id")
private Long assetId;
/**
* 1.23
*/
@ApiModelProperty("1.服务器信息2网络设备3安全设备")
private Integer type;
/**
*
*/
@ApiModelProperty("设备类型")
private String sblx;
/**
*
*/
@ApiModelProperty("品牌")
private String pp;
/**
* IP
*/
@ApiModelProperty("设备IP")
private String sbIp;
/**
* IP
*/
@ApiModelProperty("设备IP类型")
private String ipType;
/**
*
*/
@ApiModelProperty("操作系统")
private String czxt;
/**
*
*/
@ApiModelProperty("操作系统版本")
private String czxtbb;
/**
*
*/
@ApiModelProperty("硬件型号")
private String yjxh;
/**
*
*/
@ApiModelProperty("硬件序列号")
private String yjxlh;
/**
*
*/
@ApiModelProperty("硬件版本信息")
private String yjbbxx;
/**
*
*/
@ApiModelProperty("硬件用途")
private String yjyt;
/**
*
*/
@ApiModelProperty("硬件部署位置")
private String yjbsxx;
@ApiModelProperty("删除标志0代表存在 2代表删除")
private String delFlag;
@ApiModelProperty("任务id")
private Integer taskId;
}

@ -1,4 +1,4 @@
package com.ruoyi.tc.entity.response;
package com.ruoyi.tc.entity.po;
import com.baomidou.mybatisplus.annotation.IdType;
@ -20,9 +20,14 @@ import java.io.Serializable;
@Data
@ApiModel("资产新监管业务形态复制表")
@TableName(value = "asset_business_form_cp")
public class AssetBusinessFormCpResponse extends BaseClass implements Serializable {
public class AssetBusinessFormCpPo extends BaseClass implements Serializable {
/**
* id
*/
@TableId(type = IdType.AUTO,value = "business_id")
private Long businessId;
private Long id;
/**
* id
*/

@ -0,0 +1,411 @@
package com.ruoyi.tc.entity.po;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.tc.baseClass.BaseClass;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Size;
import java.io.Serializable;
/**
* (asset_business_form)
* @author du
* @since 2024/11/13 14:44
*/
@Data
@ApiModel("资产新监管业务形态")
@TableName(value = "asset_business_form_cp")
public class AssetBusinessFormJyPo extends BaseClass implements Serializable {
/**
* id
*/
@TableId(type = IdType.AUTO,value = "business_id")
private Long businessId;
/**
* id
*/
@ApiModelProperty("资源id")
private Long assetId;
/**
* -
*/
@Size(max= 50,message="云平台-云平台服务商长度不能超过50")
@ApiModelProperty("云平台-云平台服务商")
private String yptFws;
/**
* -
*/
@ApiModelProperty("云平台-是否租户级安全")
private String yptSfzh;
/**
* -
*/
@Size(max= 50,message="云平台-云平台类型长度不能超过50")
@ApiModelProperty("云平台-云平台类型")
private String yptLx;
/**
* -
*/
@Size(max= 50,message="云平台-硬件资源大小长度不能超过50")
@ApiModelProperty("云平台-硬件资源大小")
private String yptYjzydx;
/**
* -
*/
@Size(max= 50,message="云平台-平台架构长度不能超过50")
@ApiModelProperty("云平台-平台架构")
private String yptPtjg;
/**
* -IP
*/
@Size(max= 50,message="云平台-互联网IP段长度不能超过50")
@ApiModelProperty("云平台-互联网IP段")
private String yptIp;
/**
* -
*/
@Size(max= 50,message="云平台-机房联系人长度不能超过50")
@ApiModelProperty("云平台-机房联系人")
private String yptJflxr;
/**
* -
*/
@Size(max= 50,message="云平台-机房联系人电话长度不能超过50")
@ApiModelProperty("云平台-机房联系人电话")
private String yptJflxrdh;
/**
* -
*/
@Size(max= 50,message="云平台-服务器设备类型长度不能超过50")
@ApiModelProperty("云平台-服务器设备类型")
private String yptFwqsblx;
/**
* -
*/
@Size(max= 50,message="大数据平台-平台服务商长度不能超过50")
@ApiModelProperty("大数据平台-平台服务商")
private String dsjPtfws;
/**
* -
*/
@Size(max= 50,message="大数据平台-敏感数据类型长度不能超过50")
@ApiModelProperty("大数据平台-敏感数据类型")
private String dsjMgsjlx;
/**
* -
*/
@Size(max= 50,message="大数据平台-硬件资源长度不能超过50")
@ApiModelProperty("大数据平台-硬件资源")
private String dsjYjzy;
/**
* -
*/
@Size(max= 50,message="大数据平台-系统数据量长度不能超过50")
@ApiModelProperty("大数据平台-系统数据量")
private String dsjXtsjl;
/**
* -
*/
@Size(max= 50,message="大数据平台-机房联系人长度不能超过50")
@ApiModelProperty("大数据平台-机房联系人")
private String dsjJflxr;
/**
* -
*/
@Size(max= 50,message="大数据平台-机房联系人电话长度不能超过50")
@ApiModelProperty("大数据平台-机房联系人电话")
private String dsjJflxrdh;
/**
* -
*/
@ApiModelProperty("大数据平台-是否数据审计")
private String dsjSfsjsj;
/**
* -
*/
@Size(max= 50,message="一般物联网设备-系统集成商名称长度不能超过50")
@ApiModelProperty("一般物联网设备-系统集成商名称")
private String wlwsbXtjcs;
/**
* -
*/
@Size(max= 50,message="一般物联网设备-用户数量长度不能超过50")
@ApiModelProperty("一般物联网设备-用户数量")
private String wlwsbYhsl;
/**
* -
*/
@ApiModelProperty("一般物联网设备-服务对象")
private String wlwsbFwdx;
/**
* -
*/
@Size(max= 50,message="一般物联网设备-终端数量长度不能超过50")
@ApiModelProperty("一般物联网设备-终端数量")
private String wlwsbZdsl;
/**
* -
*/
@ApiModelProperty("一般物联网设备-网络互联情况")
private String wlwsbWlhlqk;
/**
* -
*/
@Size(max= 50,message="一般物联网设备-联系人长度不能超过50")
@ApiModelProperty("一般物联网设备-联系人")
private String wlwsbLxr;
/**
* -
*/
@ApiModelProperty("一般物联网设备-服务范围")
private String wlwsbFwfw;
/**
* -
*/
@Size(max= 50,message="一般物联网设备-联系人电话长度不能超过50")
@ApiModelProperty("一般物联网设备-联系人电话")
private String wlwsbLxrdh;
/**
* -
*/
@Size(max= 500,message="一般物联网设备-服务内容长度不能超过500")
@ApiModelProperty("一般物联网设备-服务内容")
private String wlwsbFwnr;
/**
* -
*/
@Size(max= 50,message="摄像头-摄像头品牌长度不能超过50")
@ApiModelProperty("摄像头-摄像头品牌")
private String sxtPp;
/**
* -
*/
@Size(max= 255,message="摄像头-位置长度不能超过255")
@ApiModelProperty("摄像头-位置")
private String sxtWz;
/**
* -IP
*/
@Size(max= 50,message="摄像头-摄像头IP长度不能超过50")
@ApiModelProperty("摄像头-摄像头IP")
private String sxtIp;
/**
* -
*/
@Size(max= 50,message="摄像头-区域长度不能超过50")
@ApiModelProperty("摄像头-区域")
private String sxtQy;
/**
* -
*/
@Size(max= 50,message="摄像头-摄像头数量长度不能超过50")
@ApiModelProperty("摄像头-摄像头数量")
private String sxtSl;
/**
* -
*/
@Size(max= 50,message="摄像头-端口长度不能超过50")
@ApiModelProperty("摄像头-端口")
private String sxtDk;
/**
* -
*/
@Size(max= 50,message="摄像头-设备型号长度不能超过50")
@ApiModelProperty("摄像头-设备型号")
private String sxtSbxh;
/**
* -
*/
@Size(max= 50,message="摄像头-固定版本长度不能超过50")
@ApiModelProperty("摄像头-固定版本")
private String sxtGdbb;
/**
* APP-APP
*/
@Size(max= 50,message="移动APP-移动APP系统长度不能超过50")
@ApiModelProperty("移动APP-移动APP系统")
private String appXt;
/**
* APP-
*/
@Size(max= 50,message="移动APP-服务端域名长度不能超过50")
@ApiModelProperty("移动APP-服务端域名")
private String appYm;
/**
* APP-APP
*/
@Size(max= 50,message="移动APP-移动APP渠道长度不能超过50")
@ApiModelProperty("移动APP-移动APP渠道")
private String appQd;
/**
* APP-IP
*/
@Size(max= 50,message="移动APP-服务端IP长度不能超过50")
@ApiModelProperty("移动APP-服务端IP")
private String appIp;
/**
* APP-
*/
@Size(max= 50,message="移动APP-联系人长度不能超过50")
@ApiModelProperty("移动APP-联系人")
private String appLxr;
/**
* APP-
*/
@Size(max= 50,message="移动APP-联系人电话长度不能超过50")
@ApiModelProperty("移动APP-联系人电话")
private String appLxrdh;
/**
* APP-APP
*/
@ApiModelProperty("移动APP-APP是否有身份认证")
private String appSfysfrz;
/**
* -
*/
@Size(max= 255,message="工业控制-系统集成商名称长度不能超过255")
@ApiModelProperty("工业控制-系统集成商名称")
private String gykzJcs;
/**
* -
*/
@Size(max= 255,message="工业控制-运行时间长度不能超过255")
@ApiModelProperty("工业控制-运行时间")
private String gykzYxsj;
/**
* -
*/
@ApiModelProperty("工业控制-服务对象")
private String gykzFwdx;
/**
* -
*/
@Size(max= 255,message="工业控制-集成商国内外情况长度不能超过255")
@ApiModelProperty("工业控制-集成商国内外情况")
private String gykzJcsqk;
/**
* -
*/
@ApiModelProperty("工业控制-网络互联情况")
private String gykzWlhxqk;
/**
* -
*/
@Size(max= 255,message="工业控制-联系人长度不能超过255")
@ApiModelProperty("工业控制-联系人")
private String gykzLxr;
/**
* -
*/
@ApiModelProperty("工业控制-服务范围")
private String gykzFwfw;
/**
* -
*/
@Size(max= 50,message="工业控制-联系人电话长度不能超过50")
@ApiModelProperty("工业控制-联系人电话")
private String gykzLxrdh;
/**
* -
*/
@Size(max= 50,message="工业控制-设备名称长度不能超过50")
@ApiModelProperty("工业控制-设备名称")
private String gykzSbmc;
/**
* -
*/
@Size(max= 50,message="工业控制-设备品牌长度不能超过50")
@ApiModelProperty("工业控制-设备品牌")
private String gykzSbpp;
/**
* -
*/
@Size(max= 50,message="工业控制-设备类别长度不能超过50")
@ApiModelProperty("工业控制-设备类别")
private String gykzSblb;
/**
* -
*/
@Size(max= 50,message="工业控制-运营商长度不能超过50")
@ApiModelProperty("工业控制-运营商")
private String gykzYys;
/**
* -IP
*/
@Size(max= 50,message="工业控制-互联网IP长度不能超过50")
@ApiModelProperty("工业控制-互联网IP")
private String gykzHlwIp;
/**
* -
*/
@Size(max= 50,message="工业控制-网络层级长度不能超过50")
@ApiModelProperty("工业控制-网络层级")
private String gykzWlcj;
/**
* -IP
*/
@Size(max= 50,message="工业控制-控制台IP长度不能超过50")
@ApiModelProperty("工业控制-控制台IP")
private String gykzKztIp;
/**
* -
*/
@Size(max= 500,message="工业控制-描述长度不能超过500")
@ApiModelProperty("工业控制-描述")
private String gykzMs;
/**
* CDN-CDN
*/
@Size(max= 255,message="CDN信息-CDN供应商长度不能超过255")
@ApiModelProperty("CDN信息-CDN供应商")
private String cdnGys;
/**
* CDN-CDN使
*/
@ApiModelProperty("CDN信息-CDN是否使用")
private String cdnSfsy;
/**
* CDN-CDN
*/
@Size(max= 50,message="CDN信息-CDN类型长度不能超过50")
@ApiModelProperty("CDN信息-CDN类型")
private String cdnLx;
/**
* CDN-CDN
*/
@Size(max= 50,message="CDN信息-CDN域名长度不能超过50")
@ApiModelProperty("CDN信息-CDN域名")
private String cdnYm;
/**
* CDN-
*/
@Size(max= 50,message="CDN信息-联系人长度不能超过50")
@ApiModelProperty("CDN信息-联系人")
private String cdnLxr;
/**
* CDN-
*/
@Size(max= 50,message="CDN信息-联系人电话长度不能超过50")
@ApiModelProperty("CDN信息-联系人电话")
private String cdnLxrdh;
/**
* CDN-CDN
*/
@Size(max= 500,message="CDN信息-CDN加速信息长度不能超过500")
@ApiModelProperty("CDN信息-CDN加速信息")
private String cdnJsxx;
@ApiModelProperty("删除标志0代表存在 2代表删除")
private String delFlag;
@ApiModelProperty("任务id")
private Integer taskId;
}

@ -1,21 +1,15 @@
package com.ruoyi.tc.entity.response;
package com.ruoyi.tc.entity.po;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.tc.baseClass.BaseClass;
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.request.Acomma;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;
@ -29,9 +23,15 @@ import java.util.List;
@Data
@ApiModel("现有资产复制表")
@TableName(value = "asset_current_cp")
public class AssetCurrentResponse extends BaseClass implements Serializable {
public class AssetCurrentCpPo extends BaseClass implements Serializable {
private static final long serialVersionUID = 1L;
// /**
// * 主键id
// */
// @TableId(type = IdType.AUTO,value = "current_id")
// private Long currentId;
@ApiModelProperty("资产id")
private Long id;
@ -104,12 +104,12 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@ApiModelProperty("关联域名list")
@TableField(exist = false)
private List<String> glymList;
private List<Acomma> glymList;
@ApiModelProperty("关联iplist")
@TableField(exist = false)
private List<String> glIpList;
private List<Acomma> glIpList;
/**
* ip,
@ -196,12 +196,12 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
*/
@ApiModelProperty("存活率(字典)")
private String chl;
/**
*
*/
@ApiModelProperty("地理位置")
private String dlwz;
// /**
// * 地理位置
// */
//
// @ApiModelProperty("地理位置")
// private String dlwz;
/**
*
*/
@ -409,7 +409,7 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
@ApiModelProperty("其他联系人")
@TableField(exist = false)
private List<UnitOtherConcatCpResponse> otherConcat;
private List<UnitOtherConcatCpPo> otherConcat;
/**
* ICP-
@ -608,17 +608,12 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
private String dbxxSfydsfcp;
@ApiModelProperty("地理位置-省")
@TableField(exist = false)
private String sheng;
@ApiModelProperty("地理位置-市")
@TableField(exist = false)
private String shi;
@ApiModelProperty("地理位置-区(县)")
@TableField(exist = false)
private String qu;
/**
* -
@ -727,20 +722,20 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
*/
@ApiModelProperty("供应链信息列表")
@TableField(exist = false)
private List<AssetSupplyChainCpResponse> gylxxList;
private List<AssetSupplyChainCpPo> gylxxList;
/**
*
*/
@ApiModelProperty("基础网络列表")
@TableField(exist = false)
private List<AssetBasicNetworkCpResponse> jcwlList;
private List<AssetBasicNetworkCpPo> jcwlList;
/**
*
*/
@ApiModelProperty("新监管业务形态")
@TableField(exist = false)
private AssetBusinessFormCpResponse xjgywxt;
private AssetBusinessFormCpPo xjgywxt;
/**
* Whois-
*/
@ -935,5 +930,5 @@ public class AssetCurrentResponse extends BaseClass implements Serializable {
private String bfyy;
@ApiModelProperty("审核状态0待核查1待审批3审核通过4审核不通过5已报废")
private Integer status;
private Integer status=0;
}

@ -1,4 +1,4 @@
package com.ruoyi.tc.entity.response;
package com.ruoyi.tc.entity.po;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
@ -8,7 +8,6 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Size;
import java.io.Serializable;
/**
@ -19,9 +18,17 @@ import java.io.Serializable;
@Data
@ApiModel("资产供应链信息复制表响应类")
@TableName(value = "asset_supply_chain_cp")
public class AssetSupplyChainCpResponse extends BaseClass implements Serializable {
public class AssetSupplyChainCpPo extends BaseClass implements Serializable {
/**
* id
*/
@TableId(type = IdType.AUTO,value = "supply_id")
private Long supplyId;
private Long id;
/**
* id
*/

@ -0,0 +1,84 @@
package com.ruoyi.tc.entity.po;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.tc.baseClass.BaseClass;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Size;
import java.io.Serializable;
/**
* (asset_supply_chain)
* @author du
* @since 2024/11/13 14:44
*/
@Data
@ApiModel("资产供应链信息")
@TableName(value = "asset_supply_chain_cp")
public class AssetSupplyChainJyPo extends BaseClass implements Serializable {
/**
* id
*/
@TableId(type = IdType.AUTO,value = "supply_id")
private Long supplyId;
/**
* id
*/
@ApiModelProperty("资产id")
private Long assetId;
/**
* 1.2.3.4.5.6. 7
*/
@ApiModelProperty("1.测评单位2.硬件供应商单位3.机房运维单位4.系统设计单位5.系统建设单位6.安全服务单位 7系统运营单位")
private Integer type;
/**
*
*/
@Size(max= 50,message="名称长度不能超过50")
@ApiModelProperty("名称")
private String name;
/**
*
*/
@Size(max= 50,message="统一信用代码长度不能超过50")
@ApiModelProperty("统一信用代码")
private String tyshxydm;
/**
*
*/
@Size(max= 50,message="联系人长度不能超过50")
@ApiModelProperty("联系人")
private String lxr;
/**
*
*/
@Size(max= 50,message="联系电话长度不能超过50")
@ApiModelProperty("联系电话")
private String lxdh;
/**
*
*/
@Size(max= 500,message="供应商注册地址长度不能超过500")
@ApiModelProperty("供应商注册地址")
private String gyszcdz;
/**
*
*/
@ApiModelProperty("注册地是否为太仓")
private String sfwtc;
@ApiModelProperty("删除标志0代表存在 2代表删除")
private String delFlag;
@ApiModelProperty("任务id")
private Integer taskId;
}

@ -1,5 +1,7 @@
package com.ruoyi.tc.entity.response;
package com.ruoyi.tc.entity.po;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.tc.baseClass.BaseClass;
import io.swagger.annotations.ApiModel;
@ -17,8 +19,13 @@ import java.io.Serializable;
@Data
@ApiModel("单位其他联系人复制表")
@TableName(value = "unit_other_contact_cp")
public class UnitOtherConcatCpResponse extends BaseClass implements Serializable {
@ApiModelProperty("主键id")
public class UnitOtherConcatCpPo extends BaseClass implements Serializable {
@ApiModelProperty("主表id")
@TableId(type = IdType.AUTO,value = "concat_id")
private Long concatId;
@ApiModelProperty("单位id")

@ -0,0 +1,57 @@
package com.ruoyi.tc.entity.po;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.tc.baseClass.BaseClass;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* (unit_other_contact)
* @author du
* @since 2024/11/13 14:44
*/
@Data
@ApiModel("单位其他联系人")
@TableName(value = "unit_other_contact_cp")
public class UnitOtherConcatJyPo extends BaseClass implements Serializable {
/**
* id
*/
@TableId(type = IdType.AUTO,value = "concat_id")
@ApiModelProperty("主表id")
private Long concatId;
@ApiModelProperty("单位id")
private Long unitId;
@ApiModelProperty("资产id")
private Long assetId;
@ApiModelProperty("其他联系人姓名")
private String qtlxrxm;
@ApiModelProperty("其他联系人联系方式")
private String qtlxrlxfs;
@ApiModelProperty("其他联系人邮箱")
private String qtlxryx;
@ApiModelProperty("其他联系人职务职称")
private String qtlxrzwzc;
@ApiModelProperty("删除标志0代表存在 2代表删除")
private String delFlag;
@ApiModelProperty("任务id")
private Integer taskId;
}

@ -1,8 +1,9 @@
package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.tc.entity.response.AssetBasicNetworkCpResponse;
import com.ruoyi.tc.entity.po.AssetBasicNetworkCpPo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
@ -13,7 +14,7 @@ import java.util.List;
* @author makejava
* @since 2024-11-15 10:03:56
*/
public interface AssetBasicNetWorkCpMapper extends BaseMapper<AssetBasicNetworkCpResponse> {
public interface AssetBasicNetWorkCpMapper extends BaseMapper<AssetBasicNetworkCpPo> {
/**
* idid
@ -23,7 +24,7 @@ public interface AssetBasicNetWorkCpMapper extends BaseMapper<AssetBasicNetworkC
*/
@Select("select * from asset_basic_network where asset_id=#{assetId} ")
List<AssetBasicNetworkCpResponse> findByassetId(Long assetId);
List<AssetBasicNetworkCpPo> findByassetId(Long assetId);
/**
@ -32,7 +33,7 @@ public interface AssetBasicNetWorkCpMapper extends BaseMapper<AssetBasicNetworkC
* @param assetId id
* @param taskId id
*/
@Delete("delete from asset_basic_network_cp where asset_id=#{assetId} and task_id ={taskId} ")
void deletByAssetIdandTaskId(Long assetId, int taskId);
@Delete("delete from asset_basic_network_cp where asset_id=#{assetId} and task_id =#{taskId} ")
void deletByAssetIdandTaskId(@Param("assetId") Long assetId, @Param("taskId") int taskId);
}

@ -0,0 +1,14 @@
package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.tc.entity.po.AssetBasicNetworkJyPo;
/**
* (asset_basic_network_cp)访
*
* @author makejava
* @since 2024-11-15 10:03:56
*/
public interface AssetBasicNetWorkJyMapper extends BaseMapper<AssetBasicNetworkJyPo> {
}

@ -1,8 +1,9 @@
package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.tc.entity.response.AssetBusinessFormCpResponse;
import com.ruoyi.tc.entity.po.AssetBusinessFormCpPo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
@ -13,7 +14,7 @@ import java.util.List;
* @author makejava
* @since 2024-11-15 10:03:56
*/
public interface AssetBusinessFormCpMapper extends BaseMapper<AssetBusinessFormCpResponse> {
public interface AssetBusinessFormCpMapper extends BaseMapper<AssetBusinessFormCpPo> {
/**
@ -23,7 +24,7 @@ public interface AssetBusinessFormCpMapper extends BaseMapper<AssetBusinessFormC
* @return
*/
@Select("select * from asset_business_form where asset_id =#{assetId}")
List<AssetBusinessFormCpResponse> findByassetId(Long assetId);
List<AssetBusinessFormCpPo> findByassetId(Long assetId);
/**
@ -32,8 +33,8 @@ public interface AssetBusinessFormCpMapper extends BaseMapper<AssetBusinessFormC
* @param assetId id
* @param taskId id
*/
@Delete("delete from asset_business_form_cp where asset_id=#{assetId} and task_id ={taskId} ")
void deletByAssetIdandTaskId(Long assetId, int taskId);
@Delete("delete from asset_business_form_cp where asset_id=#{assetId} and task_id =#{taskId} ")
void deletByAssetIdandTaskId(@Param("assetId") Long assetId, @Param("taskId")int taskId);
}

@ -0,0 +1,40 @@
package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.tc.entity.po.AssetBusinessFormCpPo;
import com.ruoyi.tc.entity.po.AssetBusinessFormJyPo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* (asset_business_form_cp)访
*
* @author makejava
* @since 2024-11-15 10:03:56
*/
public interface AssetBusinessFormJyMapper extends BaseMapper<AssetBusinessFormJyPo> {
/**
* idid
*
* @param assetId id
* @return
*/
@Select("select * from asset_business_form where asset_id =#{assetId}")
List<AssetBusinessFormCpPo> findByassetId(Long assetId);
/**
* idid
*
* @param assetId id
* @param taskId id
*/
@Delete("delete from asset_business_form_cp where asset_id=#{assetId} and task_id ={taskId} ")
void deletByAssetIdandTaskId(Long assetId, int taskId);
}

@ -1,28 +1,23 @@
package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.tc.entity.AssetCurrent;
import com.ruoyi.tc.entity.request.AssetCurrentPageRequest;
import com.ruoyi.tc.entity.response.AssetCurrentResponse;
import com.ruoyi.tc.entity.po.AssetCurrentCpPo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* (AssetCurrentResponse)访
*
* @author makejava
* @since 2024-11-15 10:03:56
*/
public interface AssetCurrentCpMapper extends BaseMapper<AssetCurrentResponse> {
public interface AssetCurrentCpMapper extends BaseMapper<AssetCurrentCpPo> {
/**
*
* @param assetId
* @param taskId
*/
@Delete("delete from asset_current_cp where id=#{assetId} and task_id ={taskId} ")
void deletByAssetIdandTaskId(Long assetId,int taskId);
@Delete("delete from asset_current_cp where id=#{assetId} and task_id =#{taskId} ")
void deletByAssetIdandTaskId(@Param("assetId") Long assetId, @Param("taskId")int taskId);
}

@ -0,0 +1,15 @@
package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.tc.entity.po.AssetCurrentJyPo;
/**
* (AssetCurrentResponse)访
*
* @author makejava
* @since 2024-11-15 10:03:56
*/
public interface AssetCurrentJyMapper extends BaseMapper<AssetCurrentJyPo> {
}

@ -1,8 +1,9 @@
package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.tc.entity.response.AssetSupplyChainCpResponse;
import com.ruoyi.tc.entity.po.AssetSupplyChainCpPo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
@ -13,7 +14,7 @@ import java.util.List;
* @author makejava
* @since 2024-11-15 10:03:56
*/
public interface AssetSupplyChainCpMapper extends BaseMapper<AssetSupplyChainCpResponse> {
public interface AssetSupplyChainCpMapper extends BaseMapper<AssetSupplyChainCpPo> {
/**
@ -23,7 +24,7 @@ public interface AssetSupplyChainCpMapper extends BaseMapper<AssetSupplyChainCpR
* @return
*/
@Select("select * from asset_supply_chain where asset_id=#{assetId}")
List<AssetSupplyChainCpResponse> findByassetId(Long assetId);
List<AssetSupplyChainCpPo> findByassetId(Long assetId);
/**
@ -32,8 +33,7 @@ public interface AssetSupplyChainCpMapper extends BaseMapper<AssetSupplyChainCpR
* @param assetId id
* @param taskId id
*/
@Delete("delete from asset_business_form_cp where asset_id=#{assetId} and task_id ={taskId} ")
void deletByAssetIdandTaskId(Long assetId, int taskId);
@Delete("delete from asset_supply_chain_cp where asset_id=#{assetId} and task_id =#{taskId} ")
void deletByAssetIdandTaskId(@Param("assetId") Long assetId, @Param("taskId")int taskId);
}

@ -0,0 +1,18 @@
package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.tc.entity.po.AssetSupplyChainJyPo;
/**
* (asset_supply_chain_cp)访
*
* @author makejava
* @since 2024-11-15 10:03:56
*/
public interface AssetSupplyChainJyMapper extends BaseMapper<AssetSupplyChainJyPo> {
}

@ -7,7 +7,7 @@ import com.ruoyi.tc.entity.request.AssestTaskXqRequest;
import com.ruoyi.tc.entity.request.AssetCurrentShRequest;
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.po.AssetCurrentCpPo;
import com.ruoyi.tc.entity.response.AssetTaskResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
@ -105,7 +105,7 @@ public interface AssetTaskMapper extends BaseMapper<AssetTask> {
* @param dwmc
* @return
*/
List<AssetCurrentResponse> findByDwmcAssetCurrent(String dwmc);
List<AssetCurrentCpPo> findByDwmcAssetCurrent(String dwmc);
/**
@ -125,7 +125,7 @@ public interface AssetTaskMapper extends BaseMapper<AssetTask> {
* @param assetId id
* @return
*/
AssetCurrentResponse findBytaskIdandAssestId(@Param("taskId") int taskId, @Param("assetId") int assetId);
AssetCurrentCpPo findBytaskIdandAssestId(@Param("taskId") int taskId, @Param("assetId") int assetId);

@ -1,8 +1,9 @@
package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.tc.entity.response.UnitOtherConcatCpResponse;
import com.ruoyi.tc.entity.po.UnitOtherConcatCpPo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
@ -12,7 +13,7 @@ import java.util.List;
*
* @author ruoyi
*/
public interface UnitOtherConcatCpMapper extends BaseMapper<UnitOtherConcatCpResponse> {
public interface UnitOtherConcatCpMapper extends BaseMapper<UnitOtherConcatCpPo> {
/**
@ -22,7 +23,7 @@ public interface UnitOtherConcatCpMapper extends BaseMapper<UnitOtherConcatCpRes
* @return
*/
@Select("select * from unit_other_contact where asset_id =#{assetId}")
List<UnitOtherConcatCpResponse> findByassetId(Long assetId);
List<UnitOtherConcatCpPo> findByassetId(Long assetId);
/**
@ -31,6 +32,6 @@ public interface UnitOtherConcatCpMapper extends BaseMapper<UnitOtherConcatCpRes
* @param assetId id
* @param taskId id
*/
@Delete("delete from unit_other_contact_cp where asset_id=#{assetId} and task_id ={taskId} ")
void deletByAssetIdandTaskId(Long assetId, int taskId);
@Delete("delete from unit_other_contact_cp where asset_id=#{assetId} and task_id =#{taskId} ")
void deletByAssetIdandTaskId(@Param("assetId") Long assetId, @Param("taskId")int taskId);
}

@ -0,0 +1,19 @@
package com.ruoyi.tc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.tc.entity.po.UnitOtherConcatCpPo;
import com.ruoyi.tc.entity.po.UnitOtherConcatJyPo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* (unit_other_contact_cp)
*
* @author ruoyi
*/
public interface UnitOtherConcatJyMapper extends BaseMapper<UnitOtherConcatJyPo> {
}

@ -1,8 +1,7 @@
package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.AssetBasicNetwork;
import com.ruoyi.tc.entity.response.AssetBasicNetworkCpResponse;
import com.ruoyi.tc.entity.po.AssetBasicNetworkCpPo;
import java.util.List;
@ -12,7 +11,7 @@ import java.util.List;
* @author makejava
* @since 2024-11-15 16:05:26
*/
public interface AssetBasicNetworkCpService extends IService<AssetBasicNetworkCpResponse> {
public interface AssetBasicNetworkCpService extends IService<AssetBasicNetworkCpPo> {
/**
* idid
@ -20,7 +19,7 @@ public interface AssetBasicNetworkCpService extends IService<AssetBasicNetworkCp
* @param assetId id
* @return
*/
List<AssetBasicNetworkCpResponse> findByassetId(Long assetId);
List<AssetBasicNetworkCpPo> findByassetId(Long assetId);

@ -0,0 +1,18 @@
package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.po.AssetBasicNetworkCpPo;
import com.ruoyi.tc.entity.po.AssetBasicNetworkJyPo;
import java.util.List;
/**
* (asset_basic_network)
*
* @author makejava
* @since 2024-11-15 16:05:26
*/
public interface AssetBasicNetworkJyService extends IService<AssetBasicNetworkJyPo> {
}

@ -1,7 +1,7 @@
package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.response.AssetBusinessFormCpResponse;
import com.ruoyi.tc.entity.po.AssetBusinessFormCpPo;
import java.util.List;
@ -11,14 +11,14 @@ import java.util.List;
* @author makejava
* @since 2024-11-15 16:06:53
*/
public interface AssetBusinessFormCpService extends IService<AssetBusinessFormCpResponse> {
public interface AssetBusinessFormCpService extends IService<AssetBusinessFormCpPo> {
/**
* idid
* @param assetId id
* @return
*/
List<AssetBusinessFormCpResponse> findByassetId(Long assetId);
List<AssetBusinessFormCpPo> findByassetId(Long assetId);

@ -0,0 +1,17 @@
package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.po.AssetBusinessFormJyPo;
/**
* (asset_business_form_cp)
*
* @author makejava
* @since 2024-11-15 16:06:53
*/
public interface AssetBusinessFormJyService extends IService<AssetBusinessFormJyPo> {
}

@ -1,7 +1,7 @@
package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.response.AssetCurrentResponse;
import com.ruoyi.tc.entity.po.AssetCurrentCpPo;
/**
* (AssetCurrentResponse)
@ -9,7 +9,7 @@ import com.ruoyi.tc.entity.response.AssetCurrentResponse;
* @author makejava
* @since 2024-11-15 10:04:03
*/
public interface AssetCurrentCpService extends IService<AssetCurrentResponse> {
public interface AssetCurrentCpService extends IService<AssetCurrentCpPo> {
/**
* idid

@ -0,0 +1,16 @@
package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.po.AssetCurrentJyPo;
/**
* (AssetCurrent)
*
* @author makejava
* @since 2024-11-15 10:04:03
*/
public interface AssetCurrentJyService extends IService<AssetCurrentJyPo> {
}

@ -1,7 +1,7 @@
package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.response.AssetSupplyChainCpResponse;
import com.ruoyi.tc.entity.po.AssetSupplyChainCpPo;
import java.util.List;
@ -11,7 +11,7 @@ import java.util.List;
* @author makejava
* @since 2024-11-15 16:07:30
*/
public interface AssetSupplyChainCpService extends IService<AssetSupplyChainCpResponse> {
public interface AssetSupplyChainCpService extends IService<AssetSupplyChainCpPo> {
/**
* idid
@ -19,7 +19,7 @@ public interface AssetSupplyChainCpService extends IService<AssetSupplyChainCpRe
* @param assetId id
* @return
*/
List<AssetSupplyChainCpResponse> findByassetId(Long assetId);
List<AssetSupplyChainCpPo> findByassetId(Long assetId);

@ -0,0 +1,14 @@
package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.po.AssetSupplyChainJyPo;
/**
* (asset_supply_chain)
* @author makejava
* @since 2024-11-15 16:07:30
*/
public interface AssetSupplyChainJyService extends IService<AssetSupplyChainJyPo> {
}

@ -7,7 +7,7 @@ import com.ruoyi.tc.entity.request.AssestTaskXqRequest;
import com.ruoyi.tc.entity.request.AssetCurrentShRequest;
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.po.AssetCurrentCpPo;
import com.ruoyi.tc.entity.response.AssetTaskResponse;
/**
@ -67,7 +67,7 @@ public interface AssetTaskService extends IService<AssetTask> {
* @param assetId id
* @return
*/
AssetCurrentResponse taskSh(int taskId, int assetId);
AssetCurrentCpPo taskSh(int taskId, int assetId);
/**
*

@ -1,8 +1,8 @@
package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.UnitOtherConcat;
import com.ruoyi.tc.entity.response.UnitOtherConcatCpResponse;
import com.ruoyi.tc.entity.po.UnitOtherConcatCpPo;
import com.ruoyi.tc.entity.po.UnitOtherConcatJyPo;
import java.util.List;
@ -11,7 +11,7 @@ import java.util.List;
* @author du
* @since 2024/11/13 14:55
*/
public interface UnitOtherConcatCpService extends IService<UnitOtherConcatCpResponse> {
public interface UnitOtherConcatCpService extends IService<UnitOtherConcatCpPo> {
/**
* idid
@ -19,7 +19,7 @@ public interface UnitOtherConcatCpService extends IService<UnitOtherConcatCpResp
* @param assetId id
* @return
*/
List<UnitOtherConcatCpResponse> findByassetId(Long assetId);
List<UnitOtherConcatCpPo> findByassetId(Long assetId);
/**

@ -0,0 +1,17 @@
package com.ruoyi.tc.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.tc.entity.po.UnitOtherConcatCpPo;
import com.ruoyi.tc.entity.po.UnitOtherConcatJyPo;
import java.util.List;
/**
* (unit_other_contact_cp)
* @author du
* @since 2024/11/13 14:55
*/
public interface UnitOtherConcatJyservice extends IService<UnitOtherConcatJyPo> {
}

@ -1,7 +1,7 @@
package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.response.AssetBasicNetworkCpResponse;
import com.ruoyi.tc.entity.po.AssetBasicNetworkCpPo;
import com.ruoyi.tc.mapper.AssetBasicNetWorkCpMapper;
import com.ruoyi.tc.service.AssetBasicNetworkCpService;
import org.springframework.stereotype.Service;
@ -16,13 +16,13 @@ import java.util.List;
* @since 2024-11-15 16:05:26
*/
@Service("assetBasicNetworkCpService")
public class AssetBasicNetworkCpServiceImpl extends ServiceImpl<AssetBasicNetWorkCpMapper, AssetBasicNetworkCpResponse> implements AssetBasicNetworkCpService {
public class AssetBasicNetworkCpServiceImpl extends ServiceImpl<AssetBasicNetWorkCpMapper, AssetBasicNetworkCpPo> implements AssetBasicNetworkCpService {
@Resource
private AssetBasicNetWorkCpMapper assetBasicNetWorkCpMapper;
@Override
public List<AssetBasicNetworkCpResponse> findByassetId(Long assetId) {
public List<AssetBasicNetworkCpPo> findByassetId(Long assetId) {
return assetBasicNetWorkCpMapper.findByassetId(assetId);
}

@ -0,0 +1,25 @@
package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.po.AssetBasicNetworkCpPo;
import com.ruoyi.tc.entity.po.AssetBasicNetworkJyPo;
import com.ruoyi.tc.mapper.AssetBasicNetWorkCpMapper;
import com.ruoyi.tc.mapper.AssetBasicNetWorkJyMapper;
import com.ruoyi.tc.service.AssetBasicNetworkCpService;
import com.ruoyi.tc.service.AssetBasicNetworkJyService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* (AssetBasicNetworkCpResponse)
*
* @author makejava
* @since 2024-11-15 16:05:26
*/
@Service("assetBasicNetworkJyService")
public class AssetBasicNetworkJyServiceImpl extends ServiceImpl<AssetBasicNetWorkJyMapper, AssetBasicNetworkJyPo> implements AssetBasicNetworkJyService {
}

@ -1,7 +1,7 @@
package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.response.AssetBusinessFormCpResponse;
import com.ruoyi.tc.entity.po.AssetBusinessFormCpPo;
import com.ruoyi.tc.mapper.AssetBusinessFormCpMapper;
import com.ruoyi.tc.service.AssetBusinessFormCpService;
import org.springframework.stereotype.Service;
@ -16,13 +16,13 @@ import javax.annotation.Resource;
* @since 2024-11-15 16:06:53
*/
@Service("assetBusinessFormCpService")
public class AssetBusinessFormCpServiceImpl extends ServiceImpl<AssetBusinessFormCpMapper, AssetBusinessFormCpResponse> implements AssetBusinessFormCpService {
public class AssetBusinessFormCpServiceImpl extends ServiceImpl<AssetBusinessFormCpMapper, AssetBusinessFormCpPo> implements AssetBusinessFormCpService {
@Resource
private AssetBusinessFormCpMapper assetBusinessFormCpMapper;
@Override
public List<AssetBusinessFormCpResponse> findByassetId(Long assetId) {
public List<AssetBusinessFormCpPo> findByassetId(Long assetId) {
return assetBusinessFormCpMapper.findByassetId(assetId);
}

@ -0,0 +1,20 @@
package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.po.AssetBusinessFormJyPo;
import com.ruoyi.tc.mapper.AssetBusinessFormJyMapper;
import com.ruoyi.tc.service.AssetBusinessFormJyService;
import org.springframework.stereotype.Service;
/**
* (AssetBusinessFormCp)
*
* @author makejava
* @since 2024-11-15 16:06:53
*/
@Service("assetBusinessFormJyService")
public class AssetBusinessFormJyServiceImpl extends ServiceImpl<AssetBusinessFormJyMapper, AssetBusinessFormJyPo> implements AssetBusinessFormJyService {
}

@ -1,18 +1,12 @@
package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.*;
import com.ruoyi.tc.entity.request.AssetCurrentPageRequest;
import com.ruoyi.tc.entity.response.AssetCurrentResponse;
import com.ruoyi.tc.entity.po.AssetCurrentCpPo;
import com.ruoyi.tc.mapper.AssetCurrentCpMapper;
import com.ruoyi.tc.mapper.AssetCurrentMapper;
import com.ruoyi.tc.service.*;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
/**
* (AssetCurrentResponse)
@ -21,7 +15,7 @@ import java.util.List;
* @since 2024-11-15 10:04:03
*/
@Service("assetCurrentCpService")
public class AssetCurrentCpServiceImpl extends ServiceImpl<AssetCurrentCpMapper, AssetCurrentResponse> implements AssetCurrentCpService {
public class AssetCurrentCpServiceImpl extends ServiceImpl<AssetCurrentCpMapper, AssetCurrentCpPo> implements AssetCurrentCpService {
@Resource
private AssetCurrentCpMapper assetCurrentCpMapper;

@ -0,0 +1,20 @@
package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.po.AssetCurrentJyPo;
import com.ruoyi.tc.mapper.AssetCurrentJyMapper;
import com.ruoyi.tc.service.AssetCurrentJyService;
import org.springframework.stereotype.Service;
/**
* (AssetCurrentResponse)
*
* @author makejava
* @since 2024-11-15 10:04:03
*/
@Service("assetCurrentJyService")
public class AssetCurrentJyServiceImpl extends ServiceImpl<AssetCurrentJyMapper, AssetCurrentJyPo> implements AssetCurrentJyService {
}

@ -1,12 +1,9 @@
package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.AssetSupplyChain;
import com.ruoyi.tc.entity.response.AssetSupplyChainCpResponse;
import com.ruoyi.tc.entity.po.AssetSupplyChainCpPo;
import com.ruoyi.tc.mapper.AssetSupplyChainCpMapper;
import com.ruoyi.tc.mapper.AssetSupplyChainMapper;
import com.ruoyi.tc.service.AssetSupplyChainCpService;
import com.ruoyi.tc.service.AssetSupplyChainService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@ -19,12 +16,12 @@ import java.util.List;
* @since 2024-11-15 16:07:30
*/
@Service("assetSupplyChainCpService")
public class AssetSupplyChainCpServiceImpl extends ServiceImpl<AssetSupplyChainCpMapper, AssetSupplyChainCpResponse> implements AssetSupplyChainCpService {
public class AssetSupplyChainCpServiceImpl extends ServiceImpl<AssetSupplyChainCpMapper, AssetSupplyChainCpPo> implements AssetSupplyChainCpService {
@Resource
private AssetSupplyChainCpMapper assetSupplyChainCpMapper;
@Override
public List<AssetSupplyChainCpResponse> findByassetId(Long assetId) {
public List<AssetSupplyChainCpPo> findByassetId(Long assetId) {
return assetSupplyChainCpMapper.findByassetId(assetId);
}

@ -0,0 +1,19 @@
package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.po.AssetSupplyChainJyPo;
import com.ruoyi.tc.mapper.AssetSupplyChainJyMapper;
import com.ruoyi.tc.service.AssetSupplyChainJyService;
import org.springframework.stereotype.Service;
/**
* (AssetSupplyChainCpResponse)
*
* @author makejava
* @since 2024-11-15 16:07:30
*/
@Service("assetSupplyChainJyService")
public class AssetSupplyChainJyServiceImpl extends ServiceImpl<AssetSupplyChainJyMapper, AssetSupplyChainJyPo> implements AssetSupplyChainJyService {
}

@ -2,28 +2,27 @@ package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.AssetLc;
import com.ruoyi.tc.entity.AssetTask;
import com.ruoyi.tc.entity.request.Acomma;
import com.ruoyi.tc.entity.request.AssestTaskXqRequest;
import com.ruoyi.tc.entity.request.AssetCurrentShRequest;
import com.ruoyi.tc.entity.request.AssetTaskPageRequest;
import com.ruoyi.tc.entity.response.AssestTaskXqresponse;
import com.ruoyi.tc.entity.response.AssetBasicNetworkCpResponse;
import com.ruoyi.tc.entity.response.AssetBusinessFormCpResponse;
import com.ruoyi.tc.entity.response.AssetCurrentResponse;
import com.ruoyi.tc.entity.response.AssetSupplyChainCpResponse;
import com.ruoyi.tc.entity.po.AssetBasicNetworkCpPo;
import com.ruoyi.tc.entity.po.AssetBusinessFormCpPo;
import com.ruoyi.tc.entity.po.AssetCurrentCpPo;
import com.ruoyi.tc.entity.po.AssetSupplyChainCpPo;
import com.ruoyi.tc.entity.response.AssetTaskResponse;
import com.ruoyi.tc.entity.response.UnitOtherConcatCpResponse;
import com.ruoyi.tc.entity.po.UnitOtherConcatCpPo;
import com.ruoyi.tc.mapper.AssetTaskMapper;
import com.ruoyi.tc.service.AssetBasicNetworkCpService;
import com.ruoyi.tc.service.AssetBusinessFormCpService;
import com.ruoyi.tc.service.AssetCurrentCpService;
import com.ruoyi.tc.service.AssetSupplyChainCpService;
import com.ruoyi.tc.service.AssetTaskService;
import com.ruoyi.tc.service.UnitOtherConcatCpService;
import com.ruoyi.tc.service.*;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
@ -54,7 +53,8 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
@Resource
private UnitOtherConcatCpService unitOtherConcatCpService;
@Resource
private AssetLcService assetLcService;
/**
* ID
*
@ -88,22 +88,27 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
public void insert(AssetTask assetTask) {
//任务新增
int id = assetTaskDao.insert(assetTask);
//新增流程节点
AssetLc assetLc = new AssetLc();
assetLc.setTaskId(id);
assetLc.setXfTime(LocalDateTime.now());
assetLcService.insert(assetLc);
String[] parts = assetTask.getDwmc().split(",");
for (String part : parts) {
//根据单位名称查询资产
List<AssetCurrentResponse> list = assetTaskDao.findByDwmcAssetCurrent(part);
for (AssetCurrentResponse assetCurrentResponse : list) {
List<AssetCurrentCpPo> list = assetTaskDao.findByDwmcAssetCurrent(part);
for (AssetCurrentCpPo assetCurrentResponse : list) {
assetCurrentResponse.setTaskId(id);
}
assetCurrentCpService.saveBatch(list);
List<AssetBusinessFormCpResponse> assetBusinessFormCpResponseList = new ArrayList<>();
for (AssetCurrentResponse assetCurrentResponse : list) {
List<AssetBusinessFormCpPo> assetBusinessFormCpResponseList = new ArrayList<>();
for (AssetCurrentCpPo assetCurrentResponse : list) {
//新增新监管业务形态
//根据资产id查询新监管业务形态主表id
List<AssetBusinessFormCpResponse> bussList = assetBusinessFormCpService.findByassetId(assetCurrentResponse.getId());
List<AssetBusinessFormCpPo> bussList = assetBusinessFormCpService.findByassetId(assetCurrentResponse.getId());
if (bussList != null) {
for (AssetBusinessFormCpResponse assetBusinessFormCpResponse : bussList) {
assetCurrentResponse.getXjgywxt().setId(assetBusinessFormCpResponse.getId());
for (AssetBusinessFormCpPo assetBusinessFormCpResponse : bussList) {
assetCurrentResponse.getXjgywxt().setBusinessId(assetBusinessFormCpResponse.getBusinessId());
assetCurrentResponse.getXjgywxt().setAssetId(assetCurrentResponse.getId());
assetCurrentResponse.getXjgywxt().setTaskId(id);
assetBusinessFormCpResponseList.add(assetCurrentResponse.getXjgywxt());
@ -111,30 +116,30 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
assetBusinessFormCpService.saveBatch(assetBusinessFormCpResponseList);
}
//根据资产id查询供应链主表id-
List<AssetSupplyChainCpResponse> supplyChainList = assetSupplyChainCpService.findByassetId(assetCurrentResponse.getId());
List<AssetSupplyChainCpPo> supplyChainList = assetSupplyChainCpService.findByassetId(assetCurrentResponse.getId());
if (supplyChainList != null) {
for (AssetSupplyChainCpResponse items : supplyChainList) {
for (AssetSupplyChainCpPo items : supplyChainList) {
items.setAssetId(assetCurrentResponse.getId());
items.setId(items.getId());
items.setSupplyId(items.getSupplyId());
items.setTaskId(id);
//新增供应链
}
assetSupplyChainCpService.saveBatch(supplyChainList);
}
List<AssetBasicNetworkCpResponse> BasicNetworkCpList = assetBasicNetworkCpService.findByassetId(assetCurrentResponse.getId());
List<AssetBasicNetworkCpPo> BasicNetworkCpList = assetBasicNetworkCpService.findByassetId(assetCurrentResponse.getId());
if (BasicNetworkCpList != null) {
for (AssetBasicNetworkCpResponse items : BasicNetworkCpList) {
for (AssetBasicNetworkCpPo items : BasicNetworkCpList) {
//根据资产id查询基础网络主表id
items.setAssetId(assetCurrentResponse.getId());
items.setId(items.getId());
items.setNetworkId(items.getNetworkId());
items.setTaskId(id);
//新增基础网络
}
assetBasicNetworkCpService.saveBatch(BasicNetworkCpList);
}
List<UnitOtherConcatCpResponse> unitOtherConcatList = unitOtherConcatCpService.findByassetId(assetCurrentResponse.getId());
List<UnitOtherConcatCpPo> unitOtherConcatList = unitOtherConcatCpService.findByassetId(assetCurrentResponse.getId());
if (unitOtherConcatList != null) {
for (UnitOtherConcatCpResponse items : unitOtherConcatList) {
for (UnitOtherConcatCpPo items : unitOtherConcatList) {
//根据资产id查询其他联系人主表id
items.setAssetId(assetCurrentResponse.getId());
items.setConcatId(items.getConcatId());
@ -172,17 +177,33 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
}
@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());
public AssetCurrentCpPo taskSh(int taskId, int assetId) {
AssetCurrentCpPo byId = assetTaskDao.findBytaskIdandAssestId(taskId, assetId);
byId.setGylxxList(assetSupplyChainCpService.lambdaQuery().eq(AssetSupplyChainCpPo::getAssetId, assetId).eq(AssetSupplyChainCpPo::getDelFlag, "0").eq(AssetSupplyChainCpPo::getTaskId, taskId).list());
byId.setJcwlList(assetBasicNetworkCpService.lambdaQuery().eq(AssetBasicNetworkCpPo::getAssetId, assetId).eq(AssetBasicNetworkCpPo::getDelFlag, "0").eq(AssetBasicNetworkCpPo::getTaskId, taskId).list());
byId.setXjgywxt(assetBusinessFormCpService.lambdaQuery().eq(AssetBusinessFormCpPo::getAssetId, assetId).eq(AssetBusinessFormCpPo::getDelFlag, "0").eq(AssetBusinessFormCpPo::getTaskId, taskId).one());
byId.setOtherConcat(unitOtherConcatCpService.lambdaQuery().eq(UnitOtherConcatCpPo::getAssetId, assetId).eq(UnitOtherConcatCpPo::getDelFlag, "0").eq(UnitOtherConcatCpPo::getTaskId, taskId).list());
List<Acomma> a1 = new ArrayList<>();
Arrays.asList(byId.getGlym().split(",")).forEach(x->{
Acomma acomma = new Acomma();
acomma.setKey(x);
a1.add(acomma);
});
byId.setGlymList(a1);
List<Acomma> a2 = new ArrayList<>();
Arrays.asList(byId.getGlIp().split(",")).forEach(x->{
Acomma acomma = new Acomma();
acomma.setKey(x);
a2.add(acomma);
});
byId.setGlIpList(a2);
return byId;
}
@Override
public Page<AssestTaskXqresponse> zcHc(Page<AssestTaskXqresponse> assetTask, AssestTaskXqRequest pageRequest) {
public Page<AssestTaskXqresponse> zcHc(Page<AssestTaskXqresponse> assetTask, AssestTaskXqRequest pageRequest)
{
assetTask.setOptimizeCountSql(false);
return assetTaskDao.zcHc(assetTask, pageRequest);
}

@ -1,7 +1,7 @@
package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.response.UnitOtherConcatCpResponse;
import com.ruoyi.tc.entity.po.UnitOtherConcatCpPo;
import com.ruoyi.tc.mapper.UnitOtherConcatCpMapper;
import com.ruoyi.tc.service.UnitOtherConcatCpService;
import org.springframework.stereotype.Service;
@ -16,12 +16,12 @@ import java.util.List;
* @since 2024/11/13 14:58
*/
@Service("unitOtherConcatCpService")
public class UnitOtherConcatCpServiceImpl extends ServiceImpl<UnitOtherConcatCpMapper, UnitOtherConcatCpResponse> implements UnitOtherConcatCpService {
public class UnitOtherConcatCpServiceImpl extends ServiceImpl<UnitOtherConcatCpMapper, UnitOtherConcatCpPo> implements UnitOtherConcatCpService {
@Resource
private UnitOtherConcatCpMapper unitOtherConcatCpMapper;
@Override
public List<UnitOtherConcatCpResponse> findByassetId(Long assetId) {
public List<UnitOtherConcatCpPo> findByassetId(Long assetId) {
return unitOtherConcatCpMapper.findByassetId(assetId);
}

@ -0,0 +1,24 @@
package com.ruoyi.tc.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tc.entity.po.UnitOtherConcatCpPo;
import com.ruoyi.tc.entity.po.UnitOtherConcatJyPo;
import com.ruoyi.tc.mapper.UnitOtherConcatCpMapper;
import com.ruoyi.tc.mapper.UnitOtherConcatJyMapper;
import com.ruoyi.tc.service.UnitOtherConcatCpService;
import com.ruoyi.tc.service.UnitOtherConcatJyservice;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* (unit_other_contact_cp)
*
* @author du
* @since 2024/11/13 14:58
*/
@Service("unitOtherConcatJyservice")
public class UnitOtherConcatJyServiceImpl extends ServiceImpl<UnitOtherConcatJyMapper, UnitOtherConcatJyPo> implements UnitOtherConcatJyservice {
}

@ -167,8 +167,8 @@
<!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into asset_lc(task_idxf_timedwhc_timeshbh_timedwcxhc_timeshtg_timeueser_iddept_idcreate_idcreate_bycreate_timeupdate_idupdate_byupdate_timeversionremark)
values (#{taskId}#{xfTime}#{dwhcTime}#{shbhTime}#{dwcxhcTime}#{shtgTime}#{ueserId}#{deptId}#{createId}#{createBy}#{createTime}#{updateId}#{updateBy}#{updateTime}#{version}#{remark})
insert into asset_lc(task_id,xf_time,dwhc_time,shbh_time,dwcxhc_time,shtg_time,ueser_id,dept_id,create_id,create_by,create_time,update_id,update_by,update_time,version,remark)
values (#{taskId},#{xfTime},#{dwhcTime},#{shbhTime},#{dwcxhcTime},#{shtgTime},#{ueserId},#{deptId},#{createId},#{createBy},#{createTime},#{updateId},#{updateBy},#{updateTime},#{version},#{remark})
</insert>
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">

@ -188,7 +188,7 @@
</where>
</select>
<select id="findByDwmcAssetCurrent" resultType="com.ruoyi.tc.entity.response.AssetCurrentResponse">
<select id="findByDwmcAssetCurrent" resultType="com.ruoyi.tc.entity.po.AssetCurrentCpPo">
select * from asset_current
<where>
del_flag = '0' and isbf = '0'
@ -222,7 +222,7 @@
</if>
</where>
</select>
<select id="findBytaskIdandAssestId" resultType="com.ruoyi.tc.entity.response.AssetCurrentResponse">
<select id="findBytaskIdandAssestId" resultType="com.ruoyi.tc.entity.po.AssetCurrentCpPo">
select *
from asset_current_cp
where task_id = #{taskId}
@ -323,16 +323,11 @@
<update id="sh" parameterType="com.ruoyi.tc.entity.request.AssetCurrentShRequest">
update asset_current_cp
<set>
<if test="req.taskId != null ">
task_id = #{req.taskId},
</if>
<if test="req.assetId != null ">
id = #{req.assetId},
</if>
<if test="req.status != null ">
status = #{req.status},
</if>
</set>
where id = #{req.assetId} and task_id = #{req.taskId}
</update>
<!--通过主键删除-->

Loading…
Cancel
Save