| | |
| | | import com.gkhy.hazmat.common.annotation.RepeatSubmit; |
| | | import com.gkhy.hazmat.common.api.CommonResult; |
| | | import com.gkhy.hazmat.system.domain.HzEntryRecord; |
| | | import com.gkhy.hazmat.system.domain.HzHazmat; |
| | | import com.gkhy.hazmat.system.service.HzEntryRecordService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | return CommonResult.success(entryRecordService.deleteEntryRecordById(entryRecordId)); |
| | | } |
| | | |
| | | |
| | | @PreAuthorize("hasAnyAuthority('hazmat:manage:company','hazmat:manage:common')") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "新增订单入库记录") |
| | | @PostMapping("/orderadd") |
| | | public CommonResult orderadd(@Validated @RequestBody HzEntryRecord entryRecord){ |
| | | return CommonResult.success(entryRecordService.insertOrderEntryRecord(entryRecord)); |
| | | } |
| | | |
| | | @PreAuthorize("hasAnyAuthority('hazmat:manage:company','hazmat:manage:common')") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "编辑订单入库记录") |
| | | @PutMapping("/orderedit") |
| | | public CommonResult orderedit(@Validated @RequestBody HzEntryRecord entryRecord){ |
| | | return CommonResult.success(entryRecordService.updateOrderEntryRecord(entryRecord)); |
| | | } |
| | | |
| | | @PreAuthorize("hasAnyAuthority('hazmat:manage:company','hazmat:manage:common')") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "删除订单入库记录") |
| | | @DeleteMapping(value = { "order/{entryRecordId}" }) |
| | | public CommonResult orderdelete(@PathVariable(value = "entryRecordId", required = true) Long entryRecordId){ |
| | | return CommonResult.success(entryRecordService.deleteOrderEntryRecordById(entryRecordId)); |
| | | } |
| | | |
| | | |
| | | @PreAuthorize("hasAnyAuthority('hazmat:manage:company','hazmat:manage:common')") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "订单入库") |
| | | @PostMapping("/orderEntry/{entryRecordId}") |
| | | public CommonResult orderEntry(@PathVariable(value = "entryRecordId", required = true) Long entryRecordId){ |
| | | entryRecordService.orderEntry(entryRecordId); |
| | | return CommonResult.success(); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "订单入库记录列表(分页)") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10") |
| | | }) |
| | | @GetMapping("/orderlist") |
| | | public CommonResult orderlist(HzEntryRecord entryRecord){ |
| | | return CommonResult.success(entryRecordService.selectOrderEntryRecordList(entryRecord)); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据订单入库id分页查询详情列表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"), |
| | | }) |
| | | @GetMapping("order/hazmatlist") |
| | | public CommonResult orderhazmatlist(HzHazmat hzHazmat){ |
| | | return CommonResult.success(entryRecordService.selectOrderHazmatListByEntryId(hzHazmat)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |