配置选择
This commit is contained in:
@@ -89,6 +89,9 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial
|
||||
if (whereJson.get("device_type") != null) {
|
||||
param.put("device_type", whereJson.get("device_type"));
|
||||
}
|
||||
if (whereJson.get("is_config") != null) {
|
||||
param.put("is_config", whereJson.get("is_config"));
|
||||
}
|
||||
JSONObject json = WQL.getWO("Qdevice_query_002").addParamMap(param).pageQuery(WqlUtil.getHttpContext(page), "is_config asc,seq_num desc,update_time desc");
|
||||
return json;
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
输入.methods_id TYPEAS s_string
|
||||
输入.blurry TYPEAS s_string
|
||||
输入.region TYPEAS s_string
|
||||
输入.is_config TYPEAS s_string
|
||||
[临时表]
|
||||
--这边列出来的临时表就会在运行期动态创建
|
||||
|
||||
@@ -49,13 +50,16 @@
|
||||
PAGEQUERY
|
||||
SELECT
|
||||
d.*, dict.label AS device_type_name,
|
||||
dict2.label AS region_name
|
||||
dict2.label AS region_name,
|
||||
dict3.label AS config
|
||||
FROM
|
||||
ACS_DEVICE d
|
||||
LEFT JOIN sys_dict_detail dict ON dict.value = d.device_type
|
||||
AND dict.`name` = 'device_type'
|
||||
LEFT JOIN sys_dict_detail dict2 ON dict2.value = d.region
|
||||
AND dict2.`name` = 'region_type'
|
||||
LEFT JOIN sys_dict_detail dict3 ON dict3.value = d.is_config
|
||||
AND dict3.`name` = 'is_config'
|
||||
WHERE
|
||||
is_delete = '0'
|
||||
OPTION 输入.blurry <> ""
|
||||
@@ -67,6 +71,9 @@
|
||||
OPTION 输入.device_type <> ""
|
||||
d.device_type = 输入.device_type
|
||||
ENDOPTION
|
||||
OPTION 输入.is_config <> ""
|
||||
d.is_config = 输入.is_config
|
||||
ENDOPTION
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
|
||||
Reference in New Issue
Block a user