package org.jeecg.modules.pms.controller;
|
|
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.system.base.controller.JeecgController;
|
import org.jeecg.modules.pms.entity.PmsMaterialProcess;
|
import org.jeecg.modules.pms.service.IPmsMaterialProcessService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
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;
|
|
/**
|
* @Description: 物料工序
|
* @Author: jeecg-boot
|
* @Date: 2025-07-01
|
* @Version: V1.0
|
*/
|
@Api(tags = "物料工序")
|
@RestController
|
@RequestMapping("/pms/materialProcess")
|
@Slf4j
|
public class PmsMaterialProcessController extends JeecgController<PmsMaterialProcess, IPmsMaterialProcessService> {
|
@Autowired
|
private IPmsMaterialProcessService pmsMaterialProcessService;
|
|
/**
|
* 分页列表查询
|
*
|
* @param query
|
* @param pageNo
|
* @param pageSize
|
* @return
|
*/
|
//@AutoLog(value = "物料工序-分页列表查询")
|
@ApiOperation(value = "物料工序-分页列表查询", notes = "物料工序-分页列表查询")
|
@GetMapping(value = "/list")
|
public Result<IPage<PmsMaterialProcess>> queryPageList(PmsMaterialProcess query,
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) {
|
Page<PmsMaterialProcess> page = new Page<PmsMaterialProcess>(pageNo, pageSize);
|
IPage<PmsMaterialProcess> pageList = pmsMaterialProcessService.queryPageList(page, query);
|
return Result.OK(pageList);
|
}
|
}
|