| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得产品SIP") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item:query')") |
| | | public CommonResult<MesMdProductSipRespVO> getProductSip(@RequestParam("id") Long id) { |
| | | MesMdProductSipDO sip = productSipService.getProductSip(id); |
| | | return success(BeanUtils.toBean(sip, MesMdProductSipRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得产品SIP分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item:query')") |
| | | public CommonResult<PageResult<MesMdProductSipRespVO>> getProductSipPage(@Valid MesMdProductSipPageReqVO pageReqVO) { |
| | | PageResult<MesMdProductSipDO> pageResult = productSipService.getProductSipPage(pageReqVO); |
| | | // TODO @芋艿:工序模块实现后,补充 processCode/processName 的 JOIN 逻辑 |
| | |
| | | @GetMapping("/list-by-item-id") |
| | | @Operation(summary = "根据物料产品编号,获得产品SIP列表") |
| | | @Parameter(name = "itemId", description = "物料产品编号", required = true, example = "69") |
| | | @PreAuthorize("@ss.hasPermission('mes:md-item:query')") |
| | | public CommonResult<List<MesMdProductSipRespVO>> getProductSipListByItemId( |
| | | @RequestParam("itemId") Long itemId) { |
| | | List<MesMdProductSipDO> list = productSipService.getProductSipListByItemId(itemId); |