|
|
@@ -78,13 +78,14 @@ public class ProductTempDao {
|
|
|
}
|
|
|
|
|
|
public List<Product> getNotMatchedProducts(String importId) {
|
|
|
- return jdbcTemplate.query("select pr_code,pr_title,pr_spec,pr_cmpcode,pr_brand,pr_unit,pr_minpack,pr_minorder,pr_leadtime,pr_ltinstock,pr_enuu,pr_useruu," +
|
|
|
- "pr_issale,pr_ispurchase,pr_isshow,pr_standard,pr_ispubsale,pr_sourceapp,pr_create_time from products_temp where pr_import_id=? and pr_exist_id is null",
|
|
|
+ return jdbcTemplate.query("select pr_code code,pr_title title,pr_spec spec,pr_cmpcode cmpCode,pr_brand brand,pr_unit unit,pr_minpack minPack,pr_minorder minOrder,pr_leadtime leadtime,pr_ltinstock ltinstock,pr_enuu enUU,pr_useruu userUU," +
|
|
|
+ "pr_issale isSale,pr_ispurchase isPurchase,pr_isshow isShow,pr_standard standard,pr_ispubsale isPubsale,pr_sourceapp sourceApp,pr_create_time createTime from products_temp where pr_import_id=? and pr_exist_id is null",
|
|
|
new BeanPropertyRowMapper<Product>(Product.class), importId);
|
|
|
}
|
|
|
|
|
|
public List<Product> getMatchedProducts(String importId) {
|
|
|
- return jdbcTemplate.query("select * from products p where exists (select 1 from products_temp t where t.pr_exist_id=p.pr_id and t.pr_import_id=?)",
|
|
|
+ return jdbcTemplate.query("select pr_id id,pr_code code,pr_title title,pr_spec spec,pr_cmpcode cmpCode,pr_brand brand,pr_unit unit,pr_minpack minPack,pr_minorder minOrder,pr_leadtime leadtime,pr_ltinstock ltinstock,pr_enuu enUU,pr_useruu userUU," +
|
|
|
+ "pr_issale isSale,pr_ispurchase isPurchase,pr_isshow isShow,pr_standard standard,pr_ispubsale isPubsale,pr_sourceapp sourceApp,pr_create_time createTime from products p where exists (select 1 from products_temp t where t.pr_exist_id=p.pr_id and t.pr_import_id=?)",
|
|
|
new BeanPropertyRowMapper<Product>(Product.class), importId);
|
|
|
}
|
|
|
|