| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.common.security.service.TokenService; |
| | | import com.ruoyi.management.domain.SlAudit; |
| | | import com.ruoyi.management.domain.SlAuditRecord; |
| | | import com.ruoyi.management.domain.SlVolumeProductionRkgl; |
| | |
| | | @Resource |
| | | private SlVolumeProductionRkglService slVolumeProductionRkglService; |
| | | |
| | | |
| | | @Resource |
| | | private TokenService tokenService; |
| | | @Resource |
| | | private SlAuditMapper slAuditMapper; |
| | | @Resource |
| | |
| | | @PostMapping("/getSupplierVolumeProductionRkglList") |
| | | @ApiOperation(value = "分页获取供应商关联入库") |
| | | public R<PageDTO<SupplierVolumeProductionRkglVO>> getSupplierVolumeProductionRkglList(@RequestBody SupplierVolumeProductionRkglQuery supplierVolumeProductionRkglQuery) { |
| | | tokenService.getLoginUser(); |
| | | return R.ok(slVolumeProductionRkglService.getSupplierVolumeProductionRkglList(supplierVolumeProductionRkglQuery)); |
| | | } |
| | | |
| | | @GetMapping("/getVolumeProductionRkgInfo/{id}") |
| | | @ApiOperation(value = "获取入库管理详情") |
| | | public R<VolumeProductionRkgInfoVO> getVolumeProductionRkgInfo(@ApiParam(name = "id", value = "入库管理id", required = true) @PathVariable("id") Long id) { |
| | | tokenService.getLoginUser(); |
| | | return R.ok(slVolumeProductionRkglService.getVolumeProductionRkgInfo(id)); |
| | | } |
| | | |
| | | @PostMapping("/getslVolumeProductionRkglList") |
| | | @ApiOperation(value = "分页获取入库管理") |
| | | public R<PageDTO<SupplierVolumeProductionRkglVO>> getslVolumeProductionRkglList(@RequestBody getVolumeProductionRkQuery getVolumeProductionRkQuery) { |
| | | tokenService.getLoginUser(); |
| | | return R.ok(slVolumeProductionRkglService.getslVolumeProductionRkglList(getVolumeProductionRkQuery)); |
| | | } |
| | | |
| | |
| | | @PostMapping("/addVolumeProductionRkgl") |
| | | @ApiOperation(value = "添加/修改入库管理") |
| | | public R<Long> addVolumeProductionRkgl(@RequestBody VolumeProductionRkglDTO volumeProductionRkglDTO) { |
| | | |
| | | tokenService.getLoginUser(); |
| | | return R.ok(slVolumeProductionRkglService.addVolumeProductionRkgl(volumeProductionRkglDTO)); |
| | | } |
| | | |
| | |
| | | @GetMapping("/{id}") |
| | | public R<?> delStoreManagement( |
| | | @ApiParam(name = "id", value = "入库管理id", required = true) @PathVariable("id") Long id) { |
| | | tokenService.getLoginUser(); |
| | | SlVolumeProductionRkgl byId = slVolumeProductionRkglService.getById(id); |
| | | byId.setPresentState(5); |
| | | byId.setAuditStatus(7); |
| | |
| | | @GetMapping("/getVolumeProductionRkgInventory/{id}") |
| | | @ApiOperation(value = "获取入库管理打印清单") |
| | | public R<VolumeProductionRkgInventoryVO> getVolumeProductionRkgInventory(@ApiParam(name = "id", value = "入库管理id", required = true) @PathVariable("id") Long id) { |
| | | tokenService.getLoginUser(); |
| | | return R.ok(slVolumeProductionRkglService.getVolumeProductionRkgInventory(id)); |
| | | } |
| | | |
| | | @ApiOperation("入库管理入库") |
| | | @GetMapping("/rk/{id}") |
| | | public R<?> rk(@ApiParam(name = "id", value = "入库管理id", required = true) @PathVariable("id") Long id) { |
| | | tokenService.getLoginUser(); |
| | | slVolumeProductionRkglService.rk(id); |
| | | return R.ok(); |
| | | } |