From 64d57a08fee43ab838e53b432806cac6614afda0 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期四, 08 十二月 2022 13:47:46 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/common/service/erp/ErpService.java |   27 ++++++++++++++++++++++-----
 1 files changed, 22 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..6cea27b 100644
--- a/src/main/java/com/zy/common/service/erp/ErpService.java
+++ b/src/main/java/com/zy/common/service/erp/ErpService.java
@@ -1,12 +1,12 @@
 package com.zy.common.service.erp;
 
 import com.zy.common.service.erp.entity.Goods;
+import com.zy.common.service.erp.entity.Voucher;
+import com.zy.common.service.erp.entity.VoucherDetail;
 import lombok.extern.slf4j.Slf4j;
 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 +15,6 @@
  */
 @Slf4j
 @Service
-@RestController
 public class ErpService {
 
     @Autowired
@@ -28,11 +27,29 @@
     /**
      * 鑾峰彇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);
     }
 
+    /**
+     * 鑾峰彇Voucher琛�
+     */
+    public List<Voucher> selectVoucher(Integer IsGetData) {
+//        String sql = "select * from Goods where IsGetData = '" + IsGetData +"'";
+        String sql = "select * from Voucher where 1=1";
+        return erpSqlServer.select(sql, Voucher.class);
+    }
+
+    /**
+     * 鑾峰彇VoucherDetail琛�
+     */
+    public List<VoucherDetail> selectVoucherDetail(Integer IsGetData) {
+//        String sql = "select * from Goods where IsGetData = '" + IsGetData +"'";
+        String sql = "select * from VoucherDetail where 1=1";
+        return erpSqlServer.select(sql, VoucherDetail.class);
+    }
+
 
 }

--
Gitblit v1.9.1