Przeglądaj źródła

【博思达】【小米对接 接口按ct_id 正序排序,后面覆盖前面的】

samhoo 3 lat temu
rodzic
commit
86c42fa7c9

+ 1 - 1
src/main/java/com/uas/eis/task/SyncProductStockTask.java

@@ -51,7 +51,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' and nvl(CT_SENDSTATUS,' ')<>'已上传' 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()) {

+ 1 - 1
src/main/java/com/uas/eis/task/SyncProductWIPTask.java

@@ -53,7 +53,7 @@ public class SyncProductWIPTask {
                         " where  ct_caller='XiaoMiProductWIP' and ct_id= " +
                         " (select ct_id from (select ct_id from CUSTOMTABLE where ct_caller='XiaoMiProductWIP' " +
                         //"and trunc(ct_recorddate)=trunc(sysdate) " +
-                        "and ct_statuscode='AUDITED' and nvl(CT_SENDSTATUS,' ')<>'已上传' 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);