| | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.sandu.common.execption.BusinessException; |
| | | import com.sandu.common.object.BaseConditionVO; |
| | | import com.sandu.common.service.impl.BaseServiceImpl; |
| | | import com.sandu.ximon.admin.param.LEDProgramParam; |
| | | import com.sandu.ximon.admin.security.SecurityUtils; |
| | |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | |
| | | return param; |
| | | } |
| | | |
| | | public List<LEDProgram> listProgram(BaseConditionVO baseConditionVO, String keyword) { |
| | | LambdaQueryWrapper<LEDProgram> wrapper = listPrograms(); |
| | | if (baseConditionVO != null) { |
| | | PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize()); |
| | | } |
| | | if (keyword != null && !keyword.isEmpty()) { |
| | | wrapper.like(LEDProgram::getName, keyword); |
| | | } |
| | | return list(wrapper); |
| | | } |
| | | |
| | | public LambdaQueryWrapper<LEDProgram> listProgram() { |
| | | |
| | | public LambdaQueryWrapper<LEDProgram> listPrograms() { |
| | | if (SecurityUtils.getClientId() == null) { |
| | | return Wrappers.lambdaQuery(LEDProgram.class); |
| | | } else { |