|
|
|
@ -262,12 +262,6 @@ public class AssetCurrentController extends BaseController {
|
|
|
|
|
throw new ServiceException("请选择已有单位!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<AssetCurrent> list1 = assetCurrentService.lambdaQuery().eq(AssetCurrent::getXtmc, assetCurrentJyPo.getXtmc()).eq(AssetCurrent::getDwmc, assetCurrentJyPo.getDwmc()).list();
|
|
|
|
|
if (list1 != null&& !list1.isEmpty()){
|
|
|
|
|
throw new ServiceException("不允许新增重复资产!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AssetCurrentJyPo one = assetCurrentJyService.lambdaQuery().eq(AssetCurrentJyPo::getXtmc, assetCurrentJyPo.getXtmc()).eq(AssetCurrentJyPo::getDwmc, assetCurrentJyPo.getDwmc()).isNull(AssetCurrentJyPo::getTaskId).one();
|
|
|
|
|
assetCurrentJyPo.setAuditState("1");
|
|
|
|
|
assetCurrentJyPo.setAuditYy(null);
|
|
|
|
@ -541,11 +535,6 @@ public class AssetCurrentController extends BaseController {
|
|
|
|
|
if (list == null || list.isEmpty()) {
|
|
|
|
|
throw new ServiceException("请选择已有单位!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<AssetCurrent> list3 = assetCurrentService.lambdaQuery().eq(AssetCurrent::getXtmc, assetCurrent.getXtmc()).eq(AssetCurrent::getDwmc, assetCurrent.getDwmc()).list();
|
|
|
|
|
if (list3 != null&& !list3.isEmpty()){
|
|
|
|
|
throw new ServiceException("不允许新增重复资产!");
|
|
|
|
|
}
|
|
|
|
|
//保存未修改之前的单位名称
|
|
|
|
|
// AssetCurrent byId = assetCurrentService.getById(assetCurrent.getId());
|
|
|
|
|
StringBuilder a = new StringBuilder();
|
|
|
|
|