自动化立体仓库 - WMS系统
#
luxiaotao1123
2022-12-08 b9bcd8b66f99d4fae15ae6e2e9fad63c0f415050
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.zy.common.service.erp;
 
import com.zy.common.service.erp.entity.Goods;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * Created by vincent on 2020/11/27
 */
@Slf4j
@Service
public class ErpService {
 
    @Autowired
    private ErpSqlServer erpSqlServer;
    @Autowired
    private JdbcTemplate jdbcTemplate;
 
    //////////////////////成品、原材料入库通知单数据提取//////////////////////////////////////////////////
 
    /**
     * 获取GOODS表
     */
    public List<Goods> selectGoods(Integer IsGetData) {
//        String sql = "select * from Goods where IsGetData = '" + IsGetData +"'";
        String sql = "select * from Goods where 1=1";
        return erpSqlServer.select(sql, Goods.class);
    }
 
 
}