|
|
|
@ -258,14 +258,18 @@ public class AssetCurrentController extends BaseController {
|
|
|
|
|
|
|
|
|
|
QueryWrapper<AssetSupplyChainJyPo> queryWrapper2 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper2.eq("asset_id", assetCurrentJyPo.getId());
|
|
|
|
|
queryWrapper2.isNull("task_id");
|
|
|
|
|
assetSupplyChainJyService.remove(queryWrapper2);
|
|
|
|
|
QueryWrapper<AssetBasicNetworkJyPo> queryWrapper3 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper3.eq("asset_id", assetCurrentJyPo.getId());
|
|
|
|
|
queryWrapper3.isNull("task_id");
|
|
|
|
|
assetBasicNetworkJyService.remove(queryWrapper3);
|
|
|
|
|
QueryWrapper<AssetBusinessFormJyPo> queryWrapper4 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper4.eq("asset_id", assetCurrentJyPo.getId());
|
|
|
|
|
queryWrapper4.isNull("task_id");
|
|
|
|
|
assetBusinessFormJyService.remove(queryWrapper4);
|
|
|
|
|
QueryWrapper<UnitOtherConcatJyPo> queryWrapper5 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper5.isNull("task_id");
|
|
|
|
|
queryWrapper5.eq("asset_id", assetCurrentJyPo.getId());
|
|
|
|
|
unitOtherConcatJyservice.remove(queryWrapper5);
|
|
|
|
|
if (assetCurrentJyPo.getXjgywxt() != null) {
|
|
|
|
@ -435,6 +439,55 @@ public class AssetCurrentController extends BaseController {
|
|
|
|
|
BeanUtil.copyProperties(x, a4);
|
|
|
|
|
unitOtherConcatService.save(a4);
|
|
|
|
|
});
|
|
|
|
|
//如果有任务也修改任务这边
|
|
|
|
|
AssetCurrentCpPo one = assetCurrentCpService.lambdaQuery()
|
|
|
|
|
.isNotNull(AssetCurrentCpPo::getTaskId)
|
|
|
|
|
.eq(AssetCurrentCpPo::getId, byId.getId()).one();
|
|
|
|
|
if(one!=null){
|
|
|
|
|
Integer taskId = one.getTaskId();
|
|
|
|
|
Long appId = one.getCurrentId();
|
|
|
|
|
BeanUtil.copyProperties(byId, one);
|
|
|
|
|
one.setCurrentId(appId);
|
|
|
|
|
one.setTaskId(taskId);
|
|
|
|
|
one.setAuditState(null);
|
|
|
|
|
one.setAuditYy(null);
|
|
|
|
|
assetCurrentCpService.updateById(one);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QueryWrapper<AssetSupplyChainCpPo> queryWrapper2 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper2.eq("asset_id", one.getId());
|
|
|
|
|
queryWrapper2.isNull("task_id");
|
|
|
|
|
assetSupplyChainCpService.remove(queryWrapper2);
|
|
|
|
|
QueryWrapper<AssetBasicNetworkCpPo> queryWrapper3 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper3.eq("asset_id", one.getId());
|
|
|
|
|
queryWrapper3.isNull("task_id");
|
|
|
|
|
assetBasicNetworkCpService.remove(queryWrapper3);
|
|
|
|
|
QueryWrapper<AssetBusinessFormCpPo> queryWrapper4 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper4.eq("asset_id", one.getId());
|
|
|
|
|
queryWrapper4.isNull("task_id");
|
|
|
|
|
assetBusinessFormCpService.remove(queryWrapper4);
|
|
|
|
|
QueryWrapper<UnitOtherConcatCpPo> queryWrapper5 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper5.isNull("task_id");
|
|
|
|
|
queryWrapper5.eq("asset_id", one.getId());
|
|
|
|
|
unitOtherConcatCpService.remove(queryWrapper5);
|
|
|
|
|
list.forEach(x -> {
|
|
|
|
|
x.setTaskId(taskId);
|
|
|
|
|
assetSupplyChainCpService.save(x);
|
|
|
|
|
});
|
|
|
|
|
list1.forEach(x -> {
|
|
|
|
|
x.setTaskId(taskId);
|
|
|
|
|
assetBasicNetworkCpService.save(x);
|
|
|
|
|
});
|
|
|
|
|
list2.forEach(x -> {
|
|
|
|
|
x.setTaskId(taskId);
|
|
|
|
|
assetBusinessFormCpService.save(x);
|
|
|
|
|
});
|
|
|
|
|
list3.forEach(x -> {
|
|
|
|
|
x.setTaskId(taskId);
|
|
|
|
|
unitOtherConcatCpService.save(x);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return success();
|
|
|
|
|
}
|
|
|
|
@ -519,15 +572,19 @@ public class AssetCurrentController extends BaseController {
|
|
|
|
|
|
|
|
|
|
QueryWrapper<AssetSupplyChainCpPo> queryWrapper2 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper2.eq("asset_id", assetCurrent.getId());
|
|
|
|
|
queryWrapper2.isNotNull("task_id");
|
|
|
|
|
assetSupplyChainCpService.remove(queryWrapper2);
|
|
|
|
|
QueryWrapper<AssetBasicNetworkCpPo> queryWrapper3 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper3.isNotNull("task_id");
|
|
|
|
|
queryWrapper3.eq("asset_id", assetCurrent.getId());
|
|
|
|
|
assetBasicNetworkCpService.remove(queryWrapper3);
|
|
|
|
|
QueryWrapper<AssetBusinessFormCpPo> queryWrapper4 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper4.isNotNull("task_id");
|
|
|
|
|
queryWrapper4.eq("asset_id", assetCurrent.getId());
|
|
|
|
|
assetBusinessFormCpService.remove(queryWrapper4);
|
|
|
|
|
QueryWrapper<UnitOtherConcatCpPo> queryWrapper5 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper5.eq("asset_id", assetCurrent.getId());
|
|
|
|
|
queryWrapper5.isNotNull("task_id");
|
|
|
|
|
unitOtherConcatCpService.remove(queryWrapper5);
|
|
|
|
|
|
|
|
|
|
if (assetCurrent.getXjgywxt() != null) {
|
|
|
|
|