| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | 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.*; |
| | | import com.ruoyi.management.domain.dto.*; |
| | | import com.ruoyi.management.domain.vo.*; |
| | |
| | | |
| | | @Resource |
| | | private SlAuditMapper slAuditMapper; |
| | | |
| | | @Resource |
| | | private TokenService tokenService; |
| | | @Resource |
| | | private SlVolumeProductionZyglService slVolumeProductionZyglService; |
| | | @Resource |
| | |
| | | @PostMapping("/getVolumeProductionZyglCode") |
| | | @ApiOperation(value = "获取转移管理打印二维码列表") |
| | | public R<PageDTO<getVolumeProductionRkgCodeVO>> getVolumeProductionRkgCode(@RequestBody VolumeProductionZyglCodeQuery volumeProductionRkgCodeQuery) { |
| | | tokenService.getLoginUser(); |
| | | // 通过转移管理获取 转移列表 获取入库id |
| | | Page<SlVolumeProductionZy> page = new Page<>(volumeProductionRkgCodeQuery.getPageCurr(), volumeProductionRkgCodeQuery.getPageSize()); |
| | | LambdaQueryWrapper< SlVolumeProductionZy> wrapper1= Wrappers.lambdaQuery(); |
| | | wrapper1.eq(SlVolumeProductionZy::getZyglId,volumeProductionRkgCodeQuery.getVolumeProductionZyglId()); |
| | | wrapper1.eq( SlVolumeProductionZy::getDelFlag,"0"); |
| | | if (volumeProductionRkgCodeQuery.getManagementNumber() != null){ |
| | | if (volumeProductionRkgCodeQuery.getShelfId() != null){ |
| | | wrapper1.eq(SlVolumeProductionZy::getShelfId,volumeProductionRkgCodeQuery.getShelfId()); |
| | | } |
| | | if (volumeProductionRkgCodeQuery.getManagementNumber() != null){ |
| | |
| | | @PostMapping("/updateQrCodeNum") |
| | | @ApiOperation(value = "批量修改转移二维码生成数量") |
| | | public R updateQrCodeNum(@RequestBody UpdateZyQrCodeDTO dto) { |
| | | tokenService.getLoginUser(); |
| | | for (UpdateQrCodeNumDTO updateQrCodeNumDTO : dto.getList()) { |
| | | SlVolumeProductionZy byId = slVolumeProductionZyService.getById(updateQrCodeNumDTO.getId()); |
| | | if (byId == null){ |
| | |
| | | @PostMapping("/getVolumeProductionzZyglList") |
| | | @ApiOperation(value = "分页获取转移管理") |
| | | public R<PageDTO<VolumeProductionzZyglVO>> getVolumeProductionzZyglList(@RequestBody SlVolumeProductionZyQuery slVolumeProductionZyQuery) { |
| | | tokenService.getLoginUser(); |
| | | return R.ok(slVolumeProductionZyglService.getVolumeProductionzZyglList(slVolumeProductionZyQuery)); |
| | | } |
| | | |
| | | @PostMapping("/addsVolumeProductionzZygl") |
| | | @ApiOperation(value = "添加/修改转移管理") |
| | | public R addsVolumeProductionzZygl(@RequestBody SlVolumeProductionZyDTO slVolumeProductionZyDTO) { |
| | | |
| | | tokenService.getLoginUser(); |
| | | return R.ok(slVolumeProductionZyglService.addsVolumeProductionzZygl(slVolumeProductionZyDTO)); |
| | | } |
| | | |
| | | @PostMapping("/getVolumeProductionzZyglnfo") |
| | | @ApiOperation(value = "获取转移管理详情") |
| | | public R<VolumeProductionZyglInfoVO> getVolumeProductionzZyglnfo(@RequestBody ManagementimgVolumeProductionZyQuery managementimgVolumeProductionZyQuery) { |
| | | tokenService.getLoginUser(); |
| | | return R.ok(slVolumeProductionZyglService.getVolumeProductionzZyglnfo(managementimgVolumeProductionZyQuery)); |
| | | } |
| | | |
| | | @GetMapping("/getVolumeProductionZyglnventory/{id}") |
| | | @ApiOperation(value = "获取转移管理打印清单") |
| | | public R<VolumeProductionZyglInventoryVO> getVolumeProductionZyglnventory(@ApiParam(name = "id", value = "转移管理id", required = true) @PathVariable("id") String id) { |
| | | tokenService.getLoginUser(); |
| | | return R.ok(slVolumeProductionZyglService.getVolumeProductionZyglnventory(id)); |
| | | } |
| | | |
| | |
| | | @GetMapping("/{id}") |
| | | public R<?> delStoreManagement( |
| | | @ApiParam(name = "id", value = "转移管理id", required = true) @PathVariable("id") Long id) { |
| | | tokenService.getLoginUser(); |
| | | SlVolumeProductionZygl byId = slVolumeProductionZyglService.getById(id); |
| | | byId.setPresentState(5); |
| | | byId.setAuditStatus(7); |
| | |
| | | @ApiOperation("转移管理入库") |
| | | @PostMapping("/zy") |
| | | public R<?> zy(@RequestBody ZyRkDTO dto) { |
| | | tokenService.getLoginUser(); |
| | | slVolumeProductionZyglService.zy(dto.getCkglId(),dto.getAuthorizationUrl()); |
| | | return R.ok(); |
| | | } |
| | |
| | | @ApiOperation("查询审核拒绝原因") |
| | | @GetMapping("/getRefuseReason") |
| | | public R<?> getRefuseReason(Long auditId) { |
| | | tokenService.getLoginUser(); |
| | | SlAudit byId = slAuditRecordService.getById(auditId); |
| | | return R.ok(byId.getCause()); |
| | | } |