| | |
| | | package com.sandu.ximon.admin.controller; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | 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 org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Author liuhaonan |
| | |
| | | if(StrUtil.isNotBlank(keyword)){ |
| | | wrapper.like(PlayPlanNv::getName,keyword); |
| | | } |
| | | return ResponseUtil.successPage(playPlanNvService.list(wrapper)); |
| | | List<PlayPlanNv> list = playPlanNvService.list(wrapper); |
| | | //PlayPlanParam param=new PlayPlanParam(); |
| | | list.forEach(plan->{ |
| | | plan.setPlan(JSON.parseObject(plan.getSchedule(), Map.class)); |
| | | }); |
| | | return ResponseUtil.successPage(list); |
| | | } |
| | | |
| | | } |