Browse Source

【华信科eis】【账套名修改】

wub 3 years ago
parent
commit
1364494236

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

@@ -9,6 +9,7 @@ import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.scheduling.annotation.EnableAsync;
 import org.springframework.scheduling.annotation.EnableScheduling;
+import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Component;
 
 import javax.annotation.Resource;
@@ -31,13 +32,13 @@ public class SyncProductStockTask {
 
     private final Logger logger = LoggerFactory.getLogger(this.getClass());
 
-    //@Scheduled(cron = "0 0/2 * * * ?")
+    @Scheduled(cron = "0 0/2 * * * ?")
     public void SyncProductStock() {
         SqlRowList rs2 = baseDao.queryForRowSet("select TO_CHAR(SYSDATE,'HH24') v_hour,TO_CHAR(SYSDATE,'MI') v_mi from dual");
         while(rs2.next()) {
             String V_HOUR = rs2.getGeneralString("v_hour");
             String V_MI = rs2.getGeneralString("v_mi");
-            if (("08".equals(V_HOUR) || "20".equals(V_HOUR) )
+            if (("08".equals(V_HOUR) || "20".equals(V_HOUR) || "11".equals(V_HOUR) )
                     //&& ("00".equals(V_MI) || "04".equals(V_MI) )
             ) {
                 X5JsonHttpClient x5JsonHttpClient = new X5JsonHttpClient(configuration.getX5appid(), configuration.getX5appkey(), configuration.getX5ProductStockUrl());

+ 16 - 16
src/main/resources/application-prod.yml

@@ -49,26 +49,26 @@ fs:
     encodingAesKey: YmFhZjE4YmQ5MmQ2NDE0MTg1MmJlNjZjYzJmMmQ0ZjM
     authorize.url: https://open.fxiaoke.com/oauth2/authorize
     openUserId: FSUID_EEB3F8D8C2186EB4AFFB5D97F1AA4FCD
-    x5username: RFCMESUPSTAR
-    x5password: yBv8q!rs
-    x5appid: xm_oem_9022
-    x5appkey: BA84A5A8332D44989FF3A4EE7927E30B
-    x5ProductStockUrl: https://mipop.p.mi.com/HttpAdapter/HttpMessageServlet?interfaceNamespace=http://xiaomi.com/oem/dummy&interface=SI_MI_OEM_IF123_VENDOR_STOCK_S_OUT&senderService=UPSTAR_TECH_PRD&qos=BE
-    x5ProductWIPUrl: https://mipop.p.mi.com/HttpAdapter/HttpMessageServlet?interfaceNamespace=http://xiaomi.com/oem/dummy&interface=SI_MI_OEM_IF122_VENDOR_WIP_S_OUT&senderService=UPSTAR_TECH_PRD&qos=BE
-    x5vendercode: 100122
+    x5username: RFCMESHKIFTM
+    x5password: zbAg2Q$P
+    x5appid: xm_oem_9027
+    x5appkey: 5800a3cdd22b4a92ae5b10647f0af8ed
+    x5ProductStockUrl: https://mipoq.p.mi.com/HttpAdapter/HttpMessageServlet?interfaceNamespace=http://xiaomi.com/oem/dummy&interface=SI_MI_OEM_IF123_VENDOR_STOCK_S_OUT&senderService=HK_INFOTM_QAS&qos=BE
+    x5ProductWIPUrl: https://mipoq.p.mi.com/HttpAdapter/HttpMessageServlet?interfaceNamespace=http://xiaomi.com/oem/dummy&interface=SI_MI_OEM_IF122_VENDOR_WIP_S_OUT&senderService=HK_INFOTM_QAS&qos=BE
+    x5vendercode: 108207
 #    以下为测试环境
 #    x5username: RFCMESHKIFTM
 #    x5password: zbAg2Q$P
-#    x5appid: xm_oem_9022
-#    x5appkey: f0a1d3b00b914db9bd23b5850932dd39
+#    x5appid: xm_oem_9027
+#    x5appkey: 5800a3cdd22b4a92ae5b10647f0af8ed
 #    x5ProductStockUrl: https://mipoq.p.mi.com/HttpAdapter/HttpMessageServlet?interfaceNamespace=http://xiaomi.com/oem/dummy&interface=SI_MI_OEM_IF123_VENDOR_STOCK_S_OUT&senderService=HK_INFOTM_QAS&qos=BE
 #    x5ProductWIPUrl: https://mipoq.p.mi.com/HttpAdapter/HttpMessageServlet?interfaceNamespace=http://xiaomi.com/oem/dummy&interface=SI_MI_OEM_IF122_VENDOR_WIP_S_OUT&senderService=HK_INFOTM_QAS&qos=BE
-#    x5vendercode: 100122
+#    x5vendercode: 108207
 #    以下为正式环境
-#  x5username: RFCMESUPSTAR
-#  x5password: yBv8q!rs
-#  x5appid: xm_oem_9022
+#  x5username: RFCMESHKIFTM
+#  x5password: zbAg2Q$P
+#  x5appid: xm_oem_9027
 #  x5appkey: BA84A5A8332D44989FF3A4EE7927E30B
-#  x5ProductStockUrl: https://mipop.p.mi.com/HttpAdapter/HttpMessageServlet?interfaceNamespace=http://xiaomi.com/oem/dummy&interface=SI_MI_OEM_IF123_VENDOR_STOCK_S_OUT&senderService=UPSTAR_TECH_PRD&qos=BE
-#  x5ProductWIPUrl: https://mipop.p.mi.com/HttpAdapter/HttpMessageServlet?interfaceNamespace=http://xiaomi.com/oem/dummy&interface=SI_MI_OEM_IF122_VENDOR_WIP_S_OUT&senderService=UPSTAR_TECH_PRD&qos=BE
-#  x5vendercode: 100122
+#  x5ProductStockUrl: https://mipoq.p.mi.com/HttpAdapter/HttpMessageServlet?interfaceNamespace=http://xiaomi.com/oem/dummy&interface=SI_MI_OEM_IF123_VENDOR_STOCK_S_OUT&senderService=HK_INFOTM_QAS&qos=BE
+#  x5ProductWIPUrl: https://mipoq.p.mi.com/HttpAdapter/HttpMessageServlet?interfaceNamespace=http://xiaomi.com/oem/dummy&interface=SI_MI_OEM_IF122_VENDOR_WIP_S_OUT&senderService=HK_INFOTM_QAS&qos=BE
+#  x5vendercode: 108207