From 36e24cc5cdcd9d2e3d7912872b35d6bed0b7a9cc Mon Sep 17 00:00:00 2001 From: dongdingding <207595406@qq.com> Date: Wed, 15 Jan 2025 13:00:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=AB=AF=E5=8F=AF=E5=9C=A8?= =?UTF-8?q?=E8=B5=84=E4=BA=A7=E7=AE=A1=E7=90=86=E6=A8=A1=E5=9D=97=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E8=B5=84=E4=BA=A7=E6=89=80=E5=B1=9E=E5=8D=95=E4=BD=8D?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=EF=BC=8C=E5=B9=B6=E5=90=8C=E6=AD=A5=E8=87=B3?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tc/controller/AssetTaskController.java | 99 +++- .../ruoyi/tc/controller/UnitController.java | 11 +- .../history/AssetOfficialAccountHistory.java | 11 + .../ruoyi/tc/entity/po/AssetCurrentCpPo.java | 5 +- .../ruoyi/tc/entity/request/UnitRequest.java | 11 +- .../entity/response/AssetHistoryResponse.java | 35 ++ .../tc/entity/response/AssetzcTjResponse.java | 31 +- .../AssetAppHistoryService.java | 5 +- .../AssetCurrentHistoryService.java | 5 +- .../AssetEmailHistoryService.java | 5 +- .../AssetMiniProgramsHistoryService.java | 5 +- .../AssetOfficialAccountHistoryService.java | 5 +- .../impl/AssetAppHistoryServiceImpl.java | 4 +- .../impl/AssetCurrentHistoryServiceImpl.java | 4 +- .../impl/AssetEmailHistoryServiceImpl.java | 4 +- .../AssetMiniProgramsHistoryServiceImpl.java | 4 +- ...ssetOfficialAccountHistoryServiceImpl.java | 4 +- .../tc/mapper/AssetBasicNetWorkCpMapper.java | 16 +- .../tc/mapper/AssetBusinessFormCpMapper.java | 19 +- .../ruoyi/tc/mapper/AssetCurrentCpMapper.java | 7 +- .../ruoyi/tc/mapper/AssetEmailCpMapper.java | 2 +- .../tc/mapper/AssetSupplyChainCpMapper.java | 19 +- .../tc/mapper/UnitOtherConcatCpMapper.java | 15 +- .../mapper/history/AssetAppHistoryMapper.java | 7 +- .../history/AssetCurrentHistoryMapper.java | 7 +- .../history/AssetEmailHistoryMapper.java | 7 +- .../AssetMiniProgramsHistoryMapper.java | 7 +- .../AssetOfficialAccountHistoryMapper.java | 5 +- .../service/AssetBasicNetworkCpService.java | 15 +- .../service/AssetBusinessFormCpService.java | 9 +- .../tc/service/AssetCurrentCpService.java | 8 +- .../tc/service/AssetSupplyChainCpService.java | 13 +- .../ruoyi/tc/service/AssetTaskService.java | 54 +- .../tc/service/UnitOtherConcatCpService.java | 12 +- .../com/ruoyi/tc/service/UnitService.java | 2 +- .../impl/AssetBasicNetworkCpServiceImpl.java | 8 +- .../impl/AssetBusinessFormCpServiceImpl.java | 8 +- .../impl/AssetCurrentCpServiceImpl.java | 4 +- .../impl/AssetSupplyChainCpServiceImpl.java | 8 +- .../tc/service/impl/AssetTaskServiceImpl.java | 468 +++++++++--------- .../impl/UnitOtherConcatCpServiceImpl.java | 8 +- .../tc/service/impl/UnitServiceImpl.java | 4 +- .../src/main/resources/mapper/UnitMapper.xml | 95 ++-- 43 files changed, 632 insertions(+), 443 deletions(-) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/tc/entity/response/AssetHistoryResponse.java diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/controller/AssetTaskController.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/controller/AssetTaskController.java index 8957c60..24110e3 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/controller/AssetTaskController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/controller/AssetTaskController.java @@ -1,5 +1,6 @@ package com.ruoyi.tc.controller; +import cn.hutool.core.collection.CollectionUtil; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; @@ -23,6 +24,7 @@ import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; import javax.validation.Valid; +import java.text.ParseException; import java.time.LocalDateTime; import java.time.ZoneId; import java.util.Date; @@ -236,10 +238,40 @@ public class AssetTaskController extends BaseController { return AjaxResult.success(assetTaskService.taskSh(taskId, assetId)); } + + /** + * 历史详情信息 + * + * @param id id + * @return + */ + @ApiOperation(value = "历史详情信息", response = AssetHistoryResponse.class) + @GetMapping("/history") + public AjaxResult webHistory(@RequestParam("id") Long id, @RequestParam("type") Integer type) { + AssetHistoryResponse assetHistoryResponse = new AssetHistoryResponse(); + if (type == 0) { + //web + assetHistoryResponse.setAssetCurrentHistory(assetTaskService.webHistory(id)); + } else if (type == 1) { + //小程序资产 + assetHistoryResponse.setAssetMiniProgramsHistory(assetTaskService.miniHistory(id)); + } else if (type == 2) { + //公众号资产 + + assetHistoryResponse.setAssetOfficialAccountHistory(assetTaskService.officeHistory(id)); + } else if (type == 3) { + //电子邮件资产 + assetHistoryResponse.setAssetEmailHistory(assetTaskService.emailHistory(id)); + } else if (type == 4) { + //移动应用程序资产 + assetHistoryResponse.setAssetAppHistory(assetTaskService.appHistory(id)); + } + return AjaxResult.success(assetHistoryResponse); + } + /** * 小程序资产任务审核详情信息 * - * @param taskId 任务id * @param assetId 资产id * @return */ @@ -250,6 +282,7 @@ public class AssetTaskController extends BaseController { return AjaxResult.success(assetTaskService.minitaskSh(taskId, assetId)); } + /** * 公众号资产任务审核详情信息 * @@ -279,6 +312,7 @@ public class AssetTaskController extends BaseController { return AjaxResult.success(assetTaskService.emailtaskSh(taskId, assetId)); } + /** * 移动应用程序资产任务审核详情信息 * @@ -293,6 +327,7 @@ public class AssetTaskController extends BaseController { return AjaxResult.success(assetTaskService.apptaskSh(taskId, assetId)); } + /** * 资产核查信息 * @@ -340,7 +375,7 @@ public class AssetTaskController extends BaseController { } StringBuilder a = new StringBuilder(); - if (!assetCurrent.getGlymList().isEmpty()) { + if (CollectionUtil.isNotEmpty(assetCurrent.getGlymList())) { assetCurrent.getGlymList().forEach(x -> { if (!Objects.equals(x.getKey(), "") && x.getKey() != null) { a.append(x.getKey()); @@ -350,7 +385,7 @@ public class AssetTaskController extends BaseController { } assetCurrent.setGlym(a.toString()); StringBuilder b = new StringBuilder(); - if (!assetCurrent.getGlIpList().isEmpty()) { + if (CollectionUtil.isNotEmpty(assetCurrent.getGlIpList())) { assetCurrent.getGlIpList().forEach(x -> { if (!Objects.equals(x.getKey(), "") && x.getKey() != null) { b.append(x.getKey()); @@ -402,7 +437,7 @@ public class AssetTaskController extends BaseController { Date date = Date.from(localDateTime.atZone(ZoneId.systemDefault()).toInstant()); //新增历史记录 StringBuilder c = new StringBuilder(); - if (!assetCurrent.getGlymList().isEmpty()) { + if (CollectionUtil.isNotEmpty(assetCurrent.getGlymList())) { assetCurrent.getGlymList().forEach(x -> { if (!Objects.equals(x.getKey(), "") && x.getKey() != null) { c.append(x.getKey()); @@ -412,7 +447,7 @@ public class AssetTaskController extends BaseController { } assetCurrent.setGlym(a.toString()); StringBuilder d = new StringBuilder(); - if (!assetCurrent.getGlIpList().isEmpty()) { + if (CollectionUtil.isNotEmpty(assetCurrent.getGlIpList())) { assetCurrent.getGlIpList().forEach(x -> { if (!Objects.equals(x.getKey(), "") && x.getKey() != null) { d.append(x.getKey()); @@ -435,6 +470,7 @@ public class AssetTaskController extends BaseController { AssetBusinessFormHistory assetBusinessFormHistory = new AssetBusinessFormHistory(); assetBusinessFormHistory.setCopyId(assetCurrent.getCurrentId()); BeanUtils.copyProperties(assetCurrent.getXjgywxt(), assetBusinessFormHistory); + assetBusinessFormHistory.setBusinessId(null); assetBusinessFormHistoryService.save(assetBusinessFormHistory); } @@ -450,6 +486,7 @@ public class AssetTaskController extends BaseController { AssetSupplyChainHistory assetSupplyChainHistory = new AssetSupplyChainHistory(); assetSupplyChainHistory.setCopyId(assetCurrent.getCurrentId()); BeanUtils.copyProperties(cpPo, assetSupplyChainHistory); // 复制属性 + assetSupplyChainHistory.setSupplyId(null); return assetSupplyChainHistory; // 返回新对象 }) .collect(Collectors.toList()); // 收集到列表中 @@ -467,6 +504,7 @@ public class AssetTaskController extends BaseController { AssetBasicNetworkHistory assetBasicNetworkHistory = new AssetBasicNetworkHistory(); assetBasicNetworkHistory.setCopyId(assetCurrent.getCurrentId()); BeanUtils.copyProperties(cpPo, assetBasicNetworkHistory); // 复制属性 + assetBasicNetworkHistory.setNetworkId(null); return assetBasicNetworkHistory; // 返回新对象 }) .collect(Collectors.toList()); // 收集到列表中 @@ -483,6 +521,7 @@ public class AssetTaskController extends BaseController { UnitOtherConcatHistory unitOtherConcatHistory = new UnitOtherConcatHistory(); unitOtherConcatHistory.setCopyId(assetCurrent.getCurrentId()); BeanUtils.copyProperties(cpPo, unitOtherConcatHistory); // 复制属性 + unitOtherConcatHistory.setUnitId(null); return unitOtherConcatHistory; // 返回新对象 }) .collect(Collectors.toList()); // 收集到列表中 @@ -520,7 +559,7 @@ public class AssetTaskController extends BaseController { // } StringBuilder a = new StringBuilder(); - if (!assetCurrent.getGlymList().isEmpty()) { + if (CollectionUtil.isNotEmpty(assetCurrent.getGlymList())) { assetCurrent.getGlymList().forEach(x -> { a.append(x); a.append(","); @@ -528,7 +567,7 @@ public class AssetTaskController extends BaseController { } assetCurrent.setGlym(a.toString()); StringBuilder b = new StringBuilder(); - if (!assetCurrent.getGlIpList().isEmpty()) { + if (CollectionUtil.isNotEmpty(assetCurrent.getGlIpList())) { assetCurrent.getGlymList().forEach(x -> { b.append(x); b.append(","); @@ -550,7 +589,7 @@ public class AssetTaskController extends BaseController { assetCurrent.getXjgywxt().setTaskId(assetCurrent.getTaskId()); assetBusinessFormJyService.save(assetCurrent.getXjgywxt()); } - if (!assetCurrent.getGylxxList().isEmpty()) { + if (CollectionUtil.isNotEmpty(assetCurrent.getGylxxList())) { for (AssetSupplyChainJyPo items : assetCurrent.getGylxxList()) { items.setAssetId(assetCurrent.getId()); items.setTaskId(assetCurrent.getTaskId()); @@ -558,7 +597,7 @@ public class AssetTaskController extends BaseController { //新增供应链 assetSupplyChainJyService.saveBatch(assetCurrent.getGylxxList()); } - if (!assetCurrent.getJcwlList().isEmpty()) { + if (CollectionUtil.isNotEmpty(assetCurrent.getJcwlList())) { for (AssetBasicNetworkJyPo items : assetCurrent.getJcwlList()) { items.setAssetId(assetCurrent.getId()); items.setTaskId(assetCurrent.getTaskId()); @@ -580,7 +619,7 @@ public class AssetTaskController extends BaseController { Date date = Date.from(localDateTime.atZone(ZoneId.systemDefault()).toInstant()); //新增历史记录 StringBuilder c = new StringBuilder(); - if (!assetCurrent.getGlymList().isEmpty()) { + if (CollectionUtil.isNotEmpty(assetCurrent.getGlymList())) { assetCurrent.getGlymList().forEach(x -> { if (!Objects.equals(x.getKey(), "") && x.getKey() != null) { c.append(x.getKey()); @@ -590,7 +629,7 @@ public class AssetTaskController extends BaseController { } assetCurrent.setGlym(a.toString()); StringBuilder d = new StringBuilder(); - if (!assetCurrent.getGlIpList().isEmpty()) { + if (CollectionUtil.isNotEmpty(assetCurrent.getGlIpList())) { assetCurrent.getGlIpList().forEach(x -> { if (!Objects.equals(x.getKey(), "") && x.getKey() != null) { d.append(x.getKey()); @@ -604,6 +643,7 @@ public class AssetTaskController extends BaseController { // 设置更新时间 assetCurrent.setUpdateTime(date); BeanUtils.copyProperties(assetCurrent, assetCurrentHistory); + assetCurrentHistory.setCurrentId(null); assetCurrentHistoryService.save(assetCurrentHistory); //新增新监管业务形态历史表 @@ -613,6 +653,7 @@ public class AssetTaskController extends BaseController { AssetBusinessFormHistory assetBusinessFormHistory = new AssetBusinessFormHistory(); assetBusinessFormHistory.setCopyId(assetCurrent.getCurrentId()); BeanUtils.copyProperties(assetCurrent.getXjgywxt(), assetBusinessFormHistory); + assetBusinessFormHistory.setBusinessId(null); assetBusinessFormHistoryService.save(assetBusinessFormHistory); } @@ -628,6 +669,7 @@ public class AssetTaskController extends BaseController { AssetSupplyChainHistory assetSupplyChainHistory = new AssetSupplyChainHistory(); assetSupplyChainHistory.setCopyId(assetCurrent.getCurrentId()); BeanUtils.copyProperties(cpPo, assetSupplyChainHistory); // 复制属性 + assetSupplyChainHistory.setSupplyId(null); return assetSupplyChainHistory; // 返回新对象 }) .collect(Collectors.toList()); // 收集到列表中 @@ -645,6 +687,7 @@ public class AssetTaskController extends BaseController { AssetBasicNetworkHistory assetBasicNetworkHistory = new AssetBasicNetworkHistory(); assetBasicNetworkHistory.setCopyId(assetCurrent.getCurrentId()); BeanUtils.copyProperties(cpPo, assetBasicNetworkHistory); // 复制属性 + assetBasicNetworkHistory.setNetworkId(null); return assetBasicNetworkHistory; // 返回新对象 }) .collect(Collectors.toList()); // 收集到列表中 @@ -661,6 +704,7 @@ public class AssetTaskController extends BaseController { UnitOtherConcatHistory unitOtherConcatHistory = new UnitOtherConcatHistory(); unitOtherConcatHistory.setCopyId(assetCurrent.getCurrentId()); BeanUtils.copyProperties(cpPo, unitOtherConcatHistory); // 复制属性 + unitOtherConcatHistory.setConcatId(null); return unitOtherConcatHistory; // 返回新对象 }) .collect(Collectors.toList()); // 收集到列表中 @@ -678,7 +722,7 @@ public class AssetTaskController extends BaseController { */ @ApiOperation(value = "管理端审核") @PostMapping("/sh") - public AjaxResult sh(@RequestBody @Validated AssetCurrentShRequest req) { + public AjaxResult sh(@RequestBody @Validated AssetCurrentShRequest req) throws ParseException { return AjaxResult.success(assetTaskService.sh(req)); } @@ -749,6 +793,7 @@ public class AssetTaskController extends BaseController { //新增历史记录表 AssetMiniProgramsHistory assetMiniProgramsHistory = new AssetMiniProgramsHistory(); BeanUtils.copyProperties(assetMiniProgramsCpPo, assetMiniProgramsHistory); + assetMiniProgramsHistory.setMiniId(null); assetMiniProgramsHistoryService.save(assetMiniProgramsHistory); return success(); } @@ -808,6 +853,7 @@ public class AssetTaskController extends BaseController { //新增历史记录表 AssetOfficialAccountHistory assetOfficialAccountHistory = new AssetOfficialAccountHistory(); BeanUtils.copyProperties(assetOfficialAccountCpPo, assetOfficialAccountHistory); + assetOfficialAccountHistory.setAccountId(null); assetOfficialAccountHistoryService.save(assetOfficialAccountHistory); return success(); } @@ -848,6 +894,7 @@ public class AssetTaskController extends BaseController { //新增历史记录表 AssetAppHistory assetAppHistory = new AssetAppHistory(); BeanUtils.copyProperties(assetAppCpPo, assetAppHistory); + assetAppHistory.setAppId(null); assetAppHistoryService.save(assetAppHistory); return success(); } @@ -888,6 +935,7 @@ public class AssetTaskController extends BaseController { //新增历史记录表 AssetEmailHistory assetEmailHistory = new AssetEmailHistory(); BeanUtils.copyProperties(assetEmailCpPo, assetEmailHistory); + assetEmailHistory.setEmailId(null); assetEmailHistoryService.save(assetEmailHistory); return success(); } @@ -920,6 +968,7 @@ public class AssetTaskController extends BaseController { //新增历史记录表 AssetMiniProgramsHistory assetMiniProgramsHistory = new AssetMiniProgramsHistory(); BeanUtils.copyProperties(assetMiniProgramsJyPo, assetMiniProgramsHistory); + assetMiniProgramsHistory.setMiniId(null); assetMiniProgramsHistoryService.save(assetMiniProgramsHistory); return success(); } @@ -971,6 +1020,7 @@ public class AssetTaskController extends BaseController { //新增历史记录表 AssetOfficialAccountHistory assetOfficialAccountHistory = new AssetOfficialAccountHistory(); BeanUtils.copyProperties(assetOfficialAccountJyPo, assetOfficialAccountHistory); + assetOfficialAccountHistory.setAccountId(null); assetOfficialAccountHistoryService.save(assetOfficialAccountHistory); return success(); } @@ -1004,6 +1054,7 @@ public class AssetTaskController extends BaseController { //新增历史记录表 AssetAppHistory assetAppHistory = new AssetAppHistory(); BeanUtils.copyProperties(assetAppJyPo, assetAppHistory); + assetAppHistory.setAppId(null); assetAppHistoryService.save(assetAppHistory); return success(); } @@ -1037,6 +1088,7 @@ public class AssetTaskController extends BaseController { //新增历史记录表 AssetEmailHistory assetEmailHistory = new AssetEmailHistory(); BeanUtils.copyProperties(assetEmailJyPo, assetEmailHistory); + assetEmailHistory.setEmailId(null); assetEmailHistoryService.save(assetEmailHistory); return success(); } @@ -1083,29 +1135,28 @@ public class AssetTaskController extends BaseController { @ApiOperation(value = "资产提交记录", response = AssetzcTjResponse.class) @PostMapping("/zcTj") public AjaxResult zcTj(@RequestBody AssetzcTjRequest req) { - AssetzcTjResponse assetzcTjResponse = new AssetzcTjResponse(); + + List list = null; if (req.getType() == 0) { //web - AssetCurrentHistory assetCurrentHistory = assetCurrentHistoryService.findByTaskIdandAssetId(req); - assetzcTjResponse.setAssetCurrentHistory(assetCurrentHistory); + list = assetCurrentHistoryService.findByTaskIdandAssetId(req); + } else if (req.getType() == 1) { //小程序资产 - AssetMiniProgramsHistory assetMiniProgramsHistory = assetMiniProgramsHistoryService.findByTaskIdandAssetId(req); - assetzcTjResponse.setAssetMiniProgramsHistory(assetMiniProgramsHistory); + list = assetMiniProgramsHistoryService.findByTaskIdandAssetId(req); + } else if (req.getType() == 2) { //公众号资产 - AssetOfficialAccountHistory assetOfficialAccountHistory = assetOfficialAccountHistoryService.findByTaskIdandAssetId(req); - assetzcTjResponse.setAssetOfficialAccountHistory(assetOfficialAccountHistory); + list = assetOfficialAccountHistoryService.findByTaskIdandAssetId(req); } else if (req.getType() == 3) { //电子邮件资产 - AssetEmailHistory assetEmailHistory = assetEmailHistoryService.findByTaskIdandAssetId(req); - assetzcTjResponse.setAssetEmailHistory(assetEmailHistory); + list = assetEmailHistoryService.findByTaskIdandAssetId(req); } else if (req.getType() == 4) { //移动应用程序资产 - AssetAppHistory assetAppHistory = assetAppHistoryService.findByTaskIdandAssetId(req); - assetzcTjResponse.setAssetAppHistory(assetAppHistory); + list = assetAppHistoryService.findByTaskIdandAssetId(req); + } - return AjaxResult.success(assetzcTjResponse); + return AjaxResult.success(list); } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/controller/UnitController.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/controller/UnitController.java index d68ce03..cab08f8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/controller/UnitController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/controller/UnitController.java @@ -43,7 +43,7 @@ import java.util.stream.Collectors; */ @Api(tags = "单位表控制层") @RestController -@PreAuthorize("@ss.hasAnyRoles('admin,common')") +//@PreAuthorize("@ss.hasAnyRoles('admin,common')") @RequestMapping("/tc/unit") public class UnitController { @Resource @@ -440,10 +440,9 @@ public class UnitController { */ @ApiOperation(value = "单位列表过滤", response = Unit.class) @GetMapping("/dwList") - public AjaxResult dwList(UnitRequest unit) { - Page page = new Page<>(); - page.setSize(unit.getSize()); - page.setCurrent(unit.getCurrent()); - return AjaxResult.success(unitService.dwList(page, unit)); + public AjaxResult dwList(Pagepage, UnitRequest request) { + + + return AjaxResult.success(unitService.dwList(page,request)); } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/history/AssetOfficialAccountHistory.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/history/AssetOfficialAccountHistory.java index 40c086b..cba53ae 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/history/AssetOfficialAccountHistory.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/history/AssetOfficialAccountHistory.java @@ -1,14 +1,17 @@ package com.ruoyi.tc.entity.history; 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.tc.baseClass.BaseClass; +import com.ruoyi.tc.entity.request.AssetOfficialAccountMenu; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; +import java.util.List; /** * 公众号资产表(asset_official_account_history)实体类 @@ -189,4 +192,12 @@ public class AssetOfficialAccountHistory extends BaseClass implements Serializab @ApiModelProperty("单位自己编辑的 不通过原因") private String auditYy; + + + /** + * 菜单数组 + */ + @TableField(exist = false) + @ApiModelProperty("菜单类型") + private List cdList; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/po/AssetCurrentCpPo.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/po/AssetCurrentCpPo.java index ebf134e..e9d9cc7 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/po/AssetCurrentCpPo.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/po/AssetCurrentCpPo.java @@ -12,6 +12,7 @@ import lombok.Data; import javax.validation.constraints.Size; import java.io.Serializable; +import java.util.ArrayList; import java.util.List; /** @@ -112,11 +113,11 @@ public class AssetCurrentCpPo extends BaseClass implements Serializable { @ApiModelProperty("关联域名list") @TableField(exist = false) - private List glymList; + private List glymList = new ArrayList<>(); @ApiModelProperty("关联iplist)") @TableField(exist = false) - private List glIpList; + private List glIpList = new ArrayList<>(); /** diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/request/UnitRequest.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/request/UnitRequest.java index f7cfe41..bf3d17d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/request/UnitRequest.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/request/UnitRequest.java @@ -3,15 +3,18 @@ package com.ruoyi.tc.entity.request; import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import java.io.Serializable; + /** * 单位信息查询请求类 + * * @author du * @since 2024/11/13 16:52 */ @Data -public class UnitRequest { - +public class UnitRequest implements Serializable { + private static final long serialVersionUID = 7435831888175099189L; // @ApiModelProperty("1 查询已有资产的单位") // private String isSearch; @@ -28,10 +31,10 @@ public class UnitRequest { private String dwlx; @ApiModelProperty("页码") - private Long current=1L; + private Long current = 1L; @ApiModelProperty("页数") - private Long size=10L; + private Long size = 10L; /** * 资产类型 diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/response/AssetHistoryResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/response/AssetHistoryResponse.java new file mode 100644 index 0000000..38dc84d --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/response/AssetHistoryResponse.java @@ -0,0 +1,35 @@ +package com.ruoyi.tc.entity.response; + +import com.ruoyi.tc.entity.history.*; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * @author dong + * @since 2025/1/14 10:58 + */ +@Data +@ApiModel("历史详情信息") +public class AssetHistoryResponse { + + + @ApiModelProperty("APP历史详情") + private AssetAppHistory assetAppHistory; + + + @ApiModelProperty("web历史详情") + private AssetCurrentHistory assetCurrentHistory; + + + @ApiModelProperty("gzh历史详情") + private AssetOfficialAccountHistory assetOfficialAccountHistory; + + + @ApiModelProperty("小程序历史详情") + private AssetMiniProgramsHistory assetMiniProgramsHistory; + + + @ApiModelProperty("邮件历史详情") + private AssetEmailHistory assetEmailHistory; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/response/AssetzcTjResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/response/AssetzcTjResponse.java index 86a6785..367645b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/response/AssetzcTjResponse.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/entity/response/AssetzcTjResponse.java @@ -1,9 +1,15 @@ package com.ruoyi.tc.entity.response; -import com.ruoyi.tc.entity.history.*; +import com.baomidou.mybatisplus.annotation.FieldFill; +import com.baomidou.mybatisplus.annotation.TableField; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.Api; import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; + +import java.time.LocalDateTime; +import java.util.Date; /** * @author dong @@ -13,17 +19,20 @@ import lombok.Data; @Api("资产提交响应类") public class AssetzcTjResponse { - @ApiModelProperty("web资产历史类") - private AssetCurrentHistory assetCurrentHistory; + @ApiModelProperty("系统名称") + private String xtmc; + + @ApiModelProperty("提交时间") + @TableField(fill = FieldFill.INSERT_UPDATE) + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date updateTime; + - @ApiModelProperty("小程序资产历史类") - private AssetMiniProgramsHistory assetMiniProgramsHistory; + @ApiModelProperty("提交状态") + private Integer status; - @ApiModelProperty("公众号资产历史类") - private AssetOfficialAccountHistory assetOfficialAccountHistory; + @ApiModelProperty("历史id") + private Long id; - @ApiModelProperty("电子邮件资产历史类") - private AssetEmailHistory assetEmailHistory; - @ApiModelProperty("资产移动应用程序历史类") - private AssetAppHistory assetAppHistory; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetAppHistoryService.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetAppHistoryService.java index c29e20e..ffa872d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetAppHistoryService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetAppHistoryService.java @@ -4,6 +4,9 @@ import com.baomidou.mybatisplus.extension.service.IService; import com.ruoyi.tc.entity.history.AssetAppHistory; import com.ruoyi.tc.entity.history.AssetCurrentHistory; import com.ruoyi.tc.entity.request.AssetzcTjRequest; +import com.ruoyi.tc.entity.response.AssetzcTjResponse; + +import java.util.List; /** * 资产移动应用程序表(asset_app_history)表服务接口 @@ -21,5 +24,5 @@ public interface AssetAppHistoryService extends IService { * @param req * @return */ - AssetAppHistory findByTaskIdandAssetId(AssetzcTjRequest req); + List findByTaskIdandAssetId(AssetzcTjRequest req); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetCurrentHistoryService.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetCurrentHistoryService.java index bccfd1d..5069769 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetCurrentHistoryService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetCurrentHistoryService.java @@ -3,6 +3,9 @@ package com.ruoyi.tc.historyService; import com.baomidou.mybatisplus.extension.service.IService; import com.ruoyi.tc.entity.history.AssetCurrentHistory; import com.ruoyi.tc.entity.request.AssetzcTjRequest; +import com.ruoyi.tc.entity.response.AssetzcTjResponse; + +import java.util.List; /** * 现有资产复制表(asset_current_history)表服务接口 @@ -18,7 +21,7 @@ public interface AssetCurrentHistoryService extends IService findByTaskIdandAssetId(AssetzcTjRequest req); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetEmailHistoryService.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetEmailHistoryService.java index 8079587..ade2539 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetEmailHistoryService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetEmailHistoryService.java @@ -4,6 +4,9 @@ import com.baomidou.mybatisplus.extension.service.IService; import com.ruoyi.tc.entity.history.AssetCurrentHistory; import com.ruoyi.tc.entity.history.AssetEmailHistory; import com.ruoyi.tc.entity.request.AssetzcTjRequest; +import com.ruoyi.tc.entity.response.AssetzcTjResponse; + +import java.util.List; /** * 电子邮件资产表(asset_email_history)表服务接口 @@ -20,5 +23,5 @@ public interface AssetEmailHistoryService extends IService { * @param req * @return */ - AssetEmailHistory findByTaskIdandAssetId(AssetzcTjRequest req); + List findByTaskIdandAssetId(AssetzcTjRequest req); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetMiniProgramsHistoryService.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetMiniProgramsHistoryService.java index d899a70..17dfd41 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetMiniProgramsHistoryService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetMiniProgramsHistoryService.java @@ -3,6 +3,9 @@ package com.ruoyi.tc.historyService; import com.baomidou.mybatisplus.extension.service.IService; import com.ruoyi.tc.entity.history.AssetMiniProgramsHistory; import com.ruoyi.tc.entity.request.AssetzcTjRequest; +import com.ruoyi.tc.entity.response.AssetzcTjResponse; + +import java.util.List; /** * 小程序资产(asset_mini_programs_history)表服务接口 @@ -19,5 +22,5 @@ public interface AssetMiniProgramsHistoryService extends IService findByTaskIdandAssetId(AssetzcTjRequest req); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetOfficialAccountHistoryService.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetOfficialAccountHistoryService.java index 655a110..737d59f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetOfficialAccountHistoryService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/AssetOfficialAccountHistoryService.java @@ -4,6 +4,9 @@ import com.baomidou.mybatisplus.extension.service.IService; import com.ruoyi.tc.entity.history.AssetCurrentHistory; import com.ruoyi.tc.entity.history.AssetOfficialAccountHistory; import com.ruoyi.tc.entity.request.AssetzcTjRequest; +import com.ruoyi.tc.entity.response.AssetzcTjResponse; + +import java.util.List; /** * 公众号资产(asset_official_account_history)表服务接口 @@ -22,7 +25,7 @@ public interface AssetOfficialAccountHistoryService extends IService findByTaskIdandAssetId(AssetzcTjRequest req); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetAppHistoryServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetAppHistoryServiceImpl.java index 889bbb9..c556f6e 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetAppHistoryServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetAppHistoryServiceImpl.java @@ -3,11 +3,13 @@ package com.ruoyi.tc.historyService.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ruoyi.tc.entity.history.AssetAppHistory; import com.ruoyi.tc.entity.request.AssetzcTjRequest; +import com.ruoyi.tc.entity.response.AssetzcTjResponse; import com.ruoyi.tc.historyService.AssetAppHistoryService; import com.ruoyi.tc.mapper.history.AssetAppHistoryMapper; import org.springframework.stereotype.Service; import javax.annotation.Resource; +import java.util.List; /** * 资产移动应用程序表(asset_app_history)表服务实现类 @@ -22,7 +24,7 @@ public class AssetAppHistoryServiceImpl extends ServiceImpl findByTaskIdandAssetId(AssetzcTjRequest req) { return assetAppHistoryMapper.findByTaskIdandAssetId(req); } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetCurrentHistoryServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetCurrentHistoryServiceImpl.java index 32a1083..86fd373 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetCurrentHistoryServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetCurrentHistoryServiceImpl.java @@ -3,11 +3,13 @@ package com.ruoyi.tc.historyService.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ruoyi.tc.entity.history.AssetCurrentHistory; import com.ruoyi.tc.entity.request.AssetzcTjRequest; +import com.ruoyi.tc.entity.response.AssetzcTjResponse; import com.ruoyi.tc.historyService.AssetCurrentHistoryService; import com.ruoyi.tc.mapper.history.AssetCurrentHistoryMapper; import org.springframework.stereotype.Service; import javax.annotation.Resource; +import java.util.List; /** * 现有资产复制表(asset_current_history)表服务实现类 @@ -23,7 +25,7 @@ public class AssetCurrentHistoryServiceImpl extends ServiceImpl findByTaskIdandAssetId(AssetzcTjRequest req) { return assetCurrentHistoryMapper.findByTaskIdandAssetId(req); } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetEmailHistoryServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetEmailHistoryServiceImpl.java index 4863a18..d14b8c7 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetEmailHistoryServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetEmailHistoryServiceImpl.java @@ -3,11 +3,13 @@ package com.ruoyi.tc.historyService.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ruoyi.tc.entity.history.AssetEmailHistory; import com.ruoyi.tc.entity.request.AssetzcTjRequest; +import com.ruoyi.tc.entity.response.AssetzcTjResponse; import com.ruoyi.tc.historyService.AssetEmailHistoryService; import com.ruoyi.tc.mapper.history.AssetEmailHistoryMapper; import org.springframework.stereotype.Service; import javax.annotation.Resource; +import java.util.List; /** * 电子邮件资产表(asset_email_history)表服务实现类 @@ -21,7 +23,7 @@ public class AssetEmailHistoryServiceImpl extends ServiceImpl findByTaskIdandAssetId(AssetzcTjRequest req) { return assetEmailHistoryMapper.findByTaskIdandAssetId(req); } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetMiniProgramsHistoryServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetMiniProgramsHistoryServiceImpl.java index 9c65e0f..7144a63 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetMiniProgramsHistoryServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetMiniProgramsHistoryServiceImpl.java @@ -3,11 +3,13 @@ package com.ruoyi.tc.historyService.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ruoyi.tc.entity.history.AssetMiniProgramsHistory; import com.ruoyi.tc.entity.request.AssetzcTjRequest; +import com.ruoyi.tc.entity.response.AssetzcTjResponse; import com.ruoyi.tc.historyService.AssetMiniProgramsHistoryService; import com.ruoyi.tc.mapper.history.AssetMiniProgramsHistoryMapper; import org.springframework.stereotype.Service; import javax.annotation.Resource; +import java.util.List; /** * 小程序资产(asset_mini_programs_history)表服务实现类 @@ -20,7 +22,7 @@ public class AssetMiniProgramsHistoryServiceImpl extends ServiceImpl findByTaskIdandAssetId(AssetzcTjRequest req) { return assetMiniProgramsHistoryMapper.findByTaskIdandAssetId(req); } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetOfficialAccountHistoryServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetOfficialAccountHistoryServiceImpl.java index 2591033..34a338a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetOfficialAccountHistoryServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/historyService/impl/AssetOfficialAccountHistoryServiceImpl.java @@ -3,11 +3,13 @@ package com.ruoyi.tc.historyService.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ruoyi.tc.entity.history.AssetOfficialAccountHistory; import com.ruoyi.tc.entity.request.AssetzcTjRequest; +import com.ruoyi.tc.entity.response.AssetzcTjResponse; import com.ruoyi.tc.historyService.AssetOfficialAccountHistoryService; import com.ruoyi.tc.mapper.history.AssetOfficialAccountHistoryMapper; import org.springframework.stereotype.Service; import javax.annotation.Resource; +import java.util.List; /** * 公众号资产(asset_official_account_history)表服务实现类 @@ -20,7 +22,7 @@ public class AssetOfficialAccountHistoryServiceImpl extends ServiceImpl findByTaskIdandAssetId(AssetzcTjRequest req) { return assetOfficialAccountHistoryMapper.findByTaskIdandAssetId(req); } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetBasicNetWorkCpMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetBasicNetWorkCpMapper.java index c474a40..011f5c3 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetBasicNetWorkCpMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetBasicNetWorkCpMapper.java @@ -17,14 +17,14 @@ import java.util.List; public interface AssetBasicNetWorkCpMapper extends BaseMapper { /** - * 根据资产id资产供应链原有id + * 根据任务id资产供应链原有id * - * @param assetId 资产id + * @param taskId 任务id * @return */ + @Select("select a.* from asset_basic_network a left join asset_current_cp b on a.asset_id =b.id where b.task_id=#{taskId} ") + List findByassetId(String taskId); - @Select("select * from asset_basic_network where asset_id=#{assetId} ") - List findByassetId(Long assetId); /** @@ -36,16 +36,16 @@ public interface AssetBasicNetWorkCpMapper extends BaseMapper findByTaskId(@Param("assetId") int assetId, @Param("taskId") int taskId); /** diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetBusinessFormCpMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetBusinessFormCpMapper.java index 065a55a..6699354 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetBusinessFormCpMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetBusinessFormCpMapper.java @@ -18,13 +18,15 @@ public interface AssetBusinessFormCpMapper extends BaseMapper findByassetId(Long assetId); + @Select("select a.* from asset_business_form a left join asset_current_cp b on a.asset_id =b.id where b.task_id=#{taskId} ") + List findByassetId(String taskId); + + /** @@ -45,14 +47,15 @@ public interface AssetBusinessFormCpMapper extends BaseMapper findByTaskId(@Param("assetId") int assetId, @Param("taskId") int taskId); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetCurrentCpMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetCurrentCpMapper.java index 919a31d..16df571 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetCurrentCpMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetCurrentCpMapper.java @@ -26,15 +26,16 @@ public interface AssetCurrentCpMapper extends BaseMapper { @Delete("delete from asset_current_cp where id=#{assetId} and task_id =#{taskId} ") void deletByAssetIdandTaskId(@Param("assetId") Long assetId, @Param("taskId") Integer taskId); - /** * 根据资产id查询查询数据 * * @param assetId 资产id + * @param taskId 任务id * @return */ - @Select("select * from asset_current_cp where id=#{assetId}") - AssetCurrentCpPo findByTaskId(int assetId); + @Select("select * from asset_current_cp where id=#{assetId} and task_id =#{taskId}") + AssetCurrentCpPo findByTaskId(@Param("assetId") int assetId, @Param("taskId") int taskId); + /** diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetEmailCpMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetEmailCpMapper.java index 770c134..ef11460 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetEmailCpMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetEmailCpMapper.java @@ -41,7 +41,7 @@ public interface AssetEmailCpMapper extends BaseMapper { * @return */ @Select("select * from asset_email_cp where asset_id=#{assetId}") - AssetEmailCpPo findByTaskId(@Param("taskId") int assetId); + AssetEmailCpPo findByTaskId(@Param("assetId") int assetId); /** diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetSupplyChainCpMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetSupplyChainCpMapper.java index f8bea60..800f2a8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetSupplyChainCpMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/AssetSupplyChainCpMapper.java @@ -1,7 +1,6 @@ package com.ruoyi.tc.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.ruoyi.tc.entity.po.AssetBasicNetworkCpPo; import com.ruoyi.tc.entity.po.AssetSupplyChainCpPo; import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Param; @@ -19,13 +18,14 @@ public interface AssetSupplyChainCpMapper extends BaseMapper findByassetId(Long assetId); + @Select("select a.* from asset_supply_chain a left join asset_current_cp b on a.asset_id =b.id where b.task_id=#{taskId}") + List findByassetId(String taskId); + /** @@ -35,7 +35,7 @@ public interface AssetSupplyChainCpMapper extends BaseMapper findByTaskId(@Param("assetId") int assetId,@Param("taskId") int taskId); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/UnitOtherConcatCpMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/UnitOtherConcatCpMapper.java index 2f0c7dd..d1d304c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/UnitOtherConcatCpMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/UnitOtherConcatCpMapper.java @@ -17,13 +17,13 @@ public interface UnitOtherConcatCpMapper extends BaseMapper /** - * 根据资产id资产供应链原有id + * 根据任务id资产供应链原有id * - * @param assetId 资产id + * @param taskId 资产id * @return */ - @Select("select * from unit_other_contact where asset_id =#{assetId}") - List findByassetId(Long assetId); + @Select("select a.* from unit_other_contact a left join asset_current_cp b on a.asset_id =b.id where b.task_id =#{taskId}") + List findByassetId( String taskId); /** @@ -44,11 +44,12 @@ public interface UnitOtherConcatCpMapper extends BaseMapper void deletByAssetId(@Param("assetId") Long assetId); /** - * 根据资产id查询查询数据 + * 根据assetId查询查询数据 * * @param assetId 资产id + * @param taskId 任务id * @return */ - @Select("select * from unit_other_contact_cp where asset_id=#{assetId}") - UnitOtherConcatCpPo findByTaskId(int assetId); + @Select("select * from unit_other_contact_cp where asset_id=#{assetId} and task_id =#{taskId}") + List findByTaskId(@Param("assetId") int assetId, @Param("taskId")int taskId); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetAppHistoryMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetAppHistoryMapper.java index 440124c..1ca5d3f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetAppHistoryMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetAppHistoryMapper.java @@ -3,8 +3,11 @@ package com.ruoyi.tc.mapper.history; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ruoyi.tc.entity.history.AssetAppHistory; import com.ruoyi.tc.entity.request.AssetzcTjRequest; +import com.ruoyi.tc.entity.response.AssetzcTjResponse; import org.apache.ibatis.annotations.Select; +import java.util.List; + /** * 资产移动应用程序表(asset_app_history)表数据库访问层 * @@ -20,8 +23,8 @@ public interface AssetAppHistoryMapper extends BaseMapper { * @param req * @return */ - @Select("select * from asset_app_history where task_id= #{req.taskId} and asset_id =#{req.assetId}") - AssetAppHistory findByTaskIdandAssetId(AssetzcTjRequest req); + @Select("select app_name as xtmc,update_time as updateTime,status, app_id as id from asset_app_history where task_id= #{req.taskId} and asset_id =#{req.assetId} and status!=0") + List findByTaskIdandAssetId(AssetzcTjRequest req); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetCurrentHistoryMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetCurrentHistoryMapper.java index a608c15..825c3cd 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetCurrentHistoryMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetCurrentHistoryMapper.java @@ -3,9 +3,12 @@ package com.ruoyi.tc.mapper.history; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ruoyi.tc.entity.history.AssetCurrentHistory; import com.ruoyi.tc.entity.request.AssetzcTjRequest; +import com.ruoyi.tc.entity.response.AssetzcTjResponse; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; +import java.util.List; + /** * 现有资产复制表(asset_current_history)表数据库访问层 * @@ -22,7 +25,7 @@ public interface AssetCurrentHistoryMapper extends BaseMapper findByTaskIdandAssetId(@Param("req") AssetzcTjRequest req); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetEmailHistoryMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetEmailHistoryMapper.java index 98be8c5..65666b6 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetEmailHistoryMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetEmailHistoryMapper.java @@ -3,9 +3,12 @@ package com.ruoyi.tc.mapper.history; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ruoyi.tc.entity.history.AssetEmailHistory; import com.ruoyi.tc.entity.request.AssetzcTjRequest; +import com.ruoyi.tc.entity.response.AssetzcTjResponse; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; +import java.util.List; + /** * 电子邮件资产表(asset_email_cp)表数据库访问层 * @@ -21,7 +24,7 @@ public interface AssetEmailHistoryMapper extends BaseMapper { * @param req * @return */ - @Select("select * from asset_email_history where task_id= #{req.taskId} and asset_id =#{req.assetId}") - AssetEmailHistory findByTaskIdandAssetId(@Param("req") AssetzcTjRequest req); + @Select("select dzyxhz as xtmc, update_time as updateTime,status,email_id as id from asset_email_history where task_id= #{req.taskId} and asset_id =#{req.assetId} and status!=0") + List findByTaskIdandAssetId(@Param("req") AssetzcTjRequest req); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetMiniProgramsHistoryMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetMiniProgramsHistoryMapper.java index d966432..dc5ae2d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetMiniProgramsHistoryMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetMiniProgramsHistoryMapper.java @@ -3,9 +3,12 @@ package com.ruoyi.tc.mapper.history; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ruoyi.tc.entity.history.AssetMiniProgramsHistory; import com.ruoyi.tc.entity.request.AssetzcTjRequest; +import com.ruoyi.tc.entity.response.AssetzcTjResponse; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; +import java.util.List; + /** * 小程序资产表(asset_mini_programs_history)表数据库访问层 * @@ -21,7 +24,7 @@ public interface AssetMiniProgramsHistoryMapper extends BaseMapper findByTaskIdandAssetId(@Param("req") AssetzcTjRequest req); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetOfficialAccountHistoryMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetOfficialAccountHistoryMapper.java index a752bff..3fb8a00 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetOfficialAccountHistoryMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/mapper/history/AssetOfficialAccountHistoryMapper.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ruoyi.tc.entity.history.AssetOfficialAccountHistory; import com.ruoyi.tc.entity.po.AssetOfficialAccountCpPo; import com.ruoyi.tc.entity.request.AssetzcTjRequest; +import com.ruoyi.tc.entity.response.AssetzcTjResponse; import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; @@ -26,7 +27,7 @@ public interface AssetOfficialAccountHistoryMapper extends BaseMapper findByTaskIdandAssetId(@Param("req") AssetzcTjRequest req); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/AssetBasicNetworkCpService.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/AssetBasicNetworkCpService.java index 55f9572..91c07d5 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/AssetBasicNetworkCpService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/AssetBasicNetworkCpService.java @@ -2,7 +2,6 @@ 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.AssetBusinessFormCpPo; import java.util.List; @@ -15,13 +14,12 @@ import java.util.List; public interface AssetBasicNetworkCpService extends IService { /** - * 根据资产id资产供应链原有id + * 根据任务id资产供应链原有id * - * @param assetId 资产id + * @param taskId 任务id * @return */ - List findByassetId(Long assetId); - + List findByassetId(String taskId); /** @@ -30,24 +28,23 @@ public interface AssetBasicNetworkCpService extends IService findByTaskId(int assetId, int taskId); /** * 根据资产id和任务id删除数据 * * @param assetId 资产id - */ void deletByAssetId(Long assetId); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/AssetBusinessFormCpService.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/AssetBusinessFormCpService.java index b8464d1..11199f0 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/AssetBusinessFormCpService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/AssetBusinessFormCpService.java @@ -14,12 +14,12 @@ import java.util.List; public interface AssetBusinessFormCpService extends IService { /** - * 根据资产id查询业务主表原有id + * 根据任务id查询业务主表原有id * - * @param assetId 资产id + * @param taskId 任务id * @return */ - List findByassetId(Long assetId); + List findByassetId(String taskId); /** @@ -41,9 +41,10 @@ public interface AssetBusinessFormCpService extends IService findByTaskId(int assetId, int taskId); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/AssetCurrentCpService.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/AssetCurrentCpService.java index 64b4cd5..a30587a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/AssetCurrentCpService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/AssetCurrentCpService.java @@ -1,10 +1,7 @@ package com.ruoyi.tc.service; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.IService; -import com.ruoyi.tc.entity.AssetCurrent; import com.ruoyi.tc.entity.po.AssetCurrentCpPo; -import com.ruoyi.tc.entity.request.AssetAuditPageRequest; import java.util.List; @@ -30,9 +27,10 @@ public interface AssetCurrentCpService extends IService { * 根据资产id查询查询数据 * * @param assetId 资产id + * @param taskId 任务id * @return */ - AssetCurrentCpPo findByTaskId(int assetId); + AssetCurrentCpPo findByTaskId(int assetId, int taskId); /** @@ -56,7 +54,6 @@ public interface AssetCurrentCpService extends IService { AssetCurrentCpPo findByassetIdandTaskId(Integer assetId, Integer taskId); - /** * 根据资产id查询资产 * @@ -66,7 +63,6 @@ public interface AssetCurrentCpService extends IService { List findDwmc(Long id); - /** * 根据资产id和任务id删除数据 * diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/AssetSupplyChainCpService.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/AssetSupplyChainCpService.java index 2396325..0b812bb 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/AssetSupplyChainCpService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/AssetSupplyChainCpService.java @@ -1,7 +1,6 @@ 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.AssetSupplyChainCpPo; import java.util.List; @@ -15,23 +14,22 @@ import java.util.List; public interface AssetSupplyChainCpService extends IService { /** - * 根据资产id资产供应链原有id + * 根据任务id资产供应链原有id * - * @param assetId 资产id + * @param taskId 任务id * @return */ - List findByassetId(Long assetId); + List findByassetId(String taskId); /** * 根据assetId查询查询数据 * * @param assetId 资产id + * @param taskId 任务id * @return */ - AssetSupplyChainCpPo findByTaskId(int assetId); - - + List findByTaskId(int assetId, int taskId); /** @@ -43,7 +41,6 @@ public interface AssetSupplyChainCpService extends IService { AssetCurrentCpPo taskSh(int taskId, int assetId); + /** + * web资产任务历史详情信息 + * + * @param id id + * @return + */ + AssetCurrentHistory webHistory(Long id); + + /** * 小程序资产任务审核详情信息 * @@ -86,6 +96,15 @@ public interface AssetTaskService extends IService { AssetMiniProgramsCpPo minitaskSh(int taskId, int assetId); + /** + * 小程序资产任务历史详情信息 + * + * @param id id + * @return + */ + AssetMiniProgramsHistory miniHistory(Long id); + + /** * 公众号资产任务审核详情信息 * @@ -95,6 +114,14 @@ public interface AssetTaskService extends IService { */ AssetOfficialAccountCpPo officetaskSh(int taskId, int assetId); + /** + * 公众号资产任务历史详情信息 + * + * @param id id + * @return + */ + + AssetOfficialAccountHistory officeHistory(Long id); /** * 电子邮件资产任务审核详情信息 @@ -105,6 +132,16 @@ public interface AssetTaskService extends IService { */ AssetEmailCpPo emailtaskSh(int taskId, int assetId); + + /** + * 电子邮件资产任务历史详情信息 + * + * @param id id + * @return + */ + AssetEmailHistory emailHistory(Long id); + + /** * 电子邮件资产任务审核详情信息 * @@ -114,6 +151,16 @@ public interface AssetTaskService extends IService { */ AssetAppCpPo apptaskSh(int taskId, int assetId); + + + /** + * 移动应用程序资产任务历史详情信息 + * + * @param id id + * @return + */ + AssetAppHistory appHistory(Long id); + /** * 资产核查信息 * @@ -130,7 +177,7 @@ public interface AssetTaskService extends IService { * @param req 请求类 * @return */ - int sh(AssetCurrentShRequest req); + int sh(AssetCurrentShRequest req) throws ParseException; /** @@ -187,10 +234,11 @@ public interface AssetTaskService extends IService { * @param dwmc 单位名称 * @return */ - AssetTask findByDwmc(String dwmc); + AssetTask findByDwmc(String dwmc); /** * 根据任务id查询数据 + * * @param taskId * @return */ diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/UnitOtherConcatCpService.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/UnitOtherConcatCpService.java index 47ae043..9628679 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/UnitOtherConcatCpService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/UnitOtherConcatCpService.java @@ -1,14 +1,13 @@ package com.ruoyi.tc.service; import com.baomidou.mybatisplus.extension.service.IService; -import com.ruoyi.tc.entity.po.AssetSupplyChainCpPo; 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 */ @@ -17,10 +16,10 @@ public interface UnitOtherConcatCpService extends IService /** * 根据资产id资产供应链原有id * - * @param assetId 资产id + * @param taskId 任务id * @return */ - List findByassetId(Long assetId); + List findByassetId(String taskId); /** @@ -32,7 +31,6 @@ public interface UnitOtherConcatCpService extends IService void deletByAssetIdandTaskId(Long assetId, Integer taskId); - /** * 根据资产id和任务id删除数据 * @@ -41,12 +39,12 @@ public interface UnitOtherConcatCpService extends IService void deletByAssetId(Long assetId); - /** * 根据assetId查询查询数据 * * @param assetId 资产id + * @param taskId 任务id * @return */ - UnitOtherConcatCpPo findByTaskId(int assetId); + List findByTaskId(int assetId, int taskId); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/UnitService.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/UnitService.java index e81bb21..adcf729 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/UnitService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/UnitService.java @@ -68,7 +68,7 @@ public interface UnitService extends IService { * @param unit 用户信息 * @return 用户信息集合信息 */ - Page dwList(Page page, UnitRequest unit); + Page dwList(Pagepage,UnitRequest request); /** * 根据查询条件查询所有单位列表 diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetBasicNetworkCpServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetBasicNetworkCpServiceImpl.java index c2b1ef5..fe614ef 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetBasicNetworkCpServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetBasicNetworkCpServiceImpl.java @@ -22,8 +22,8 @@ public class AssetBasicNetworkCpServiceImpl extends ServiceImpl findByassetId(Long assetId) { - return assetBasicNetWorkCpMapper.findByassetId(assetId); + public List findByassetId(String taskId) { + return assetBasicNetWorkCpMapper.findByassetId(taskId); } @Override @@ -32,8 +32,8 @@ public class AssetBasicNetworkCpServiceImpl extends ServiceImpl findByTaskId(int assetId,int taskId) { + return assetBasicNetWorkCpMapper.findByTaskId(assetId,taskId); } @Override diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetBusinessFormCpServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetBusinessFormCpServiceImpl.java index 08641bd..21283c6 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetBusinessFormCpServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetBusinessFormCpServiceImpl.java @@ -22,8 +22,8 @@ public class AssetBusinessFormCpServiceImpl extends ServiceImpl findByassetId(Long assetId) { - return assetBusinessFormCpMapper.findByassetId(assetId); + public List findByassetId(String taskId) { + return assetBusinessFormCpMapper.findByassetId(taskId); } @Override @@ -37,8 +37,8 @@ public class AssetBusinessFormCpServiceImpl extends ServiceImpl findByTaskId(int assetId,int taskId) { + return assetBusinessFormCpMapper.findByTaskId(assetId,taskId); } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetCurrentCpServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetCurrentCpServiceImpl.java index ceed896..1f3f864 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetCurrentCpServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetCurrentCpServiceImpl.java @@ -31,8 +31,8 @@ public class AssetCurrentCpServiceImpl extends ServiceImpl findByassetId(Long assetId) { - return assetSupplyChainCpMapper.findByassetId(assetId); + public List findByassetId(String taskId) { + return assetSupplyChainCpMapper.findByassetId(taskId); } @Override - public AssetSupplyChainCpPo findByTaskId(int assetId) { - return assetSupplyChainCpMapper.findByTaskId(assetId); + public List findByTaskId(int assetId,int taskId) { + return assetSupplyChainCpMapper.findByTaskId(assetId,taskId); } @Override diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetTaskServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetTaskServiceImpl.java index dd2ae19..e226525 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetTaskServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetTaskServiceImpl.java @@ -1,5 +1,6 @@ package com.ruoyi.tc.service.impl; +import cn.hutool.core.collection.CollectionUtil; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; @@ -15,7 +16,6 @@ import com.ruoyi.tc.entity.response.AssetdwHcResponse; import com.ruoyi.tc.historyService.*; import com.ruoyi.tc.mapper.AssetTaskMapper; import com.ruoyi.tc.service.*; -import lombok.SneakyThrows; import org.springframework.stereotype.Service; import javax.annotation.Resource; @@ -169,41 +169,6 @@ public class AssetTaskServiceImpl extends ServiceImpl assetBusinessFormCpResponseList = new ArrayList<>(); - for (AssetCurrentCpPo assetCurrentResponse : list) { - //新增新监管业务形态 - //根据资产id查询新监管业务形态主表id - List bussList = assetBusinessFormCpService.findByassetId(assetCurrentResponse.getId()); - if (bussList != null) { - for (AssetBusinessFormCpPo assetBusinessFormCpResponse : bussList) { - if (assetCurrentResponse.getXjgywxt() != null) { - assetCurrentResponse.getXjgywxt().setAssetId(assetBusinessFormCpResponse.getAssetId()); - assetCurrentResponse.getXjgywxt().setTaskId(id); - assetBusinessFormCpResponseList.add(assetCurrentResponse.getXjgywxt()); - } - } - assetBusinessFormCpService.saveBatch(assetBusinessFormCpResponseList); - } - //根据资产id查询供应链主表id- - List supplyChainList = assetSupplyChainCpService.findByassetId(assetCurrentResponse.getId()); - if (supplyChainList != null) { - for (AssetSupplyChainCpPo items : supplyChainList) { - items.setAssetId(assetCurrentResponse.getId()); - items.setSupplyId(items.getSupplyId()); - items.setTaskId(id); - //新增供应链 - } - assetSupplyChainCpService.saveBatch(supplyChainList); - } - List BasicNetworkCpList = assetBasicNetworkCpService.findByassetId(assetCurrentResponse.getId()); - if (BasicNetworkCpList != null) { - for (AssetBasicNetworkCpPo items : BasicNetworkCpList) { - //根据资产id查询基础网络主表id - items.setAssetId(assetCurrentResponse.getId()); - items.setNetworkId(items.getNetworkId()); - items.setTaskId(id); - //新增基础网络 - } - assetBasicNetworkCpService.saveBatch(BasicNetworkCpList); - } - List unitOtherConcatList = unitOtherConcatCpService.findByassetId(assetCurrentResponse.getId()); - if (unitOtherConcatList != null) { - for (UnitOtherConcatCpPo items : unitOtherConcatList) { - //根据资产id查询其他联系人主表id - items.setAssetId(assetCurrentResponse.getId()); - items.setConcatId(items.getConcatId()); - items.setTaskId(id); - //新增其他联系人 - } - unitOtherConcatCpService.saveBatch(unitOtherConcatList); - } - } + //新增新监管业务形态 + List bussList = assetBusinessFormCpService.findByassetId(assetTask.getTaskId()); + assetBusinessFormCpService.saveBatch(bussList); + //新增供应链 + List supplyChainList = assetSupplyChainCpService.findByassetId(assetTask.getTaskId()); + assetSupplyChainCpService.saveBatch(supplyChainList); + //新增基础网络 + List BasicNetworkCpList = assetBasicNetworkCpService.findByassetId(assetTask.getTaskId()); + assetBasicNetworkCpService.saveBatch(BasicNetworkCpList); + //新增其他联系人 + List unitOtherConcatList = unitOtherConcatCpService.findByassetId(assetTask.getTaskId()); + unitOtherConcatCpService.saveBatch(unitOtherConcatList); } } else if (assetPart.equals("1")) { //遍历小程序资产单位 @@ -285,16 +213,14 @@ public class AssetTaskServiceImpl extends ServiceImpl list = assetMiniProgramsService.lambdaQuery().eq(AssetMiniPrograms::getSsdw, part).eq(AssetMiniPrograms::getDelFlag, 0).list(); - List miniProgramsNewList = list.stream() - .map(cpPo -> { - AssetMiniProgramsCpPo assetMiniProgramsCpPo = new AssetMiniProgramsCpPo(); - assetMiniProgramsCpPo.setTaskId(id); - assetMiniProgramsCpPo.setStatus(0); - assetMiniProgramsCpPo.setAssetId(cpPo.getId()); - BeanUtils.copyProperties(cpPo, assetMiniProgramsCpPo); // 复制属性 - return assetMiniProgramsCpPo; // 返回新对象 - }) - .collect(Collectors.toList()); // 收集到列表中 + List miniProgramsNewList = list.stream().map(cpPo -> { + AssetMiniProgramsCpPo assetMiniProgramsCpPo = new AssetMiniProgramsCpPo(); + assetMiniProgramsCpPo.setTaskId(id); + assetMiniProgramsCpPo.setStatus(0); + assetMiniProgramsCpPo.setAssetId(cpPo.getId()); + BeanUtils.copyProperties(cpPo, assetMiniProgramsCpPo); // 复制属性 + return assetMiniProgramsCpPo; // 返回新对象 + }).collect(Collectors.toList()); // 收集到列表中 assetMiniProgramsCpService.saveBatch(miniProgramsNewList); } } else if (assetPart.equals("2")) { @@ -306,16 +232,14 @@ public class AssetTaskServiceImpl extends ServiceImpl list = assetOfficialAccountService.lambdaQuery().eq(AssetOfficialAccount::getSsdw, part).eq(AssetOfficialAccount::getDelFlag, 0).list(); - List officialAccountProgramsNewList = list.stream() - .map(cpPo -> { - AssetOfficialAccountCpPo assetOfficialAccountCpPo = new AssetOfficialAccountCpPo(); - assetOfficialAccountCpPo.setTaskId(id); - assetOfficialAccountCpPo.setStatus(0); - assetOfficialAccountCpPo.setAssetId(cpPo.getId()); - BeanUtils.copyProperties(cpPo, assetOfficialAccountCpPo); // 复制属性 - return assetOfficialAccountCpPo; // 返回新对象 - }) - .collect(Collectors.toList()); // 收集到列表中 + List officialAccountProgramsNewList = list.stream().map(cpPo -> { + AssetOfficialAccountCpPo assetOfficialAccountCpPo = new AssetOfficialAccountCpPo(); + assetOfficialAccountCpPo.setTaskId(id); + assetOfficialAccountCpPo.setStatus(0); + assetOfficialAccountCpPo.setAssetId(cpPo.getId()); + BeanUtils.copyProperties(cpPo, assetOfficialAccountCpPo); // 复制属性 + return assetOfficialAccountCpPo; // 返回新对象 + }).collect(Collectors.toList()); // 收集到列表中 assetOfficialAccountCpService.saveBatch(officialAccountProgramsNewList); } } else if (assetPart.equals("3")) { @@ -328,16 +252,14 @@ public class AssetTaskServiceImpl extends ServiceImpl list = assetEmailService.lambdaQuery().eq(AssetEmail::getSsdw, part).eq(AssetEmail::getDelFlag, 0).list(); ; - List emailCpNewList = list.stream() - .map(cpPo -> { - AssetEmailCpPo emailCpPo = new AssetEmailCpPo(); - emailCpPo.setTaskId(id); - emailCpPo.setAssetId(cpPo.getId()); - emailCpPo.setStatus(0); - BeanUtils.copyProperties(cpPo, emailCpPo); // 复制属性 - return emailCpPo; // 返回新对象 - }) - .collect(Collectors.toList()); // 收集到列表中 + List emailCpNewList = list.stream().map(cpPo -> { + AssetEmailCpPo emailCpPo = new AssetEmailCpPo(); + emailCpPo.setTaskId(id); + emailCpPo.setAssetId(cpPo.getId()); + emailCpPo.setStatus(0); + BeanUtils.copyProperties(cpPo, emailCpPo); // 复制属性 + return emailCpPo; // 返回新对象 + }).collect(Collectors.toList()); // 收集到列表中 assetEmailCpService.saveBatch(emailCpNewList); } } else if (assetPart.equals("4")) { @@ -349,16 +271,14 @@ public class AssetTaskServiceImpl extends ServiceImpl list = assetAppService.lambdaQuery().eq(AssetApp::getSsdw, part).eq(AssetApp::getDelFlag, 0).list(); - List appCpNewList = list.stream() - .map(cpPo -> { - AssetAppCpPo appCpPo = new AssetAppCpPo(); - appCpPo.setTaskId(id); - appCpPo.setAssetId(cpPo.getId()); - appCpPo.setStatus(0); - BeanUtils.copyProperties(cpPo, appCpPo); // 复制属性 - return appCpPo; // 返回新对象 - }) - .collect(Collectors.toList()); // 收集到列表中 + List appCpNewList = list.stream().map(cpPo -> { + AssetAppCpPo appCpPo = new AssetAppCpPo(); + appCpPo.setTaskId(id); + appCpPo.setAssetId(cpPo.getId()); + appCpPo.setStatus(0); + BeanUtils.copyProperties(cpPo, appCpPo); // 复制属性 + return appCpPo; // 返回新对象 + }).collect(Collectors.toList()); // 收集到列表中 assetAppCpService.saveBatch(appCpNewList); } } @@ -420,6 +340,36 @@ public class AssetTaskServiceImpl extends ServiceImpl queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("current_id", id); + AssetCurrentHistory byId = assetCurrentHistoryService.getOne(queryWrapper); + byId.setGylxxList(assetSupplyChainCpService.lambdaQuery().eq(AssetSupplyChainCpPo::getAssetId, byId.getId()).eq(AssetSupplyChainCpPo::getDelFlag, "0").eq(AssetSupplyChainCpPo::getTaskId, byId.getTaskId()).list()); + byId.setJcwlList(assetBasicNetworkCpService.lambdaQuery().eq(AssetBasicNetworkCpPo::getAssetId, byId.getId()).eq(AssetBasicNetworkCpPo::getDelFlag, "0").eq(AssetBasicNetworkCpPo::getTaskId, byId.getTaskId()).list()); + byId.setXjgywxt(assetBusinessFormCpService.lambdaQuery().eq(AssetBusinessFormCpPo::getAssetId, byId.getId()).eq(AssetBusinessFormCpPo::getDelFlag, "0").eq(AssetBusinessFormCpPo::getTaskId, byId.getTaskId()).one()); + byId.setOtherConcat(unitOtherConcatCpService.lambdaQuery().eq(UnitOtherConcatCpPo::getAssetId, byId.getId()).eq(UnitOtherConcatCpPo::getDelFlag, "0").eq(UnitOtherConcatCpPo::getTaskId, byId.getTaskId()).list()); + List a1 = new ArrayList<>(); + if (byId.getGlym() != null) { + Arrays.asList(byId.getGlym().split(",")).forEach(x -> { + Acomma acomma = new Acomma(); + acomma.setKey(x); + a1.add(acomma); + }); + byId.setGlymList(a1); + } + List a2 = new ArrayList<>(); + if (byId.getGlIp() != null) { + Arrays.asList(byId.getGlIp().split(",")).forEach(x -> { + Acomma acomma = new Acomma(); + acomma.setKey(x); + a2.add(acomma); + }); + byId.setGlIpList(a2); + } + return byId; + } + @Override public AssetMiniProgramsCpPo minitaskSh(int taskId, int assetId) { QueryWrapper queryWrapper = new QueryWrapper<>(); @@ -428,6 +378,13 @@ public class AssetTaskServiceImpl extends ServiceImpl queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("mini_id", id); + return assetMiniProgramsHistoryService.getOne(queryWrapper); + } + @Override public AssetOfficialAccountCpPo officetaskSh(int taskId, int assetId) { QueryWrapper queryWrapper = new QueryWrapper<>(); @@ -456,6 +413,32 @@ public class AssetTaskServiceImpl extends ServiceImpl queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("account_id", id); + AssetOfficialAccountHistory byId = assetOfficialAccountHistoryService.getOne(queryWrapper); + List a1 = new ArrayList<>(); + String[] s1 = byId.getCdmc().split("\\|"); + String[] s2 = byId.getCdlj().split("\\|"); + String[] s3 = byId.getCdlx().split("\\|"); + for (int i = 0; i < s1.length; i++) { + AssetOfficialAccountMenu as = new AssetOfficialAccountMenu(); + if (s1[i] != null && !Objects.equals(s1[i], "")) { + as.setCdmc(s1[i]); + } + if (s2[i] != null && !Objects.equals(s2[i], "")) { + as.setCdlj(s2[i]); + } + if (s3[i] != null && !Objects.equals(s3[i], "")) { + as.setCdlx(s3[i]); + } + a1.add(as); + } + byId.setCdList(a1); + return byId; + } + @Override public AssetEmailCpPo emailtaskSh(int taskId, int assetId) { QueryWrapper queryWrapper = new QueryWrapper<>(); @@ -464,6 +447,14 @@ public class AssetTaskServiceImpl extends ServiceImpl queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("eamil_id", id); + + return assetEmailHistoryService.getOne(queryWrapper); + } + @Override public AssetAppCpPo apptaskSh(int taskId, int assetId) { QueryWrapper queryWrapper = new QueryWrapper<>(); @@ -472,6 +463,14 @@ public class AssetTaskServiceImpl extends ServiceImpl queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("app_id", id); + return assetAppHistoryService.getOne(queryWrapper); + + } + @Override public Page zcHc(Page assetTask, AssestTaskXqRequest pageRequest) { assetTask.setOptimizeCountSql(false); @@ -494,9 +493,9 @@ public class AssetTaskServiceImpl extends ServiceImpl0){ - //进行中 - finalTask.setTaskStatus(1); - finalTask.setTaskFinishTime(finishTime); - assetTaskService.update(finalTask); - }else{ - //根据任务id查询是否超期 - String ifcq=assetTaskDao.getifcq(req.getTaskId()); - String taskDeadline = finalTask.getTaskDeadline(); // 定义日期格式,确保格式与字符串一致 - SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); // 根据你的时间格式调整 - // 将字符串转换为日期对象 - Date ifcqDate = dateFormat.parse(ifcq); - Date taskDeadlineDate = dateFormat.parse(taskDeadline); - // 比较两个日期 - if (ifcqDate.before(taskDeadlineDate)) { - //超期完成 - finalTask.setTaskStatus(3); - finishTime = LocalDateTime.now(); - finalTask.setTaskFinishTime(finishTime); - assetTaskService.update(finalTask); - } else if (ifcqDate.after(taskDeadlineDate)) { - //正常完成 - finalTask.setTaskStatus(2); - finishTime = LocalDateTime.now(); - finalTask.setTaskFinishTime(finishTime); - assetTaskService.update(finalTask); - } - } + Integer jxz = assetTaskDao.getJxz(req.getTaskId()); + if (jxz > 0) { + //进行中 + finalTask.setTaskStatus(1); + finalTask.setTaskFinishTime(finishTime); + assetTaskService.update(finalTask); + } else { + //根据任务id查询是否超期 + String ifcq = assetTaskDao.getifcq(req.getTaskId()); + String taskDeadline = finalTask.getTaskDeadline(); // 定义日期格式,确保格式与字符串一致 + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); // 根据你的时间格式调整 + // 将字符串转换为日期对象 + Date ifcqDate = dateFormat.parse(ifcq); + Date taskDeadlineDate = dateFormat.parse(taskDeadline); + // 比较两个日期 + if (ifcqDate.before(taskDeadlineDate)) { + //超期完成 + finalTask.setTaskStatus(3); + finishTime = LocalDateTime.now(); + finalTask.setTaskFinishTime(finishTime); + assetTaskService.update(finalTask); + } else if (ifcqDate.after(taskDeadlineDate)) { + //正常完成 + finalTask.setTaskStatus(2); + finishTime = LocalDateTime.now(); + finalTask.setTaskFinishTime(finishTime); + assetTaskService.update(finalTask); + } + } return 0; } @@ -631,6 +630,7 @@ public class AssetTaskServiceImpl extends ServiceImpl { if (!Objects.equals(x.getKey(), "") && x.getKey() != null) { a.append(x.getKey()); @@ -695,7 +698,7 @@ public class AssetTaskServiceImpl extends ServiceImpl { if (!Objects.equals(x.getKey(), "") && x.getKey() != null) { b.append(x.getKey()); @@ -749,7 +752,7 @@ public class AssetTaskServiceImpl extends ServiceImpl { if (!Objects.equals(x.getKey(), "") && x.getKey() != null) { c.append(x.getKey()); @@ -759,7 +762,7 @@ public class AssetTaskServiceImpl extends ServiceImpl { if (!Objects.equals(x.getKey(), "") && x.getKey() != null) { d.append(x.getKey()); @@ -773,6 +776,7 @@ public class AssetTaskServiceImpl extends ServiceImpl assetSupplyChainHistoryList = req.getAssetCurrentCpPo().getGylxxList().stream() - .map(cpPo -> { - AssetSupplyChainHistory assetSupplyChainHistory = new AssetSupplyChainHistory(); - assetSupplyChainHistory.setCopyId(req.getAssetCurrentCpPo().getCurrentId()); - BeanUtils.copyProperties(cpPo, assetSupplyChainHistory); // 复制属性 - return assetSupplyChainHistory; // 返回新对象 - }) - .collect(Collectors.toList()); // 收集到列表中 + List assetSupplyChainHistoryList = req.getAssetCurrentCpPo().getGylxxList().stream().map(cpPo -> { + AssetSupplyChainHistory assetSupplyChainHistory = new AssetSupplyChainHistory(); + assetSupplyChainHistory.setCopyId(req.getAssetCurrentCpPo().getCurrentId()); + BeanUtils.copyProperties(cpPo, assetSupplyChainHistory); // 复制属性 + assetSupplyChainHistory.setSupplyId(null); + return assetSupplyChainHistory; // 返回新对象 + }).collect(Collectors.toList()); // 收集到列表中 assetSupplyChainHistoryService.saveBatch(assetSupplyChainHistoryList); } if (!req.getAssetCurrentCpPo().getJcwlList().isEmpty()) { @@ -809,14 +813,13 @@ public class AssetTaskServiceImpl extends ServiceImpl assetSupplyChainHistoryList = req.getAssetCurrentCpPo().getJcwlList().stream() - .map(cpPo -> { - AssetBasicNetworkHistory assetBasicNetworkHistory = new AssetBasicNetworkHistory(); - assetBasicNetworkHistory.setCopyId(req.getAssetCurrentCpPo().getCurrentId()); - BeanUtils.copyProperties(cpPo, assetBasicNetworkHistory); // 复制属性 - return assetBasicNetworkHistory; // 返回新对象 - }) - .collect(Collectors.toList()); // 收集到列表中 + List assetSupplyChainHistoryList = req.getAssetCurrentCpPo().getJcwlList().stream().map(cpPo -> { + AssetBasicNetworkHistory assetBasicNetworkHistory = new AssetBasicNetworkHistory(); + assetBasicNetworkHistory.setCopyId(req.getAssetCurrentCpPo().getCurrentId()); + BeanUtils.copyProperties(cpPo, assetBasicNetworkHistory); // 复制属性 + assetBasicNetworkHistory.setNetworkId(null); + return assetBasicNetworkHistory; // 返回新对象 + }).collect(Collectors.toList()); // 收集到列表中 assetBasicNetworkHistoryService.saveBatch(assetSupplyChainHistoryList); } if (!req.getAssetCurrentCpPo().getOtherConcat().isEmpty()) { @@ -825,14 +828,13 @@ public class AssetTaskServiceImpl extends ServiceImpl unitOtherConcatHistoryList = req.getAssetCurrentCpPo().getOtherConcat().stream() - .map(cpPo -> { - UnitOtherConcatHistory unitOtherConcatHistory = new UnitOtherConcatHistory(); - unitOtherConcatHistory.setCopyId(req.getAssetCurrentCpPo().getCurrentId()); - BeanUtils.copyProperties(cpPo, unitOtherConcatHistory); // 复制属性 - return unitOtherConcatHistory; // 返回新对象 - }) - .collect(Collectors.toList()); // 收集到列表中 + List unitOtherConcatHistoryList = req.getAssetCurrentCpPo().getOtherConcat().stream().map(cpPo -> { + UnitOtherConcatHistory unitOtherConcatHistory = new UnitOtherConcatHistory(); + unitOtherConcatHistory.setCopyId(req.getAssetCurrentCpPo().getCurrentId()); + BeanUtils.copyProperties(cpPo, unitOtherConcatHistory); // 复制属性 + unitOtherConcatHistory.setUnitId(null); + return unitOtherConcatHistory; // 返回新对象 + }).collect(Collectors.toList()); // 收集到列表中 unitOtherConcatHistoryService.saveBatch(unitOtherConcatHistoryList); } } @@ -862,6 +864,7 @@ public class AssetTaskServiceImpl extends ServiceImpl businessFormCpPo = assetBusinessFormCpService.findByTaskId(req.getAssetId(), req.getTaskId()); + List businessList = businessFormCpPo.stream().map(AssetBusinessFormCpPo::getAssetId).collect(Collectors.toList()); //删除原有数据 - if (businessFormCpPo != null) { - assetBusinessFormService.deleteIdList(Collections.singletonList(businessFormCpPo.getAssetId())); + if (CollectionUtil.isNotEmpty(businessList)) { + assetBusinessFormService.deleteIdList(businessList); //将子表数据复制到主表中 - AssetBusinessForm businessForm = new AssetBusinessForm(); - BeanUtils.copyProperties(businessFormCpPo, businessForm); // 复制属性 - businessForm.setId(null); - assetBusinessFormService.save(businessForm); + List businessFormCpPoList = req.getAssetCurrentCpPo().getOtherConcat().stream().map(cpPo -> { + AssetBusinessForm assetBusinessForm = new AssetBusinessForm(); + BeanUtils.copyProperties(cpPo, assetBusinessForm); // 复制属性 + assetBusinessForm.setId(null); + return assetBusinessForm; // 返回新对象 + }).collect(Collectors.toList()); + + assetBusinessFormService.saveBatch(businessFormCpPoList); } //AssetBasicNetworkCpPo - AssetBasicNetworkCpPo networkCpPo = assetBasicNetworkCpService.findByTaskId(req.getAssetId()); + List networkCpPo = assetBasicNetworkCpService.findByTaskId(req.getAssetId(), req.getTaskId()); + List netWorkList = networkCpPo.stream().map(AssetBasicNetworkCpPo::getAssetId).collect(Collectors.toList()); //删除原有数据 - if (networkCpPo != null) { - assetBasicNetworkService.deleteIdList(Collections.singletonList(networkCpPo.getAssetId())); - AssetBasicNetwork network = new AssetBasicNetwork(); - BeanUtils.copyProperties(networkCpPo, network); - network.setId(null); - assetBasicNetworkService.save(network); + if (CollectionUtil.isNotEmpty(netWorkList)) { + assetBasicNetworkService.deleteIdList(netWorkList); + + List networksCpPoList = req.getAssetCurrentCpPo().getOtherConcat().stream().map(cpPo -> { + AssetBasicNetwork assetBasicNetwork = new AssetBasicNetwork(); + BeanUtils.copyProperties(cpPo, assetBasicNetwork); // 复制属性 + assetBasicNetwork.setId(null); + return assetBasicNetwork; // 返回新对象 + }).collect(Collectors.toList()); + assetBasicNetworkService.saveBatch(networksCpPoList); } //AssetSupplyChainCpPo - AssetSupplyChainCpPo supplyChainCpPo = assetSupplyChainCpService.findByTaskId(req.getAssetId()); + List supplyChainCpPo = assetSupplyChainCpService.findByTaskId(req.getAssetId(), req.getTaskId()); + List supplyList = supplyChainCpPo.stream().map(AssetSupplyChainCpPo::getAssetId).collect(Collectors.toList()); //删除原有数据 - if (supplyChainCpPo != null) { - assetSupplyChainService.deleteIdList(Collections.singletonList(supplyChainCpPo.getAssetId())); - AssetSupplyChain supplyChain = new AssetSupplyChain(); - BeanUtils.copyProperties(supplyChainCpPo, supplyChain); - supplyChain.setId(null); - assetSupplyChainService.save(supplyChain); + if (CollectionUtil.isNotEmpty(supplyList)) { + assetSupplyChainService.deleteIdList(supplyList); + List supplyChainList = req.getAssetCurrentCpPo().getOtherConcat().stream().map(cpPo -> { + AssetSupplyChain assetSupplyChain = new AssetSupplyChain(); + BeanUtils.copyProperties(cpPo, assetSupplyChain); // 复制属性 + assetSupplyChain.setId(null); + return assetSupplyChain; // 返回新对象 + }).collect(Collectors.toList()); + assetSupplyChainService.saveBatch(supplyChainList); } - //UnitOtherConcatCpPo - UnitOtherConcatCpPo unitOtherConcatCpPo = unitOtherConcatCpService.findByTaskId(req.getAssetId()); + List unitOtherConcatCpPo = unitOtherConcatCpService.findByTaskId(req.getAssetId(), req.getTaskId()); + List unitList = unitOtherConcatCpPo.stream().map(UnitOtherConcatCpPo::getAssetId).collect(Collectors.toList()); //删除原有数据 - if (unitOtherConcatCpPo != null) { - unitOtherConcatService.deleteIdList(Collections.singletonList(unitOtherConcatCpPo.getAssetId())); - UnitOtherConcat unitOtherConcat = new UnitOtherConcat(); - BeanUtils.copyProperties(unitOtherConcatCpPo, unitOtherConcat); // 复制属性 - unitOtherConcat.setConcatId(null); - unitOtherConcatService.save(unitOtherConcat); + if (CollectionUtil.isNotEmpty(unitList)) { + unitOtherConcatService.deleteIdList(unitList); + List unitOtherConcatList = req.getAssetCurrentCpPo().getOtherConcat().stream().map(cpPo -> { + UnitOtherConcat unitOtherConcat = new UnitOtherConcat(); + BeanUtils.copyProperties(cpPo, unitOtherConcat); // 复制属性 + unitOtherConcat.setConcatId(null); + return unitOtherConcat; // 返回新对象 + }).collect(Collectors.toList()); + unitOtherConcatService.saveBatch(unitOtherConcatList); } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/UnitOtherConcatCpServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/UnitOtherConcatCpServiceImpl.java index ac55ac6..4b0151d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/UnitOtherConcatCpServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/UnitOtherConcatCpServiceImpl.java @@ -21,8 +21,8 @@ public class UnitOtherConcatCpServiceImpl extends ServiceImpl findByassetId(Long assetId) { - return unitOtherConcatCpMapper.findByassetId(assetId); + public List findByassetId(String taskId) { + return unitOtherConcatCpMapper.findByassetId(taskId); } @Override @@ -36,7 +36,7 @@ public class UnitOtherConcatCpServiceImpl extends ServiceImpl findByTaskId(int assetId,int taskId) { + return unitOtherConcatCpMapper.findByTaskId(assetId,taskId); } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/UnitServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/UnitServiceImpl.java index e89ea3e..8551cb3 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/UnitServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/UnitServiceImpl.java @@ -126,8 +126,8 @@ public class UnitServiceImpl extends ServiceImpl implements Un } @Override - public Page dwList(Page page, UnitRequest unit) { - return baseMapper.dwList(page, unit); + public Page dwList(Pagepage,UnitRequest request) { + return baseMapper.dwList(page,request); } /** diff --git a/ruoyi-admin/src/main/resources/mapper/UnitMapper.xml b/ruoyi-admin/src/main/resources/mapper/UnitMapper.xml index 5d568b6..f2d3bd6 100644 --- a/ruoyi-admin/src/main/resources/mapper/UnitMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/UnitMapper.xml @@ -146,65 +146,44 @@ where id = #{id} and del_flag= '0'