|
|
@@ -38,6 +38,7 @@ public class SyncProductStockTask {
|
|
|
while(rs2.next()) {
|
|
|
String V_HOUR = rs2.getGeneralString("v_hour");
|
|
|
String V_MI = rs2.getGeneralString("v_mi");
|
|
|
+ baseDao.execute("update CUSTOMTABLE set ct_varchar50_2=to_char(sysdate,'yyyy-mm-dd HH24:mi:ss') where ct_id=1032876 ");
|
|
|
if (("08".equals(V_HOUR) || "20".equals(V_HOUR) || "11".equals(V_HOUR) )
|
|
|
//&& ("00".equals(V_MI) || "04".equals(V_MI) )
|
|
|
) {
|
|
|
@@ -54,7 +55,9 @@ public class SyncProductStockTask {
|
|
|
"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);
|
|
|
+ baseDao.execute("update CUSTOMTABLE set ct_varchar50_3=to_char(sysdate,'yyyy-mm-dd HH24:mi:ss') where ct_id=1032876 ");
|
|
|
while (rs.next()) {
|
|
|
+ baseDao.execute("update CUSTOMTABLE set ct_varchar50_4=to_char(sysdate,'yyyy-mm-dd HH24:mi:ss') where ct_id=1032876 ");
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("factory_code", configuration.getX5vendercode());
|
|
|
map.put("component_code", rs.getGeneralString("cd_varchar50_3"));
|
|
|
@@ -70,6 +73,7 @@ public class SyncProductStockTask {
|
|
|
}
|
|
|
data.put("data", list);
|
|
|
if (list.size() > 0) {
|
|
|
+ baseDao.execute("update CUSTOMTABLE set ct_varchar50_5=to_char(sysdate,'yyyy-mm-dd HH24:mi:ss') where ct_id=1032876 ");
|
|
|
x5JsonHttpClient.post(data, configuration, baseDao, "ProductStock");
|
|
|
}
|
|
|
}
|