| | |
| | | package com.sandu.ximon.admin.controller; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.pagehelper.PageHelper; |
| | |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author liuhaonan |
| | |
| | | return ResponseUtil.success(playPlanNvService.updatePlan(planId, param)); |
| | | } |
| | | |
| | | @PostMapping("/delete/{plianId}") |
| | | public ResponseVO<Object> deleteLEDPlan(@PathVariable Long plianId) { |
| | | return ResponseUtil.success(playPlanNvService.deletePlan(plianId)); |
| | | @PostMapping("/delete") |
| | | public ResponseVO<Object> deleteLEDPlan(@RequestBody List<Long> plianIds) { |
| | | return ResponseUtil.success(playPlanNvService.deletePlan(plianIds)); |
| | | } |
| | | |
| | | @PostMapping("/push/{plianId}") |
| | | public ResponseVO<Object> pushToLed(@PathVariable Long plianId) { |
| | | return ResponseUtil.success(playPlanNvService.pushToLed(plianId)); |
| | | public ResponseVO<Object> pushToLed(@PathVariable Long plianId,@RequestBody List<String> playerIds) { |
| | | return ResponseUtil.success(playPlanNvService.pushToLed(plianId,playerIds)); |
| | | } |
| | | @GetMapping("/listPlan") |
| | | public ResponseVO<Object> list(BaseConditionVO baseConditionVO, @RequestParam(value = "keyword", required = false) String keyword) { |
| | |
| | | wrapper= Wrappers.lambdaQuery(PlayPlanNv.class).eq(PlayPlanNv::getUserId,SecurityUtils.getUserId()); |
| | | } |
| | | wrapper=Wrappers.lambdaQuery(PlayPlanNv.class); |
| | | if(null!=keyword){ |
| | | if(StrUtil.isNotBlank(keyword)){ |
| | | wrapper.like(PlayPlanNv::getName,keyword); |
| | | } |
| | | return ResponseUtil.successPage(playPlanNvService.list(wrapper)); |