退料编码查询,退料任务结束修改
This commit is contained in:
parent
02f28b9cbb
commit
f7b00ae4c0
|
|
@ -828,12 +828,15 @@ public class BackApplyInfoServiceImpl implements IBackApplyInfoService {
|
||||||
for (BackApplyDetails applyDetail : applyDetails) {
|
for (BackApplyDetails applyDetail : applyDetails) {
|
||||||
if (CollectionUtils.isNotEmpty(listL4)) {
|
if (CollectionUtils.isNotEmpty(listL4)) {
|
||||||
for (TypeTreeNode typeTreeNode : listL4) {
|
for (TypeTreeNode typeTreeNode : listL4) {
|
||||||
|
if(applyDetail.getTypeId()!=null){
|
||||||
if (applyDetail.getTypeId().equals(typeTreeNode.getTypeId())) {
|
if (applyDetail.getTypeId().equals(typeTreeNode.getTypeId())) {
|
||||||
if (applyDetail.getPreNum().compareTo(typeTreeNode.getNum()) > 0) {
|
if (applyDetail.getPreNum().compareTo(typeTreeNode.getNum()) > 0) {
|
||||||
return AjaxResult.error(HttpCodeEnum.FAIL.getCode(), "退料数量不能大于在用数量");
|
return AjaxResult.error(HttpCodeEnum.FAIL.getCode(), "退料数量不能大于在用数量");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -1065,7 +1065,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
|
||||||
SELECT mm.ma_id AS maId,
|
SELECT mm.ma_id AS maId,
|
||||||
mm.ma_code AS maCode,
|
mm.ma_code AS maCode,
|
||||||
mm.ma_status AS maStatus,AAAAAAAAAAAAAAAAAAAAA
|
mm.ma_status AS maStatus,
|
||||||
sd.dict_label AS maStatusName,
|
sd.dict_label AS maStatusName,
|
||||||
mt1.type_name AS typeName,
|
mt1.type_name AS typeName,
|
||||||
mm.type_id AS typeId,
|
mm.type_id AS typeId,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue