fix: B1生箔下料与分切暂存架混放
This commit is contained in:
@@ -175,7 +175,7 @@ public class RawFoilServiceImpl implements RawFoilService {
|
|||||||
if (jsonSb.getString("product_area").equals("B1")) {
|
if (jsonSb.getString("product_area").equals("B1")) {
|
||||||
// 2.根据就近原则查对应空卷轴
|
// 2.根据就近原则查对应空卷轴
|
||||||
JSONObject map = new JSONObject();
|
JSONObject map = new JSONObject();
|
||||||
map.put("flag", "6");
|
map.put("flag", "601");
|
||||||
map.put("product_area", jsonSb.getString("product_area"));
|
map.put("product_area", jsonSb.getString("product_area"));
|
||||||
map.put("point_location", jsonSb.getString("point_location"));
|
map.put("point_location", jsonSb.getString("point_location"));
|
||||||
// 查找冷却区空轴位状态是空轴的点位
|
// 查找冷却区空轴位状态是空轴的点位
|
||||||
|
|||||||
@@ -333,3 +333,39 @@ IF 输入.flag = "6"
|
|||||||
ENDQUERY
|
ENDQUERY
|
||||||
ENDIF
|
ENDIF
|
||||||
|
|
||||||
|
IF 输入.flag = "601"
|
||||||
|
QUERY
|
||||||
|
SELECT
|
||||||
|
ivt.*
|
||||||
|
FROM
|
||||||
|
ST_IVT_CoolPointIvt ivt
|
||||||
|
WHERE
|
||||||
|
ivt.empty_point_status = '02'
|
||||||
|
AND ivt.point_type = '1'
|
||||||
|
AND
|
||||||
|
ivt.is_used = '1'
|
||||||
|
AND NOT EXISTS (
|
||||||
|
SELECT
|
||||||
|
*
|
||||||
|
FROM
|
||||||
|
sch_base_task
|
||||||
|
WHERE
|
||||||
|
( point_code1 = ivt.empty_point_code OR point_code4 = ivt.empty_point_code )
|
||||||
|
AND task_status < '07'
|
||||||
|
AND is_delete = '0'
|
||||||
|
)
|
||||||
|
|
||||||
|
OPTION 输入.product_area <> ""
|
||||||
|
ivt.product_area = 输入.product_area
|
||||||
|
ENDOPTION
|
||||||
|
|
||||||
|
OPTION 输入.point_location <> ""
|
||||||
|
ivt.point_location = 输入.point_location
|
||||||
|
ENDOPTION
|
||||||
|
|
||||||
|
order by ivt.point_code ASC
|
||||||
|
|
||||||
|
ENDSELECT
|
||||||
|
ENDQUERY
|
||||||
|
ENDIF
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user