package org.jeecg.modules.lsw.controller;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
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.common.system.query.QueryGenerator;
|
import org.jeecg.modules.lsw.entity.LswMaterialOutbound;
|
import org.jeecg.modules.lsw.service.ILswMaterialOutboundService;
|
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;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
/**
|
* @Description: 物料出库单
|
* @Author: jeecg-boot
|
* @Date: 2025-06-30
|
* @Version: V1.0
|
*/
|
@Api(tags = "物料出库单")
|
@RestController
|
@RequestMapping("/lsw/materialOutbound")
|
@Slf4j
|
public class LswMaterialOutboundController extends JeecgController<LswMaterialOutbound, ILswMaterialOutboundService> {
|
@Autowired
|
private ILswMaterialOutboundService lswMaterialOutboundService;
|
|
/**
|
* 分页列表查询
|
*
|
* @param lswMaterialOutbound
|
* @param pageNo
|
* @param pageSize
|
* @param req
|
* @return
|
*/
|
@ApiOperation(value = "物料出库单-分页列表查询", notes = "物料出库单-分页列表查询")
|
@GetMapping(value = "/list")
|
public Result<IPage<LswMaterialOutbound>> queryPageList(LswMaterialOutbound lswMaterialOutbound,
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
HttpServletRequest req) {
|
QueryWrapper<LswMaterialOutbound> queryWrapper = QueryGenerator.initQueryWrapper(lswMaterialOutbound, req.getParameterMap());
|
Page<LswMaterialOutbound> page = new Page<LswMaterialOutbound>(pageNo, pageSize);
|
IPage<LswMaterialOutbound> pageList = lswMaterialOutboundService.page(page, queryWrapper);
|
return Result.OK(pageList);
|
}
|
|
}
|