fix: 查找剩余同组分切计划BUG
This commit is contained in:
@@ -133,6 +133,7 @@
|
||||
<foreach item="item" index="index" collection="qzzs" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
OR p1.qzzno IS NULL
|
||||
)
|
||||
SELECT
|
||||
resource_name,
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
`bst_ivt_cutpointivt` bct
|
||||
LEFT JOIN pdm_bi_slittingproductionplan p ON p.qzzno = bct.qzz_no1 OR p.qzzno = bct.qzz_no2
|
||||
WHERE bct.point_status = '2' AND p.parent_container_name = #{parent_container_name} AND p.split_group = #{split_group}
|
||||
AND (LENGTH(bic.qzz_no1) = 0 OR LENGTH(bic.qzz_no2) = 0)
|
||||
AND (LENGTH(bic.qzz_no1) <![CDATA[ > ]]> 0 OR LENGTH(bic.qzz_no2) <![CDATA[ > ]]> 0)
|
||||
AND (LENGTH(bct.qzz_no1) = 0 OR LENGTH(bct.qzz_no2) = 0)
|
||||
AND (LENGTH(bct.qzz_no1) <![CDATA[ > ]]> 0 OR LENGTH(bct.qzz_no2) <![CDATA[ > ]]> 0)
|
||||
AND bct.is_used = '1'
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
@@ -136,7 +136,7 @@ public class SlitterServiceImpl implements SlitterService {
|
||||
: "");
|
||||
con.put("number", ObjectUtil.isNotEmpty(point.getTube_code1()) && ObjectUtil.isNotEmpty(point.getTube_code2())
|
||||
? "2" : "1");
|
||||
res.put("code", HttpStatus.HTTP_OK);
|
||||
res.put("status", HttpStatus.HTTP_OK);
|
||||
res.put("message", "任务请求成功!");
|
||||
return res;
|
||||
}
|
||||
@@ -155,7 +155,7 @@ public class SlitterServiceImpl implements SlitterService {
|
||||
TaskUtils.updateOptMessageByBShaftPoint(CBJ);
|
||||
shafttubeivtService.updateById(CBJ);
|
||||
}
|
||||
res.put("code", HttpStatus.HTTP_OK);
|
||||
res.put("status", HttpStatus.HTTP_OK);
|
||||
res.put("message", "请求成功");
|
||||
return res;
|
||||
}
|
||||
@@ -184,7 +184,7 @@ public class SlitterServiceImpl implements SlitterService {
|
||||
r.put("device_code", deviceCode);
|
||||
SlitterTaskUtil.putCurrentPaperSpec(r, plans);
|
||||
r.put("pullCount", plans.size());
|
||||
res.put("code", HttpStatus.HTTP_OK);
|
||||
res.put("status", HttpStatus.HTTP_OK);
|
||||
res.put("message", "请求成功");
|
||||
return res;
|
||||
}
|
||||
@@ -295,7 +295,7 @@ public class SlitterServiceImpl implements SlitterService {
|
||||
lockPoint.unlock();
|
||||
}
|
||||
}
|
||||
res.put("code", HttpStatus.HTTP_OK);
|
||||
res.put("status", HttpStatus.HTTP_OK);
|
||||
res.put("message", "请求成功");
|
||||
return res;
|
||||
}
|
||||
@@ -332,7 +332,7 @@ public class SlitterServiceImpl implements SlitterService {
|
||||
param.put("product_area", SlitterConstant.SLITTER_TASK_AREA);
|
||||
param.put("is_bushing", "0");
|
||||
trussCallShaftCacheTask.createTask(param);
|
||||
res.put("code", HttpStatus.HTTP_OK);
|
||||
res.put("status", HttpStatus.HTTP_OK);
|
||||
res.put("message", "请求成功");
|
||||
return res;
|
||||
}
|
||||
@@ -639,7 +639,7 @@ public class SlitterServiceImpl implements SlitterService {
|
||||
taskParam.put("point_code2", one.getPoint_code());
|
||||
taskParam.put("material_code", plan.getContainer_name());
|
||||
taskParam.put("to_is_labeling", "0");
|
||||
res.put("code", HttpStatus.HTTP_OK);
|
||||
res.put("status", HttpStatus.HTTP_OK);
|
||||
res.put("message", "请求成功!");
|
||||
res.put("data", taskParam);
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user