|
|
@@ -52,7 +52,7 @@ public class SyncProductStockTask {
|
|
|
" where ct_caller='XiaoMiProduct' and ct_id= " +
|
|
|
" (select ct_id from (select ct_id from CUSTOMTABLE where ct_caller='XiaoMiProduct' " +
|
|
|
//"and trunc(ct_recorddate)=trunc(sysdate) " +
|
|
|
- "and ct_statuscode='AUDITED' order by ct_id desc) where rownum=1)" +
|
|
|
+ "and ct_statuscode='AUDITED' and nvl(CT_SENDSTATUS,' ')<>'已上传' order by ct_id ) where rownum=1)" +
|
|
|
" order by cd_detno) A) where rn<=1000";
|
|
|
SqlRowList rs = baseDao.queryForRowSet(Sql);
|
|
|
while (rs.next()) {
|