rev:手持新增查询RGV状态

This commit is contained in:
2023-06-27 18:33:58 +08:00
parent a8247e6d16
commit 018b0b7702
4 changed files with 15 additions and 12 deletions

View File

@@ -33,5 +33,5 @@ public interface PdaTaskService {
*/
JSONObject confirm(JSONObject whereJson);
JSONArray rgvStatusQuery(JSONObject whereJson);
JSONObject rgvStatusQuery(JSONObject whereJson);
}

View File

@@ -89,9 +89,9 @@ public class PdaTaskServiceImpl implements PdaTaskService {
}
@Override
public JSONArray rgvStatusQuery(JSONObject whereJson) {
public JSONObject rgvStatusQuery(JSONObject whereJson) {
JSONArray rows = WQL.getWO("PDA_TASK").addParam("flag", "2").process().getResultJSONArray(0);
JSONObject jo = wmsToAcsService.getHotPointStatus(rows);
return jo.getJSONArray("data");
return jo;
}
}

View File

@@ -88,9 +88,10 @@
IF 输入.flag = "2"
QUERY
SELECT
point_code AS device_code
point_code AS device_code,
product_area
FROM
sch_point_code
sch_base_point
WHERE
point_code like 'RGV%'
ENDSELECT

View File

@@ -189,6 +189,8 @@ public class InHotTask extends AbstractAcsTask {
log.info("mybatis执行update语句");
HotMapper hotMapper = SpringContextHolder.getBean(HotMapper.class);
hotMapper.updateHotByObject(jsonHotIvt);
JSONObject update_ivt = hotIvtTab.query("point_code = '" + jsonTask.getString("point_code3") + "'").uniqueResult(0);
log.info("更新完后烘箱库存为:-----------------" + update_ivt.toString());
hot_point_code = jsonHotIvt.getString("ext_code");
}