功能优化

This commit is contained in:
mashuai 2025-09-15 19:22:41 +08:00
parent 3393b7ba6d
commit 995268a664
1 changed files with 4 additions and 4 deletions

View File

@ -1240,15 +1240,15 @@ public class LeaseTaskServiceImpl implements ILeaseTaskService {
if (leaseApplyDetails.getMaCodeVoList()!=null){
//编码
for (MaCodeVo maCodeVo : leaseApplyDetails.getMaCodeVoList()) {
type.setTypeId(Long.parseLong(maCodeVo.getTypeId()));
type.setMaId(maCodeVo.getMaId());
type.setInputNum(BigDecimal.ONE);
typeService.updateNumAddOrSubtract(type);
//更改设备状态为在库
int res = mapper.updateMaStatus(maCodeVo);
if (res == 0) {
throw new ServiceException("设备状态修改失败,请联系管理员");
}
type.setTypeId(Long.parseLong(maCodeVo.getTypeId()));
type.setMaId(maCodeVo.getMaId());
type.setInputNum(BigDecimal.ONE);
typeService.updateNumAddOrSubtract(type);
}
}
//判断是领用任务还是领料任务根据newType