| | |
| | | public class LEDProgramService extends BaseServiceImpl<LEDProgramMapper, LEDProgram> { |
| | | |
| | | |
| | | |
| | | public boolean addProgram(LEDProgramParam receiveParam) { |
| | | |
| | | LEDProgram led = new LEDProgram(); |
| | |
| | | |
| | | |
| | | public LambdaQueryWrapper<LEDProgram> listProgram() { |
| | | if (SecurityUtils.getClientId() != null) { |
| | | return Wrappers.lambdaQuery(LEDProgram.class).eq(LEDProgram::getUserId, SecurityUtils.getClientId()); |
| | | } else { |
| | | if (SecurityUtils.getClientId() == null) { |
| | | return Wrappers.lambdaQuery(LEDProgram.class); |
| | | } else { |
| | | return Wrappers.lambdaQuery(LEDProgram.class).eq(LEDProgram::getUserId, SecurityUtils.getUserId()) |
| | | .or(w -> { |
| | | w.eq(LEDProgram::getClientId, SecurityUtils.getClientId()); |
| | | }); |
| | | } |
| | | } |
| | | |
| | | } |