Browse Source

出货单上传状态为空也允许上传

wuyx 4 years ago
parent
commit
28cbf5693d

+ 1 - 1
src/main/java/com/uas/erp/schedular/b2b/task/SaleNotifyDownTask.java

@@ -159,7 +159,7 @@ public class SaleNotifyDownTask extends AbstractTask {
      * @return
      */
     private List<SaleOut> getSaleOut() {
-        List<SaleOut> outs = jdbcTemplate.queryForBeanList("select pi_id,pi_inoutno,pi_currency,pi_rate,pi_payment,pi_remark,pi_recordman,pi_auditman,cu_uu from ProdInOut left join customer on pi_cardcode=cu_code where pi_class='出货单' and pi_statuscode='POSTED' and (PI_SENDSTATUS='待上传' or PI_SENDSTATUS='上传中') and cu_uu is not null and exists (select 1 from ProdIoDetail left join sale on pd_ordercode=sa_code where pd_piid=pi_id and sa_sourcetype='B2B商务') order by pi_inoutno",
+        List<SaleOut> outs = jdbcTemplate.queryForBeanList("select pi_id,pi_inoutno,pi_currency,pi_rate,pi_payment,pi_remark,pi_recordman,pi_auditman,cu_uu from ProdInOut left join customer on pi_cardcode=cu_code where pi_class='出货单' and pi_statuscode='POSTED' and (PI_SENDSTATUS is null or PI_SENDSTATUS='待上传' or PI_SENDSTATUS='上传中' ) and cu_uu is not null and exists (select 1 from ProdIoDetail left join sale on pd_ordercode=sa_code where pd_piid=pi_id and sa_sourcetype='B2B商务') order by pi_inoutno",
                 SaleOut.class);
         List<SaleOut> validOuts = new ArrayList<SaleOut>();
         if (!CollectionUtils.isEmpty(outs)) {