| | |
| | | import com.vincent.rsf.server.common.domain.BaseParam; |
| | | import com.vincent.rsf.server.common.domain.KeyValVo; |
| | | import com.vincent.rsf.server.common.domain.PageParam; |
| | | import com.vincent.rsf.server.manager.controller.params.IsptOrderParam; |
| | | import com.vincent.rsf.server.manager.controller.params.QlyInspectAndItem; |
| | | import com.vincent.rsf.server.manager.entity.QlyInspect; |
| | | import com.vincent.rsf.server.manager.service.QlyInspectService; |
| | |
| | | return R.ok(qlyInspectService.listByAsn(map)); |
| | | } |
| | | |
| | | @PostMapping("/qlyInspect/asn/list") |
| | | @ApiOperation("获取待质检单") |
| | | @PreAuthorize("hasAuthority('manager:qlyInspect:list')") |
| | | public R getUnInspect(@RequestBody Map<String, Object> map) { |
| | | if (Objects.isNull(map)) { |
| | | return R.error("参数不能为空!!"); |
| | | } |
| | | return R.ok(qlyInspectService.getUnInspect(map)); |
| | | } |
| | | |
| | | @PostMapping("/qlyInspect/selected") |
| | | @ApiOperation("选择质检单据") |
| | | @PreAuthorize("hasAuthority('manager:qlyInspect:update')") |
| | | public R selectedOrder(@RequestBody IsptOrderParam param) { |
| | | if (Objects.isNull(param)) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | Long loginUserId = getLoginUserId(); |
| | | return qlyInspectService.saveSelected(param, loginUserId); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:qlyInspect:list')") |
| | | @PostMapping("/qlyInspect/list") |
| | | public R list(@RequestBody Map<String, Object> map) { |
| | |
| | | @PostMapping("/qlyInspect/save") |
| | | public R save(@RequestBody QlyInspect qlyInspect) { |
| | | qlyInspect.setCreateBy(getLoginUserId()); |
| | | qlyInspect.setCreateTime(new Date()); |
| | | qlyInspect.setUpdateBy(getLoginUserId()); |
| | | qlyInspect.setUpdateTime(new Date()); |
| | | if (!qlyInspectService.save(qlyInspect)) { |
| | | return R.error("Save Fail"); |
| | | } |