|
@@ -29,7 +29,7 @@ public class ProdTask extends AbstractTask {
|
|
|
public void uploadProduct() {
|
|
public void uploadProduct() {
|
|
|
Enterprise enterprise = getEnterprise();
|
|
Enterprise enterprise = getEnterprise();
|
|
|
if (null != enterprise) {
|
|
if (null != enterprise) {
|
|
|
- List<Prod> prods = jdbcTemplate.queryForBeanList("select * from (select pr_id,pr_code,pr_detail,pr_spec,pr_unit,pr_zxbzs,pr_zxdhl,pr_leadtime,pr_ltinstock,pr_brand,pr_issale,pr_ispurchase,pr_isshow,pr_ispubsale,pr_uuid,pr_orispeccode from product where nvl(pr_sendstatus,' ')<>'已上传' and nvl(pr_status, ' ') = '已审核' order by pr_id) where rownum <= 500",
|
|
|
|
|
|
|
+ List<Prod> prods = jdbcTemplate.queryForBeanList("select * from (select pr_id,pr_code,pr_detail,pr_spec,pr_unit,pr_zxbzs,pr_zxdhl,pr_leadtime,pr_ltinstock,pr_brand,pr_issale,pr_ispurchase,pr_isshow,pr_ispubsale,pr_uuid,pr_orispeccode from product where pr_sendstatus='待上传' and pr_status = '已审核' order by pr_id) where rownum <= 500",
|
|
|
Prod.class);
|
|
Prod.class);
|
|
|
logger.info("上传物料: " + prods.size());
|
|
logger.info("上传物料: " + prods.size());
|
|
|
if (!CollectionUtils.isEmpty(prods)) {
|
|
if (!CollectionUtils.isEmpty(prods)) {
|