| | |
| | | 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; |
| | |
| | | * 获取GOODS表 |
| | | */ |
| | | 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); |
| | | } |
| | | |
| | | |
| | | } |