2021与蓝度共同重构项目,服务端
chenjiantian
2021-12-17 bdd0c41e7a022604d8c1cfd03559dfbc65481366
ximon-admin/src/main/java/com/sandu/ximon/admin/service/LEDProgramService.java
@@ -9,6 +9,7 @@
import com.sandu.ximon.dao.domain.LEDProgram;
import com.sandu.ximon.dao.mapper.LEDProgramMapper;
import lombok.AllArgsConstructor;
import nova.traffic.utils.NovaTraffic;
import org.springframework.stereotype.Service;
@Service
@@ -62,20 +63,27 @@
    public LambdaQueryWrapper<LEDProgram> listProgram() {
        LambdaQueryWrapper<LEDProgram> wrapper= new LambdaQueryWrapper<>();
       // LambdaQueryWrapper<LEDProgram> wrapper= new LambdaQueryWrapper<>();
       /* if(SecurityUtils.getClientId()!=null){
            return list(Wrappers.lambdaQuery(LEDProgram.class).eq(LEDProgram::getUserId, SecurityUtils.getClientId()));
        }else {
            return list(Wrappers.lambdaQuery(LEDProgram.class));
        }*/
        if(SecurityUtils.getClientId()!=null){
          return   wrapper=Wrappers.lambdaQuery(LEDProgram.class).eq(LEDProgram::getUserId,SecurityUtils.getClientId());
          return   Wrappers.lambdaQuery(LEDProgram.class).eq(LEDProgram::getUserId,SecurityUtils.getClientId());
        }else {
          return   wrapper=Wrappers.lambdaQuery(LEDProgram.class);
          return   Wrappers.lambdaQuery(LEDProgram.class);
        }
    }
    public void NovaTraffic(String ip, int port){
        NovaTraffic novaTraffic = new NovaTraffic("192.168.0.220", 5000);
    }
}