|
|
@ -334,7 +334,7 @@ public class UnitController {
|
|
|
|
wrapper1.eq("dwmc", userNames);
|
|
|
|
wrapper1.eq("dwmc", userNames);
|
|
|
|
wrapper1.eq("del_flag","0");
|
|
|
|
wrapper1.eq("del_flag","0");
|
|
|
|
List<AssetCurrent> list = assetCurrentService.list(wrapper1);
|
|
|
|
List<AssetCurrent> list = assetCurrentService.list(wrapper1);
|
|
|
|
if(list!=null&&list.size()>0){
|
|
|
|
if(list!=null && !list.isEmpty()){
|
|
|
|
list.forEach(x->{
|
|
|
|
list.forEach(x->{
|
|
|
|
assetSupplyChainService.deleteByAssetIds(x.getId());
|
|
|
|
assetSupplyChainService.deleteByAssetIds(x.getId());
|
|
|
|
assetBasicNetworkService.deleteByAssetIds(x.getId());
|
|
|
|
assetBasicNetworkService.deleteByAssetIds(x.getId());
|
|
|
@ -352,6 +352,11 @@ public class UnitController {
|
|
|
|
QueryWrapper<UnitOtherConcatCpPo> queryWrapper5 = new QueryWrapper<>();
|
|
|
|
QueryWrapper<UnitOtherConcatCpPo> queryWrapper5 = new QueryWrapper<>();
|
|
|
|
queryWrapper5.eq("asset_id", x.getId());
|
|
|
|
queryWrapper5.eq("asset_id", x.getId());
|
|
|
|
unitOtherConcatCpService.remove(queryWrapper5);
|
|
|
|
unitOtherConcatCpService.remove(queryWrapper5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assetCurrentService.deleteByUnitIds(x.getId());
|
|
|
|
|
|
|
|
QueryWrapper<AssetCurrentCpPo> f1 = new QueryWrapper<>();
|
|
|
|
|
|
|
|
queryWrapper5.eq("id", x.getId());
|
|
|
|
|
|
|
|
assetCurrentCpService.remove(f1);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
QueryWrapper<AssetApp> r1 = new QueryWrapper<>();
|
|
|
|
QueryWrapper<AssetApp> r1 = new QueryWrapper<>();
|
|
|
|