Commit db086161 authored by 刘林's avatar 刘林

fix(jg):报废根据设备查不到证报错问题处理

parent 9eefcdb4
......@@ -1009,6 +1009,9 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
Map<String, Object> map1 = new HashMap<>();
List<String> equipIds = jgScrapCancelEqList.stream().map(JgScrapCancelEq::getEquId).collect(Collectors.toList());
List<JgUseRegistrationManage> jgUseRegistrationManageList = getJgUseRegistrationManages(jgScrapCancelEqList);
if (CollectionUtils.isEmpty(jgUseRegistrationManageList)) {
throw new BadRequest("该设备使用登记证号已被修改,请驳回到发起单位,重新提交!");
}
Map<String, Map<String, Object>> resultMap = new HashMap<>();
if (CancelTypeEnum.SCRAPPED.getCode().equals(jgScrapCancel.getCancelType())) {
idxBizJgUseInfoMapper.batchUpdateUseInfo(equipIds, EquimentEnum.BAOFEI.getCode());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment