From b9dfde3882128f8d7afaeba714b8f14ec8d482cf Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期四, 08 十二月 2022 13:14:51 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/common/service/erp/ErpController.java | 25 +++++++++++++++++++++++++
src/main/java/com/zy/common/service/erp/ErpService.java | 4 ----
2 files changed, 25 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/zy/common/service/erp/ErpController.java b/src/main/java/com/zy/common/service/erp/ErpController.java
new file mode 100644
index 0000000..8a6ab28
--- /dev/null
+++ b/src/main/java/com/zy/common/service/erp/ErpController.java
@@ -0,0 +1,25 @@
+package com.zy.common.service.erp;
+
+import com.core.common.R;
+import com.zy.common.web.BaseController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * Created by vincent on 2022/12/8
+ */
+@RequestMapping("/erp")
+@RestController
+public class ErpController extends BaseController {
+
+ @Autowired
+ private ErpService erpService;
+
+ @GetMapping("erp/goods/list")
+ public R goodsList() {
+ return R.ok().add(erpService.selectGoods(0));
+ }
+
+}
diff --git a/src/main/java/com/zy/common/service/erp/ErpService.java b/src/main/java/com/zy/common/service/erp/ErpService.java
index a9bd9ce..e53f51b 100644
--- a/src/main/java/com/zy/common/service/erp/ErpService.java
+++ b/src/main/java/com/zy/common/service/erp/ErpService.java
@@ -5,8 +5,6 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@@ -15,7 +13,6 @@
*/
@Slf4j
@Service
-@RestController
public class ErpService {
@Autowired
@@ -28,7 +25,6 @@
/**
* 鑾峰彇GOODS琛�
*/
- @GetMapping("erp/goods/list")
public List<Goods> selectGoods(Integer IsGetData) {
String sql = "select * from InStockBillEntry where IsGetData = '" + IsGetData +"'";
return erpSqlServer.select(sql, Goods.class);
--
Gitblit v1.9.1