|
@@ -625,7 +625,7 @@ public class MiddleMeterApplyServiceImpl extends BaseServiceImpl<MiddleMeterAppl
|
|
|
//获取每个节点的附件
|
|
|
Integer max = baseMapper.getMeterWbsFileMaxType(treeContract.getContractId(),treeContract.getId());
|
|
|
//判断附件中是否存在7天28天附件,如果不存在则提示:关联WBS节点中的附近已被删除,请重新上传
|
|
|
- if (max == null || (max != 11 || max != 12)){
|
|
|
+ if (max == null || (max != 11 && max != 12)){
|
|
|
throw new ServiceException("关联WBS节点中的附件已被删除,请重新上传附件");
|
|
|
}else {
|
|
|
if (max == 11) {
|
|
@@ -1285,6 +1285,7 @@ public class MiddleMeterApplyServiceImpl extends BaseServiceImpl<MiddleMeterAppl
|
|
|
inventoryFormApply.setProjectId(projectId);
|
|
|
inventoryFormApply.setContractId(contractId);
|
|
|
inventoryFormApply.setMiddleMeterId(middleId);
|
|
|
+ inventoryFormApply.setMeterNumber(prefix+count);
|
|
|
inventoryFormApply.setContractFormId(vo.getContractFormId());
|
|
|
inventoryFormApply.setContractMeterId(vo.getContractMeterId());
|
|
|
inventoryFormApply.setContractPeriodId(periodId);
|