|
|
@@ -22,7 +22,7 @@ public class PurchaseNotifyTask extends AbstractTask {
|
|
|
|
|
|
@TaskMapping(title = "上传送货提醒", fixedDelay = 30000)
|
|
|
public void uploadPurchaseNotify() {
|
|
|
- List<PurchaseNotify> notifies = jdbcTemplate.queryForBeanList("select * from (select purchasenotify.*,ve_uu,pr_zxbzs from purchasenotify left join purchase on pn_ordercode=pu_code left join vendor on pu_vendcode=ve_code left join product on pr_code=pn_prodcode where (nvl(PN_SENDSTATUS,' ')='待上传' or nvl(pn_sendstatus,' ')='上传中') and pn_status<>'已取消' and pu_sendstatus='已上传' and nvl(pu_ordertype,' ')<>'B2C' and ve_uu is not null and nvl(ve_b2benable,0)=1 order by pn_indate) where rownum <= 100",
|
|
|
+ List<PurchaseNotify> notifies = jdbcTemplate.queryForBeanList("select * from (select purchasenotify.*,ve_uu,pr_zxbzs from purchasenotify left join purchase on pn_ordercode=pu_code left join vendor on pu_vendcode=ve_code left join product on pr_code=pn_prodcode where (nvl(PN_SENDSTATUS,' ')='待上传' or nvl(pn_sendstatus,' ')='上传中') and pn_status<>'已取消' and nvl(pu_b2bid, 0) <> 0 and nvl(pu_ordertype,' ')<>'B2C' and ve_uu is not null and nvl(ve_b2benable,0)=1 order by pn_indate) where rownum <= 100",
|
|
|
PurchaseNotify.class);
|
|
|
if (!CollectionUtils.isEmpty(notifies)) {
|
|
|
ContextHolder.setDataSize(notifies.size());
|