|
|
@@ -47,12 +47,7 @@ public class SyncOriFactoryDeliveryCYTask {
|
|
|
" from purchasedetail left join purchase on pd_puid=pu_id left join transsionproduct on pd_prodcode=tspr_uasprcode " +
|
|
|
" where pu_statuscode = 'AUDITED' and nvl(pd_mrpstatuscode,' ')<>'FINISH' and pd_qty-nvl(pd_acceptqty,0)>0 and upper(pd_custname) in ('传音','上海传音') and nvl(tspr_uasprcode,' ') <> 'STK35F62' " +
|
|
|
" and nvl(TSPR_EIGHTCODE,' ')<>' ' and nvl(tspr_ENABLE,0) = -1 order by pd_prodcode,pd_puid,pd_detno");
|
|
|
- SqlRowList rs2 = baseDao.queryForRowSet("select TO_CHAR(SYSDATE,'HH24') v_hour,TO_CHAR(SYSDATE,'MI') v_mi,TO_CHAR(SYSDATE, 'DY', 'NLS_DATE_LANGUAGE=AMERICAN') v_mon from dual");
|
|
|
- String V_HOUR = rs2.getGeneralString("v_hour");
|
|
|
- String V_MI = rs2.getGeneralString("v_mi");
|
|
|
- String V_MON = rs2.getGeneralString("v_mon");
|
|
|
- boolean XIAOMIUPLOAD = baseDao.isDBSetting("CHUANYIN", "XIAOMIUPLOAD");
|
|
|
- if(docMsg.size()>0 && (("10".equals(V_HOUR) && "00".equals(V_MI) && "MON".equals(V_MON)) || XIAOMIUPLOAD)){
|
|
|
+ if(docMsg.size()>0 ){
|
|
|
List<Map<String, Object>> docMsgResultList = docMsg.getResultList();
|
|
|
StringBuffer errMsg = new StringBuffer();
|
|
|
List<Object> docCodes = new ArrayList<>();
|