|
|
@@ -44,7 +44,7 @@ public class SyncProductWIPTask {
|
|
|
List<Map<String,Object>> list = new ArrayList<>();
|
|
|
String Sql="select * from (select rownum rn,to_char(cd_date_1,'yyyy-mm-dd hh24:mi:ss') cd_date_ywfs, A.* from (select ct_code,CUSTOMTABLEDETAIL.* from CUSTOMTABLE left join CUSTOMTABLEDETAIL on ct_id=cd_ctid " +
|
|
|
" where ct_caller='XiaoMiProductWIP' and ct_id= " +
|
|
|
- " (select ct_id from (select ct_id from CUSTOMTABLE where ct_caller='XiaoMiProductWIP' and ct_statuscode='AUDITED' and nvl(ct_confirmstatus, ' ')<>'已上传' order by ct_id desc) where rownum=1)" +
|
|
|
+ " (select ct_id from (select ct_id from CUSTOMTABLE where ct_caller='XiaoMiProductWIP' and ct_statuscode='AUDITED' and nvl(CT_SENDSTATUS, ' ')<>'已上传' order by ct_id desc) where rownum=1)" +
|
|
|
" order by cd_detno) A) where rn<=1000";
|
|
|
SqlRowList rs = baseDao.queryForRowSet(Sql);
|
|
|
while (rs.next()){
|
|
|
@@ -58,12 +58,10 @@ public class SyncProductWIPTask {
|
|
|
map.put("project_name",rs.getGeneralString("cd_varchar50_5"));
|
|
|
map.put("product_code",rs.getGeneralString("cd_varchar50_6"));
|
|
|
map.put("fact_date",rs.getGeneralString("cd_date_ywfs"));
|
|
|
- map.put("cd_id",rs.getGeneralInt("cd_id"));
|
|
|
+ map.put("ct_id",rs.getGeneralInt("ct_id"));
|
|
|
list.add(map);
|
|
|
}
|
|
|
data.put("data",list);
|
|
|
- System.out.println("1啊"+data);
|
|
|
- System.out.println("2啊"+ JSON.toJSONString(data));
|
|
|
if(list.size()>0){
|
|
|
x5JsonHttpClient.post(data, configuration, baseDao, "ProductWIP");
|
|
|
}
|