|  |  | 
 |  |  | 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 org.springframework.web.bind.annotation.GetMapping; | 
 |  |  | import org.springframework.web.bind.annotation.RestController; | 
 |  |  |  | 
 |  |  | import java.util.List; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * Created by vincent on 2020/11/27 | 
 |  |  |  */ | 
 |  |  | @Slf4j | 
 |  |  | @Service | 
 |  |  | @RestController | 
 |  |  | public class ErpService { | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  | 
 |  |  |  | 
 |  |  |     //////////////////////成品、原材料入库通知单数据提取////////////////////////////////////////////////// | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 获取GOODS表 | 
 |  |  |      */ | 
 |  |  |     @GetMapping("erp/goods/list") | 
 |  |  |     public List<Goods> selectGoods(Integer IsGetData) { | 
 |  |  |         String sql = "select * from InStockBillEntry where IsGetData = '" + IsGetData +"'"; | 
 |  |  |         return erpSqlServer.select(sql, Goods.class); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  | } |