| New file |
| | |
| | | package cn.gistack.sm.sjztmd.controller; |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.AttWmstBase; |
| | | import cn.gistack.sm.sjztmd.service.IAttWmstBaseService; |
| | | import cn.gistack.sm.sjztmd.vo.AttWmstBaseVO; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import io.swagger.annotations.Api; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | |
| | | @Slf4j |
| | | @Api(tags = "视频") |
| | | @RestController |
| | | @RequestMapping("/sjztmd/attWmstBase") |
| | | @AllArgsConstructor |
| | | public class AttWmstBaseController { |
| | | private final IAttWmstBaseService attWmstBaseService; |
| | | |
| | | @GetMapping("/getPage") |
| | | public R getPage(Query query , AttWmstBaseVO attWmstBaseVO){ |
| | | IPage<AttWmstBaseVO> page = attWmstBaseService.getPage(Condition.getPage(query),attWmstBaseVO); |
| | | return R.data(page); |
| | | } |
| | | |
| | | @PostMapping("/update") |
| | | public R update(AttWmstBase attWmstBase){ |
| | | if (StringUtil.isBlank(attWmstBase.getGuid())) { |
| | | R.fail("参数不能为空!"); |
| | | } |
| | | boolean res = attWmstBaseService.customizeUpdate(attWmstBase); |
| | | return R.data(res); |
| | | } |
| | | |
| | | } |