完成部分退料功能
This commit is contained in:
parent
f36fc6f0dd
commit
c5940da435
|
|
@ -181,8 +181,6 @@ public class BackReceiveServiceImpl implements BackReceiveService {
|
||||||
//修改back_apply_details为已退料(1)
|
//修改back_apply_details为已退料(1)
|
||||||
res = updateStatus(record);
|
res = updateStatus(record);
|
||||||
}
|
}
|
||||||
//完成退料的部分,更新 back_check_details 为 is_finished=1,此部分不支持撤回
|
|
||||||
finishBackCheckDetails(record);
|
|
||||||
List<BackApplyInfo> hgList = backReceiveMapper.getHgList(record);
|
List<BackApplyInfo> hgList = backReceiveMapper.getHgList(record);
|
||||||
if (hgList != null && hgList.size() > 0) {
|
if (hgList != null && hgList.size() > 0) {
|
||||||
res = insertIad(hgList);
|
res = insertIad(hgList);
|
||||||
|
|
@ -238,6 +236,9 @@ public class BackReceiveServiceImpl implements BackReceiveService {
|
||||||
throw new RuntimeException("该机具未被领料使用");
|
throw new RuntimeException("该机具未被领料使用");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//完成退料的部分,更新 back_check_details 为 is_finished=1,此部分不支持撤回
|
||||||
|
finishBackCheckDetails(record);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new RuntimeException("typeId为空");
|
throw new RuntimeException("typeId为空");
|
||||||
|
|
|
||||||
|
|
@ -776,7 +776,7 @@
|
||||||
LEFT JOIN tm_task_agreement tta on tta.task_id=bai.task_id
|
LEFT JOIN tm_task_agreement tta on tta.task_id=bai.task_id
|
||||||
WHERE
|
WHERE
|
||||||
bcd.parent_id=#{parentId} and bcd.type_id=#{typeId}
|
bcd.parent_id=#{parentId} and bcd.type_id=#{typeId}
|
||||||
and bcd.back_status='1'
|
and bcd.back_status='1' and bcd.is_finished is null
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getWxList" resultType="com.bonus.sgzb.app.domain.BackApplyInfo">
|
<select id="getWxList" resultType="com.bonus.sgzb.app.domain.BackApplyInfo">
|
||||||
|
|
@ -796,7 +796,7 @@
|
||||||
LEFT JOIN tm_task_agreement tta on tta.task_id=bai.task_id
|
LEFT JOIN tm_task_agreement tta on tta.task_id=bai.task_id
|
||||||
WHERE
|
WHERE
|
||||||
bcd.parent_id=#{parentId} and bcd.type_id=#{typeId}
|
bcd.parent_id=#{parentId} and bcd.type_id=#{typeId}
|
||||||
and bcd.back_status='2'
|
and bcd.back_status='2' and bcd.is_finished is null
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getBfList" resultType="com.bonus.sgzb.app.domain.BackApplyInfo">
|
<select id="getBfList" resultType="com.bonus.sgzb.app.domain.BackApplyInfo">
|
||||||
|
|
@ -819,7 +819,7 @@
|
||||||
LEFT JOIN tm_task_agreement tta on tta.task_id=bai.task_id
|
LEFT JOIN tm_task_agreement tta on tta.task_id=bai.task_id
|
||||||
WHERE
|
WHERE
|
||||||
bcd.parent_id=#{parentId} and bcd.type_id=#{typeId}
|
bcd.parent_id=#{parentId} and bcd.type_id=#{typeId}
|
||||||
and bcd.back_status='3'
|
and bcd.back_status='3' and bcd.is_finished is null
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="codeQuery" resultType="com.bonus.sgzb.app.domain.BackApplyInfo">
|
<select id="codeQuery" resultType="com.bonus.sgzb.app.domain.BackApplyInfo">
|
||||||
|
|
@ -950,7 +950,7 @@
|
||||||
LEFT JOIN back_apply_info bai ON bai.id = bcd.parent_id
|
LEFT JOIN back_apply_info bai ON bai.id = bcd.parent_id
|
||||||
LEFT JOIN tm_task_agreement tta ON tta.task_id = bai.task_id
|
LEFT JOIN tm_task_agreement tta ON tta.task_id = bai.task_id
|
||||||
WHERE
|
WHERE
|
||||||
bcd.parent_id = #{parentId} and bcd.type_id=#{typeId}
|
bcd.parent_id = #{parentId} and bcd.type_id=#{typeId} and bcd.is_finished is null
|
||||||
GROUP By bcd.type_id,bcd.ma_id
|
GROUP By bcd.type_id,bcd.ma_id
|
||||||
</select>
|
</select>
|
||||||
<select id="getBackMachine" resultType="com.bonus.sgzb.app.domain.TmTask">
|
<select id="getBackMachine" resultType="com.bonus.sgzb.app.domain.TmTask">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue