add 分页查询
This commit is contained in:
@@ -110,7 +110,7 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial
|
||||
if (whereJson.get("opc_id") != null) {
|
||||
param.put("opc_id", whereJson.get("opc_id"));
|
||||
}
|
||||
JSONObject json = WQL.getWO("Qdevice_query_002").addParamMap(param).pageQuery(WqlUtil.getHttpContext(page), "update_time desc");
|
||||
JSONObject json = WQL.getWO("Qdevice_query_002").addParamMap(param).pageQuery(WqlUtil.getHttpContext(page), "d.device_code,e.extra_name");
|
||||
return json;
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
IF 输入.flag = "2"
|
||||
QUERY
|
||||
PAGEQUERY
|
||||
SELECT
|
||||
d.device_id,d.device_code,d.driver_code,d.device_type,
|
||||
e.extra_code,e.extra_name,
|
||||
@@ -100,9 +100,8 @@
|
||||
OPTION 输入.opc_id <> ""
|
||||
d.opc_server_id = 输入.opc_id
|
||||
ENDOPTION
|
||||
ORDER BY d.device_code,e.extra_name
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
|
||||
IF 输入.flag = "3"
|
||||
|
||||
Reference in New Issue
Block a user