| | |
| | | import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT; |
| | | import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
| | | |
| | | /** |
| | | * MES 杂项入库单 Controller |
| | | * |
| | | * @author 芋道源码 |
| | | */ |
| | | @Tag(name = "管理后台 - MES 杂项入库单") |
| | | @RestController |
| | | @RequestMapping("/mes/wm/misc-receipt") |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得杂项入库单") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm:misc-receipt:query')") |
| | | public CommonResult<MesWmMiscReceiptRespVO> getMiscReceipt(@RequestParam("id") Long id) { |
| | | MesWmMiscReceiptDO receipt = miscReceiptService.getMiscReceipt(id); |
| | | return success(BeanUtils.toBean(receipt, MesWmMiscReceiptRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得杂项入库单分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm:misc-receipt:query')") |
| | | public CommonResult<PageResult<MesWmMiscReceiptRespVO>> getMiscReceiptPage(@Valid MesWmMiscReceiptPageReqVO pageReqVO) { |
| | | PageResult<MesWmMiscReceiptDO> pageResult = miscReceiptService.getMiscReceiptPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesWmMiscReceiptRespVO.class)); |