Quellcode durchsuchen

1.调用随身帮清除order缓存

13651387864 vor 3 Jahren
Ursprung
Commit
39fdc7d62e

+ 1 - 0
suishenbang-admin/src/main/resources/application-uat.yml

@@ -13,6 +13,7 @@ ruoyi:
   # 获取ip地址开关
   addressEnabled: false
   cloudPath: http://127.0.0.1:8000/
+  clearCachePath: http://suishenbangtest.nipponpaint.com.cn/order/meta-hana-sales-order/clearCache
 #经销商微信接口相关配置
 customer:
   appid: ap4f8e6a38b6142187

+ 1 - 0
suishenbang-api/src/main/resources/application-dev.yml

@@ -13,6 +13,7 @@ ruoyi:
   #是否开启swagger
   openSwagger: true
   cloudPath: http://10.32.2.212:8000/
+  clearCachePath: http://suishenbangtest.nipponpaint.com.cn/order/meta-hana-sales-order/clearCache
 #接口安全验证
 security:
   #接口过期时间

+ 1 - 0
suishenbang-api/src/main/resources/application-prod.yml

@@ -13,6 +13,7 @@ ruoyi:
   #是否开启swagger
   openSwagger: true
   cloudPath: http://127.0.0.1:8000/
+  clearCachePath: http://suishenbang.nipponpaint.com.cn/order/meta-hana-sales-order/clearCache
 #接口安全验证
 security:
   #接口过期时间

+ 1 - 0
suishenbang-api/src/main/resources/application-uat.yml

@@ -13,6 +13,7 @@ ruoyi:
   #是否开启swagger
   openSwagger: true
   cloudPath: http://127.0.0.1:8000/
+  clearCachePath: http://suishenbangtest.nipponpaint.com.cn/order/meta-hana-sales-order/clearCache
 #接口安全验证
 security:
   #接口过期时间

+ 4 - 4
suishenbang-system/src/main/java/com/dgtly/system/service/impl/SysBatchSignForServiceImpl.java

@@ -42,8 +42,8 @@ public class SysBatchSignForServiceImpl implements ISysBatchSignForService {
     @Autowired(required = false)
     @Qualifier("tmsLogisticsStatusDeleteExcutor")
     private Executor tmsLogisticsStatusDeleteExcutor;
-    //@Value(value = "${ruoyi.clearCachePath}")
-    //private String clearCachePath;
+    @Value(value = "${ruoyi.clearCachePath}")
+    private String clearCachePath;
 
     @Autowired
     private SysBatchSignForMapper sysBatchSignForMapper;
@@ -67,8 +67,8 @@ public class SysBatchSignForServiceImpl implements ISysBatchSignForService {
         ).join();
 
         //清订单列表缓存
-        //String result = HttpUtils.sendPost(clearCachePath,"");
-        //logger.info("result:::"+result);
+        String result = HttpUtils.sendGet(clearCachePath);
+        logger.info("result:::"+result);
         return 1;
     }