|
|
@ -203,21 +203,43 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
assetCurrentResponse.setBtgyy(null);
|
|
|
|
assetCurrentResponse.setBtgyy(null);
|
|
|
|
assetCurrentResponse.setUpdateTime(null);
|
|
|
|
assetCurrentResponse.setUpdateTime(null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assetCurrentCpService.saveBatch(list);
|
|
|
|
|
|
|
|
//新增新监管业务形态
|
|
|
|
//新增新监管业务形态
|
|
|
|
List<AssetBusinessFormCpPo> bussList = assetBusinessFormCpService.findByassetId(assetTask.getTaskId());
|
|
|
|
List<AssetBusinessFormCpPo> bussList = assetBusinessFormCpService.findByassetId(assetCurrentResponse.getId());
|
|
|
|
|
|
|
|
bussList.stream()
|
|
|
|
|
|
|
|
.forEach(assetBusinessFormCp -> {
|
|
|
|
|
|
|
|
assetBusinessFormCp.setBusinessId(null);
|
|
|
|
|
|
|
|
assetBusinessFormCp.setTaskId(id);
|
|
|
|
|
|
|
|
});
|
|
|
|
assetBusinessFormCpService.saveBatch(bussList);
|
|
|
|
assetBusinessFormCpService.saveBatch(bussList);
|
|
|
|
//新增供应
|
|
|
|
//新增供应
|
|
|
|
List<AssetSupplyChainCpPo> supplyChainList = assetSupplyChainCpService.findByassetId(assetTask.getTaskId());
|
|
|
|
List<AssetSupplyChainCpPo> supplyChainList = assetSupplyChainCpService.findByassetId(assetCurrentResponse.getId());
|
|
|
|
|
|
|
|
supplyChainList.stream()
|
|
|
|
|
|
|
|
.forEach(assetSupplyChainCpPo ->{
|
|
|
|
|
|
|
|
assetSupplyChainCpPo.setSupplyId(null);
|
|
|
|
|
|
|
|
assetSupplyChainCpPo.setTaskId(id);
|
|
|
|
|
|
|
|
} );
|
|
|
|
assetSupplyChainCpService.saveBatch(supplyChainList);
|
|
|
|
assetSupplyChainCpService.saveBatch(supplyChainList);
|
|
|
|
//新增基础网络
|
|
|
|
//新增基础网络
|
|
|
|
List<AssetBasicNetworkCpPo> BasicNetworkCpList = assetBasicNetworkCpService.findByassetId(assetTask.getTaskId());
|
|
|
|
List<AssetBasicNetworkCpPo> BasicNetworkCpList = assetBasicNetworkCpService.findByassetId(assetCurrentResponse.getId());
|
|
|
|
|
|
|
|
BasicNetworkCpList.stream()
|
|
|
|
|
|
|
|
.forEach(assetBasicNetworkCpPo -> {
|
|
|
|
|
|
|
|
assetBasicNetworkCpPo.setNetworkId(null);
|
|
|
|
|
|
|
|
assetBasicNetworkCpPo.setTaskId(id);
|
|
|
|
|
|
|
|
});
|
|
|
|
assetBasicNetworkCpService.saveBatch(BasicNetworkCpList);
|
|
|
|
assetBasicNetworkCpService.saveBatch(BasicNetworkCpList);
|
|
|
|
//新增其他联系人
|
|
|
|
//新增其他联系人
|
|
|
|
List<UnitOtherConcatCpPo> unitOtherConcatList = unitOtherConcatCpService.findByassetId(assetTask.getTaskId());
|
|
|
|
List<UnitOtherConcatCpPo> unitOtherConcatList = unitOtherConcatCpService.findByassetId(assetCurrentResponse.getId());
|
|
|
|
|
|
|
|
unitOtherConcatList.stream()
|
|
|
|
|
|
|
|
.forEach(unitOtherConcatCpPo -> {
|
|
|
|
|
|
|
|
unitOtherConcatCpPo.setConcatId(null);
|
|
|
|
|
|
|
|
unitOtherConcatCpPo.setTaskId(id);
|
|
|
|
|
|
|
|
});
|
|
|
|
unitOtherConcatCpService.saveBatch(unitOtherConcatList);
|
|
|
|
unitOtherConcatCpService.saveBatch(unitOtherConcatList);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assetCurrentCpService.saveBatch(list);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (assetPart.equals("1")) {
|
|
|
|
} else if (assetPart.equals("1")) {
|
|
|
|
//遍历小程序资产单位
|
|
|
|
//遍历小程序资产单位
|
|
|
@ -395,7 +417,10 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
|
|
|
|
JSONObject jsonObject = JSONObject.parseObject(o.toString());
|
|
|
|
JSONObject jsonObject = JSONObject.parseObject(o.toString());
|
|
|
|
acomma.setKey(jsonObject.get("key").toString());
|
|
|
|
acomma.setKey(jsonObject.get("key").toString());
|
|
|
|
acomma.setIpType(jsonObject.get("ipType").toString());
|
|
|
|
acomma.setIpType(jsonObject.get("ipType").toString());
|
|
|
|
acomma.setPort(jsonObject.get("port").toString());
|
|
|
|
Object portValue = jsonObject.get("port");
|
|
|
|
|
|
|
|
if (portValue != null && !portValue.toString().isEmpty()) {
|
|
|
|
|
|
|
|
acomma.setPort(portValue.toString());
|
|
|
|
|
|
|
|
}
|
|
|
|
a2.add(acomma);
|
|
|
|
a2.add(acomma);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
byId.setGlIpList(a2);
|
|
|
|
byId.setGlIpList(a2);
|
|
|
|