修改
This commit is contained in:
@@ -60,10 +60,10 @@ public class InServiceImpl implements InService {
|
||||
}
|
||||
|
||||
JSONObject jo = new JSONObject();
|
||||
jo.put("point_code1",cut_row.getString("point_code"));
|
||||
jo.put("point_code2","point_code");
|
||||
jo.put("vehicle_code",cut_row.getString("qzzno"));
|
||||
jo.put("task_type","010405");
|
||||
jo.put("point_code1", cut_row.getString("point_code"));
|
||||
jo.put("point_code2", "point_code");
|
||||
jo.put("vehicle_code", cut_row.getString("qzzno"));
|
||||
jo.put("task_type", "010405");
|
||||
cutTrussTask.createTask(jo);
|
||||
|
||||
JSONObject result = new JSONObject();
|
||||
@@ -75,17 +75,15 @@ public class InServiceImpl implements InService {
|
||||
public JSONObject devicePointQuery(JSONObject whereJson) {
|
||||
String device_code = whereJson.getString("device_code");
|
||||
|
||||
if (StrUtil.isEmpty(device_code)){
|
||||
if (StrUtil.isEmpty(device_code)) {
|
||||
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();
|
||||
result.put("data", rows);
|
||||
result.put("message", "操作成功!");
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -240,4 +240,7 @@
|
||||
st_ivt_cutpointivt cut
|
||||
WHERE
|
||||
cut.point_code = 输入.device_code
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user