24282 1 year ago
parent
commit
47bcffad79
1 changed files with 2 additions and 1 deletions
  1. 2 1
      sd-wln/src/main/java/com/sd/wln/scheduled/WlnSyncTask.java

+ 2 - 1
sd-wln/src/main/java/com/sd/wln/scheduled/WlnSyncTask.java

@@ -3,13 +3,14 @@ package com.sd.wln.scheduled;
 import com.sd.wln.service.WlnOrderService;
 import com.sd.wln.service.WlnSkuService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Profile;
 import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Component;
 
 /**
  * 同步万里牛数据(本地环境不执行同步逻辑)
  */
-// @Profile({"test", "prod"})
+@Profile({"test", "prod"})
 @Component
 public class WlnSyncTask {