From ed628d49e9d0cb948e314db8d9bed20088991dc5 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期四, 08 十二月 2022 13:45:17 +0800 Subject: [PATCH] # --- src/main/java/com/zy/common/service/erp/ErpController.java | 10 ++++++++++ src/main/java/com/zy/common/service/erp/ErpService.java | 20 ++++++++++++++++++++ 2 files changed, 30 insertions(+), 0 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 index 324abd2..2a43b0a 100644 --- a/src/main/java/com/zy/common/service/erp/ErpController.java +++ b/src/main/java/com/zy/common/service/erp/ErpController.java @@ -22,4 +22,14 @@ return R.ok().add(erpService.selectGoods(0)); } + @GetMapping("/voucher/list") + public R voucherList() { + return R.ok().add(erpService.selectVoucher(0)); + } + + @GetMapping("/voucherDetail/list") + public R voucherDetailList() { + return R.ok().add(erpService.selectVoucherDetail(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 b6317b7..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,6 +1,8 @@ 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; @@ -31,5 +33,23 @@ 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