功能优化
This commit is contained in:
parent
3393b7ba6d
commit
995268a664
|
|
@ -1240,15 +1240,15 @@ public class LeaseTaskServiceImpl implements ILeaseTaskService {
|
||||||
if (leaseApplyDetails.getMaCodeVoList()!=null){
|
if (leaseApplyDetails.getMaCodeVoList()!=null){
|
||||||
//编码
|
//编码
|
||||||
for (MaCodeVo maCodeVo : leaseApplyDetails.getMaCodeVoList()) {
|
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);
|
int res = mapper.updateMaStatus(maCodeVo);
|
||||||
if (res == 0) {
|
if (res == 0) {
|
||||||
throw new ServiceException("设备状态修改失败,请联系管理员");
|
throw new ServiceException("设备状态修改失败,请联系管理员");
|
||||||
}
|
}
|
||||||
type.setTypeId(Long.parseLong(maCodeVo.getTypeId()));
|
|
||||||
type.setMaId(maCodeVo.getMaId());
|
|
||||||
type.setInputNum(BigDecimal.ONE);
|
|
||||||
typeService.updateNumAddOrSubtract(type);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//判断是领用任务还是领料任务,根据newType
|
//判断是领用任务还是领料任务,根据newType
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue