|
|
|
@ -235,11 +235,11 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
|
if (req.getStatus() == 3) {
|
|
|
|
|
assetLc.setTaskId(req.getTaskId());
|
|
|
|
|
assetLc.setXfTime(LocalDateTime.now());
|
|
|
|
|
assetLc.setAssetName("管理员审核通过");
|
|
|
|
|
assetLc.setAssetName("管理员审核通过"+req.getXtmc());
|
|
|
|
|
assetLcService.insert(assetLc);
|
|
|
|
|
} else if (req.getStatus() == 4) {
|
|
|
|
|
assetLc.setTaskId(req.getTaskId());
|
|
|
|
|
assetLc.setAssetName("管理员审核不通过");
|
|
|
|
|
assetLc.setAssetName("管理员审核不通过"+req.getXtmc());
|
|
|
|
|
assetLc.setXfTime(LocalDateTime.now());
|
|
|
|
|
assetLcService.insert(assetLc);
|
|
|
|
|
}
|
|
|
|
@ -281,6 +281,8 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
|
taskStatus = 3;
|
|
|
|
|
finishTime = LocalDateTime.now();
|
|
|
|
|
taskSaveOrDelete(req);
|
|
|
|
|
} else if (hased && !hasPendingApproval && !allApproved && ! hasExpired && !hasRejected) {
|
|
|
|
|
taskStatus = 3;
|
|
|
|
|
}
|
|
|
|
|
//修改主表任务状态
|
|
|
|
|
assetTaskDao.updateByTaskId(taskStatus, req.getTaskId(), finishTime);
|
|
|
|
@ -294,7 +296,7 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
|
.map(AssetCurrentCpPo::getId)
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
//删除原有数据
|
|
|
|
|
assetCurrentService.removeBatchByIds(idList);
|
|
|
|
|
assetCurrentService.deleteIdList(idList);
|
|
|
|
|
//将子表数据复制到主表中
|
|
|
|
|
List<AssetCurrent> currentNewList = currentList.stream()
|
|
|
|
|
.map(cpPo -> {
|
|
|
|
@ -310,7 +312,7 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
|
.map(AssetBusinessFormCpPo::getAssetId)
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
//删除原有数据
|
|
|
|
|
assetBusinessFormService.removeBatchByIds(bussinessidList);
|
|
|
|
|
assetBusinessFormService.deleteIdList(bussinessidList);
|
|
|
|
|
//将子表数据复制到主表中
|
|
|
|
|
List<AssetBusinessForm> bussinessNewList = bussinessList.stream()
|
|
|
|
|
.map(cpPo -> {
|
|
|
|
@ -326,7 +328,7 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
|
.map(AssetBasicNetworkCpPo::getAssetId)
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
//删除原有数据
|
|
|
|
|
assetBasicNetworkService.removeBatchByIds(netWorkidList);
|
|
|
|
|
assetBasicNetworkService.deleteIdList(netWorkidList);
|
|
|
|
|
//将子表数据复制到主表中
|
|
|
|
|
List<AssetBasicNetwork> netWorkNewList = netWorkList.stream()
|
|
|
|
|
.map(cpPo -> {
|
|
|
|
@ -342,7 +344,7 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
|
.map(AssetSupplyChainCpPo::getAssetId)
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
//删除原有数据
|
|
|
|
|
assetSupplyChainService.removeBatchByIds(SupplyChainidList);
|
|
|
|
|
assetSupplyChainService.deleteIdList(SupplyChainidList);
|
|
|
|
|
List<AssetSupplyChain> SupplyChainNewList = SupplyChainList.stream()
|
|
|
|
|
.map(cpPo -> {
|
|
|
|
|
AssetSupplyChain supplyChain = new AssetSupplyChain();
|
|
|
|
@ -358,7 +360,7 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
|
.map(UnitOtherConcatCpPo::getAssetId)
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
//删除原有数据
|
|
|
|
|
unitOtherConcatService.removeBatchByIds(UnitOtherConcatidList);
|
|
|
|
|
unitOtherConcatService.deleteIdList(UnitOtherConcatidList);
|
|
|
|
|
List<UnitOtherConcat> UnitOtherConcatNewList = UnitOtherConcatList.stream()
|
|
|
|
|
.map(cpPo -> {
|
|
|
|
|
UnitOtherConcat unitOtherConcat = new UnitOtherConcat();
|
|
|
|
|