代码更新

This commit is contained in:
liang.chao 2024-01-22 21:11:27 +08:00
parent 8472f12a30
commit 268c5321e4
1 changed files with 13 additions and 11 deletions

View File

@ -35,6 +35,7 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService {
/**
* 根据任务id查询出库数据
*
* @param parentId 任务id
* @return 出库数据集合
*/
@ -45,6 +46,7 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService {
/**
* 领料出库处理
*
* @param record 出库对象
* @return 结果
*/
@ -55,7 +57,7 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService {
if (StringUtils.isNull(record)) {
return AjaxResult.error("领料出库失败,请检查参数是否填写完整!");
}
if (!(Integer.valueOf(0) == record.getMaId())){
if (!(Integer.valueOf(0) == record.getMaId() || record.getMaId() == null)) {
String status = leaseOutDetailsMapper.getMachineStatus(record);
if (!maStatus.equals(status)) {
return AjaxResult.error("领料出库失败,该设备不是在库状态!");