|
|
@@ -51,7 +51,7 @@ public class SyncProductWIPTask {
|
|
|
data.put("request_time",format);
|
|
|
List<Map<String,Object>> list = new ArrayList<>();
|
|
|
String Sql="select * from (select rownum rn,to_char(nvl(cd_date_1,to_date('1970-01-01','yyyy-mm-dd')),'yyyy-mm-dd hh24:mi:ss') cd_date_ywfs, A.* from (select pr_brand,ct_id,ct_code,CUSTOMTABLEDETAIL.* from CUSTOMTABLE left join CUSTOMTABLEDETAIL on ct_id=cd_ctid " +
|
|
|
- " left join product on pr_code = cd_varchar50_4 where ct_caller='XiaoMiProductWIP' and ct_id= " +
|
|
|
+ " left join product on (pr_code = cd_varchar50_4 or pr_code||'-1'=cd_varchar50_4) 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 ) where rownum=1)" +
|