From b9bcd8b66f99d4fae15ae6e2e9fad63c0f415050 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 08 十二月 2022 13:27:21 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/common/service/erp/ErpService.java | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
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..b6317b7 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,9 +25,9 @@
/**
* 鑾峰彇GOODS琛�
*/
- @GetMapping("erp/goods/list")
public List<Goods> selectGoods(Integer IsGetData) {
- String sql = "select * from InStockBillEntry where IsGetData = '" + IsGetData +"'";
+// String sql = "select * from Goods where IsGetData = '" + IsGetData +"'";
+ String sql = "select * from Goods where 1=1";
return erpSqlServer.select(sql, Goods.class);
}
--
Gitblit v1.9.1