Commit f0f9173f authored by chenzhao's avatar chenzhao

修改筛选通用

parent e54da26b
...@@ -124,8 +124,8 @@ public class IdxBizFanPointProcessVariableClassificationController extends BaseC ...@@ -124,8 +124,8 @@ public class IdxBizFanPointProcessVariableClassificationController extends BaseC
@TycloudOperation(ApiLevel = UserType.AGENCY,needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY,needAuth = false)
@ApiOperation(httpMethod = "GET",value = "列表全部数据查询", notes = "列表全部数据查询") @ApiOperation(httpMethod = "GET",value = "列表全部数据查询", notes = "列表全部数据查询")
@GetMapping(value = "/selectParams") @GetMapping(value = "/selectParams")
public ResponseModel<List<Map<String,Object>>> selectParams(String tableName,String column) { public ResponseModel<List<Map<String,Object>>> selectParams(String tableName,String column,@RequestParam(required = false) String isFx) {
return ResponseHelper.buildResponse(idxBizFanPointProcessVariableClassificationServiceImpl.selectParams(column,tableName)); return ResponseHelper.buildResponse(idxBizFanPointProcessVariableClassificationServiceImpl.selectParams(column,tableName,isFx));
} }
} }
...@@ -18,7 +18,7 @@ public interface IdxBizFanPointProcessVariableClassificationMapper extends BaseM ...@@ -18,7 +18,7 @@ public interface IdxBizFanPointProcessVariableClassificationMapper extends BaseM
List<IdxBizFanPointProcessVariableClassificationDto> getInfluxDBData(); List<IdxBizFanPointProcessVariableClassificationDto> getInfluxDBData();
List<Map<String,Object>> selectParams(String tableName,String column); List<Map<String,Object>> selectParams(String tableName,String column,String isFx);
List<String> gateWayIdListFan(); List<String> gateWayIdListFan();
} }
...@@ -34,9 +34,9 @@ public class IdxBizFanPointProcessVariableClassificationServiceImpl extends Base ...@@ -34,9 +34,9 @@ public class IdxBizFanPointProcessVariableClassificationServiceImpl extends Base
return this.queryForList("" , false); return this.queryForList("" , false);
} }
public List<Map<String,Object>> selectParams(String column, String tableName) { public List<Map<String,Object>> selectParams(String column, String tableName,String isFx) {
return this.getBaseMapper(). selectParams(tableName,column); return this.getBaseMapper(). selectParams(tableName,column,isFx);
} }
} }
\ No newline at end of file
...@@ -93,6 +93,9 @@ ...@@ -93,6 +93,9 @@
select ${column} as text from ${tableName} select ${column} as text from ${tableName}
where ${column} is not null and ${column} != '' where ${column} is not null and ${column} != ''
<if test="isFx != '' and is Fx != null">
and TAG_CODE = '分析变量'
</if>
group by ${column}; group by ${column};
</select> </select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment