2021与蓝度共同重构项目,服务端
fix
zhanzhiqin
2022-05-27 33ecbd69aca2ccc58d47f467f3f7266b37fa9dfc
ximon-admin/src/main/java/com/sandu/ximon/admin/controller/GetListOnBindingController.java
@@ -74,12 +74,12 @@
    private final PoleMapper poleMapper;
    @GetMapping("/getPoleList")
    public ResponseVO<Object> getPoleList() {
    public ResponseVO<Object> getPoleList(@RequestParam(required = false, value = "keyword") String keyword) {
        List<Pole> poleList;
        if (SecurityUtils.getClientId() == null) {
            poleList = poleMapper.queryPoleOnLineStatesList(null, null, null, null, null, null);
            poleList = poleMapper.getPoleListOnBinding(null, keyword);
        } else {
            poleList = poleMapper.queryPoleOnLineStatesList(SecurityUtils.getUserId(), null, null, null, null, null);
            poleList = poleMapper.getPoleListOnBinding(SecurityUtils.getUserId(), keyword);
        }
        List<Map> mapList = new ArrayList<>();
@@ -99,8 +99,8 @@
    private final LightMapper lightMapper;
    @GetMapping("/getLightList")
    public ResponseVO<Object> getLightList() {
        List<LightBo> listLight = lightMapper.listLight(SecurityUtils.getClientId(), null);
    public ResponseVO<Object> getLightList(@RequestParam(required = false, value = "keyword") String keyword) {
        List<LightBo> listLight = lightMapper.listLightOnBinding(SecurityUtils.getClientId(), keyword);
        List<Map> mapList = new ArrayList<>();
@@ -120,9 +120,9 @@
     * NLED列表(诺瓦设备)
     */
    @GetMapping("/getLedPlayerEntityList")
    public ResponseVO<Object> getLedPlayerEntityList() {
    public ResponseVO<Object> getLedPlayerEntityList(@RequestParam(required = false, value = "keyword") String keyword) {
        List<LedPlayerEntity> list = SpringContextHolder.getBean(LedPlayerEntityService.class).
                ledPlayerEntityList(null, null, null, null);
                ledPlayerEntityListOnBinding(keyword);
        List<Map> mapList = new ArrayList<>();
        Map map;
@@ -168,8 +168,8 @@
    private final LEDProgramService ledProgramService;
    @GetMapping("/getNledProgeamList")
    public ResponseVO<Object> getNledProgeamList() {
        List<LEDProgram> ledPrograms = ledProgramService.listProgram(null, null, null, null);
    public ResponseVO<Object> getNledProgeamList(@RequestParam(required = false, value = "keyword") String keyword) {
        List<LEDProgram> ledPrograms = ledProgramService.listProgramOnBinding(keyword);
        List<Map> mapList = new ArrayList<>();
        Map map;
        for (LEDProgram bean : ledPrograms) {
@@ -190,8 +190,8 @@
    private final PoleLightemitService sLedService;
    @GetMapping("/getSledList")
    public ResponseVO<Object> getSledList() {
        List<PoleLightemitEntity> poleLightemitEntities = sLedService.listLed(null, null, null, false);
    public ResponseVO<Object> getSledList(@RequestParam(required = false, value = "keyword") String keyword) {
        List<PoleLightemitEntity> poleLightemitEntities = sLedService.listLedOnBinding(keyword);
        List<Map> mapList = new ArrayList<>();
        Map map;
        for (PoleLightemitEntity bean : poleLightemitEntities) {