| | |
| | | import org.jeecg.modules.mdc.service.IMdcProcessQuantityService; |
| | | |
| | | |
| | | import org.jeecg.modules.mdc.vo.MdcProcessQuantityVo; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import io.swagger.annotations.Api; |
| | |
| | | /** |
| | | * 分页列表查询 |
| | | * |
| | | * @param mdcProcessQuantity |
| | | * @param vo |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | |
| | | @AutoLog(value = "加工数量表-分页列表查询") |
| | | @ApiOperation(value = "加工数量表-分页列表查询", notes = "加工数量表-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(MdcProcessQuantity mdcProcessQuantity, |
| | | public Result<?> queryPageList(MdcProcessQuantityVo vo, |
| | | @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
| | | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | Page<MdcProcessQuantityDto> page = new Page<MdcProcessQuantityDto>(pageNo, pageSize); |
| | | IPage<MdcProcessQuantityDto> pageList = mdcProcessQuantityService.pageList(userId, page, mdcProcessQuantity, req); |
| | | IPage<MdcProcessQuantityDto> pageList = mdcProcessQuantityService.pageList(userId, page, vo, req); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | |
| | | * @param mdcProcessQuantity |
| | | */ |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, MdcProcessQuantity mdcProcessQuantity) { |
| | | public ModelAndView exportXls(HttpServletRequest request, MdcProcessQuantityVo mdcProcessQuantity) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | return mdcProcessQuantityService.exportXls(userId, mdcProcessQuantity); |