|
|
@@ -184,8 +184,9 @@ public class AssetServiceImpl extends BaseServiceImpl<AssetMapper, AssetEntity>
|
|
|
for (Long assetId : ids) {
|
|
|
AssetEntity dbAsset = baseMapper.selectById(assetId);
|
|
|
canDeleteAsset(dbAsset, yearAndMonth);
|
|
|
+ baseMapper.deleteAssesByZcbmAfterMonth(dbAsset.getZcbm(), yearAndMonth);
|
|
|
}
|
|
|
- return baseMapper.physicalDeleteByIds(ids);
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
private void canDeleteAsset(AssetEntity asset, String yearAndMonth) {
|