From d30017df796e4e4aef20f320f3c27d90ba8cbeff Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Fri, 26 Jun 2026 08:43:01 +0800
Subject: [PATCH] 修改

---
 hazmat-admin/src/main/java/com/gkhy/hazmat/admin/controller/web/HzEntryRecordController.java |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 59 insertions(+), 0 deletions(-)

diff --git a/hazmat-admin/src/main/java/com/gkhy/hazmat/admin/controller/web/HzEntryRecordController.java b/hazmat-admin/src/main/java/com/gkhy/hazmat/admin/controller/web/HzEntryRecordController.java
index 2bbe4a1..5002235 100644
--- a/hazmat-admin/src/main/java/com/gkhy/hazmat/admin/controller/web/HzEntryRecordController.java
+++ b/hazmat-admin/src/main/java/com/gkhy/hazmat/admin/controller/web/HzEntryRecordController.java
@@ -4,6 +4,7 @@
 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;
@@ -85,4 +86,62 @@
         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));
+    }
+
+
+
 }

--
Gitblit v1.9.2