| | |
| | | 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 |
| | |
| | | |
| | | |
| | | 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); |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | } |