记得上下班打卡 | git大法好,push需谨慎

Commit 0ec52f18 authored by 张国柄's avatar 张国柄

Merge remote-tracking branch 'origin/dev_goblin' into dev_goblin

parents e0763e1e 0e67ebad
......@@ -4,6 +4,7 @@ import com.liquidnet.service.base.ResponseDto;
import feign.hystrix.FallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
@Component
......@@ -21,4 +22,7 @@ public interface FeignPlatformGoblinTaskClient {
@PutMapping("gstore/task/market/activity")
ResponseDto<String> storeMarketActivityHandler();
@PostMapping("spu/goblin/setCount")
ResponseDto<String> setCount();
}
......@@ -33,4 +33,14 @@ public class PlatformGoblinTaskHandler {
XxlJobHelper.handleFail();
}
}
@XxlJob(value = "sev-platform:goblinSetCount")
public void setCount() {// 设置商城 商品数量
try {
XxlJobHelper.handleSuccess("结果:" + feignPlatformGoblinTaskClient.setCount().toJson());
} catch (Exception e) {
XxlJobHelper.log(e);
XxlJobHelper.handleFail();
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment