| | |
| | | package com.sandu.ximon.admin.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.sandu.common.domain.ResponseVO; |
| | | import com.sandu.common.object.BaseConditionVO; |
| | | import com.sandu.common.util.ResponseUtil; |
| | | import com.sandu.ximon.admin.param.PlayPlanParam; |
| | | import com.sandu.ximon.admin.service.PlayPlanNvService; |
| | | import com.sandu.ximon.dao.domain.PlayPlanNv; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | return ResponseUtil.success(playPlanNvService.pushToLed(plianId)); |
| | | } |
| | | @GetMapping("/listPaln") |
| | | public ResponseVO<Object> list() { |
| | | return ResponseUtil.success(playPlanNvService.list()); |
| | | public ResponseVO<Object> list(BaseConditionVO baseConditionVO, @RequestParam(value = "keyword", required = false) String keyword) { |
| | | PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize()); |
| | | LambdaQueryWrapper<PlayPlanNv> wrapper = Wrappers.lambdaQuery(PlayPlanNv.class); |
| | | if(null!=keyword){ |
| | | wrapper.like(PlayPlanNv::getName,keyword); |
| | | } |
| | | return ResponseUtil.successPage(playPlanNvService.list(wrapper)); |
| | | } |
| | | |
| | | } |