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 72b19c7..3c82e65 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 @@ -2,15 +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.*; +import com.ruoyi.tc.entity.AssetTask; import com.ruoyi.tc.entity.request.AssestTaskXqRequest; import com.ruoyi.tc.entity.request.AssetTaskPageRequest; -import com.ruoyi.tc.entity.response.*; +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.response.AssetTaskResponse; +import com.ruoyi.tc.entity.response.UnitOtherConcatCpResponse; import com.ruoyi.tc.mapper.AssetTaskMapper; -import com.ruoyi.tc.service.*; +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 org.springframework.stereotype.Service; import javax.annotation.Resource; +import java.util.ArrayList; import java.util.List; /** @@ -42,8 +54,6 @@ public class AssetTaskServiceImpl extends ServiceImpl list = assetTaskDao.findByDwmcAssetCurrent(part); - for (AssetCurrentResponse assetCurrentResponse:list){ - assetCurrentResponse.setTaskId(id); - } + for (AssetCurrentResponse assetCurrentResponse : list) { + assetCurrentResponse.setTaskId(id); + } assetCurrentCpService.saveBatch(list); + List assetBusinessFormCpResponseList = new ArrayList<>(); for (AssetCurrentResponse assetCurrentResponse : list) { //新增新监管业务形态 //根据资产id查询新监管业务形态主表id @@ -94,8 +105,9 @@ public class AssetTaskServiceImpl extends ServiceImpl supplyChainList = assetSupplyChainCpService.findByassetId(assetCurrentResponse.getId()); @@ -105,8 +117,8 @@ public class AssetTaskServiceImpl extends ServiceImpl BasicNetworkCpList = assetBasicNetworkCpService.findByassetId(assetCurrentResponse.getId()); if (BasicNetworkCpList != null) { @@ -116,9 +128,8 @@ public class AssetTaskServiceImpl extends ServiceImpl unitOtherConcatList = unitOtherConcatCpService.findByassetId(assetCurrentResponse.getId()); if (unitOtherConcatList != null) { @@ -128,9 +139,8 @@ public class AssetTaskServiceImpl extends ServiceImpl zcHc(Page assetTask, AssestTaskXqRequest pageRequest) { - return assetTaskDao.zcHc(assetTask,pageRequest); + return assetTaskDao.zcHc(assetTask, pageRequest); } }