This commit is contained in:
2023-03-07 12:18:31 +08:00
parent d74b3c1ff4
commit 9d8c3668a1
3 changed files with 6 additions and 2 deletions

View File

@@ -219,9 +219,11 @@ public class MesToLmsServiceImpl implements MesToLmsService {
throw new BadRequestException("该生箔工单对应的状态不为准备就绪,不允许确认下卷!");
}
// 下发ACS更改任务状态
JSONObject task_jo = WQLObject.getWQLObject("SCH_BASE_Task").query("material_code = '" + containerName + "' and task_status <> '07' AND is_delete = '0'").uniqueResult(0);
JSONArray paramArr = new JSONArray();
JSONObject json = new JSONObject();
json.put("device_code", jsonSb.getString("point_code"));
param.put("task_code", task_jo.getString("task_code"));
json.put("option ", "2");
paramArr.add(json);

View File

@@ -92,7 +92,7 @@
FROM
sch_base_task
WHERE
( point_code1 = full_point_code OR point_code2 = full_point_code )
( point_code1 = empty_point_code OR point_code2 = empty_point_code )
AND task_status < '07'
AND is_delete = '0'
)