| | |
| | | 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; |
| | | |
| | |
| | | */ |
| | | @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); |