This commit is contained in:
2022-11-02 08:51:36 +08:00
parent 86be2c543a
commit 4d3d8aabca
2 changed files with 9 additions and 8 deletions

View File

@@ -60,10 +60,10 @@ public class InServiceImpl implements InService {
} }
JSONObject jo = new JSONObject(); JSONObject jo = new JSONObject();
jo.put("point_code1",cut_row.getString("point_code")); jo.put("point_code1", cut_row.getString("point_code"));
jo.put("point_code2","point_code"); jo.put("point_code2", "point_code");
jo.put("vehicle_code",cut_row.getString("qzzno")); jo.put("vehicle_code", cut_row.getString("qzzno"));
jo.put("task_type","010405"); jo.put("task_type", "010405");
cutTrussTask.createTask(jo); cutTrussTask.createTask(jo);
JSONObject result = new JSONObject(); JSONObject result = new JSONObject();
@@ -75,17 +75,15 @@ public class InServiceImpl implements InService {
public JSONObject devicePointQuery(JSONObject whereJson) { public JSONObject devicePointQuery(JSONObject whereJson) {
String device_code = whereJson.getString("device_code"); String device_code = whereJson.getString("device_code");
if (StrUtil.isEmpty(device_code)){ if (StrUtil.isEmpty(device_code)) {
throw new BadRequestException("输入的设备号不能为空!"); throw new BadRequestException("输入的设备号不能为空!");
} }
JSONArray rows = WQL.getWO("PDA_02").addParam("flag","8").addParam("device_code",device_code).process().getResultJSONArray(0); JSONArray rows = WQL.getWO("PDA_02").addParam("flag", "8").addParam("device_code", device_code).process().getResultJSONArray(0);
JSONObject result = new JSONObject(); JSONObject result = new JSONObject();
result.put("data", rows); result.put("data", rows);
result.put("message", "操作成功!"); result.put("message", "操作成功!");
return result; return result;
} }
} }

View File

@@ -240,4 +240,7 @@
st_ivt_cutpointivt cut st_ivt_cutpointivt cut
WHERE WHERE
cut.point_code = 输入.device_code cut.point_code = 输入.device_code
ENDSELECT
ENDQUERY
ENDIF