package org.jeecg.modules.mdc.controller;
|
|
/**
|
* @Author: Lius
|
* @CreateTime: 2025-05-14
|
* @Description:
|
*/
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import lombok.extern.slf4j.Slf4j;
|
import org.jeecg.common.api.vo.Result;
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
import org.jeecg.common.system.base.controller.JeecgController;
|
import org.jeecg.modules.mdc.entity.MdcEquipmentDaySchedule;
|
import org.jeecg.modules.mdc.service.IMdcEquipmentDayScheduleService;
|
import org.jeecg.modules.mdc.vo.MdcEquipmentDayScheduleVo;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.annotation.Resource;
|
import javax.servlet.http.HttpServletRequest;
|
|
@Slf4j
|
@Api(tags = "设备日计划")
|
@RestController
|
@RequestMapping("/mdc/mdcEquipmentOverFla")
|
public class MdcEquipmentDayScheduleController extends JeecgController<MdcEquipmentDaySchedule, IMdcEquipmentDayScheduleService> {
|
|
@Resource
|
private IMdcEquipmentDayScheduleService mdcEquipmentDayScheduleService;
|
|
/**
|
* 分页列表查询
|
*
|
* @param mdcEquipmentDayScheduleVo
|
* @param pageNo
|
* @param pageSize
|
* @param req
|
* @return
|
*/
|
@AutoLog(value = "设备日计划-分页列表查询")
|
@ApiOperation(value = "设备日计划-分页列表查询", notes = "设备日计划-分页列表查询")
|
@GetMapping(value = "/list")
|
public Result<?> queryPageList(MdcEquipmentDayScheduleVo mdcEquipmentDayScheduleVo,
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
HttpServletRequest req) {
|
Page<MdcEquipmentDaySchedule> page = new Page<MdcEquipmentDaySchedule>(pageNo, pageSize);
|
IPage<MdcEquipmentDaySchedule> pageList = mdcEquipmentDayScheduleService.pageList(mdcEquipmentDayScheduleVo, page);
|
return Result.OK(pageList);
|
}
|
}
|