From c9ece26e4c13b973a49e1639c9262aa054ba32c0 Mon Sep 17 00:00:00 2001
From: chen.lin <1442464845@qq.com>
Date: 星期二, 03 二月 2026 18:07:24 +0800
Subject: [PATCH] bug2 preferenceKey 会将用户偏好保存到 localStorage 导致某些数据库没有此字段报错 比如 sort
---
rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsErpController.java | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsErpController.java b/rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsErpController.java
index 011fa3f..ffdf7de 100644
--- a/rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsErpController.java
+++ b/rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsErpController.java
@@ -1,11 +1,11 @@
package com.vincent.rsf.openApi.controller;
-
-
import com.vincent.rsf.framework.exception.CoolException;
import com.vincent.rsf.openApi.entity.dto.CommonResponse;
import com.vincent.rsf.openApi.entity.params.ErpMatnrParms;
import com.vincent.rsf.openApi.entity.params.ErpOpParams;
+import com.vincent.rsf.openApi.entity.params.ReportParams;
import com.vincent.rsf.openApi.service.WmsErpService;
+import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
@@ -13,10 +13,12 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
+import java.util.Map;
import java.util.Objects;
@RestController
@RequestMapping("/erp")
+@Api("ERP鎺ュ彛瀵规帴")
public class WmsErpController {
@Autowired
@@ -92,4 +94,19 @@
}
+ @ApiOperation("璁㈠崟淇℃伅涓婃姤")
+ @PostMapping("/report/order")
+ public CommonResponse reportOrders(@RequestBody ReportParams params) {
+ if (Objects.isNull(params)) {
+ throw new CoolException("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+ }
+ return wmsErpService.reportOrders(params);
+ }
+
+ @ApiOperation("鐩樼偣宸紓淇敼")
+ @PostMapping("/check/locitem/update")
+ public CommonResponse reportCheck(@RequestBody ReportParams params) {
+ return wmsErpService.reportCheck(params);
+ }
+
}
--
Gitblit v1.9.1