Commit b6ed928b by fanjiaxin

推客分佣单入库

parent ba055d39
Pipeline #75522 passed with stages
in 1 minute 4 seconds
......@@ -22,7 +22,7 @@ public class WebConfig implements WebMvcConfigurer {
private final UserInterceptor userInterceptor;
private static final String[] EXCLUDE_URLS = {"/i/health",
"/sharer/open/**", "/sharer/test/**",
"/sharer/open/**", "/sharer/test/**", "/sharer/sms/sendSmsCode",
"/sharer/user/login", "/sharer/product/page/list"};
@Override
......
......@@ -6,9 +6,12 @@
*/
package com.netease.yanxuan.wx.store.sharer.web.controller;
import com.netease.yanxuan.wx.store.sharer.biz.core.LoginUserHelper;
import com.netease.yanxuan.wx.store.sharer.biz.service.ICommissionOrderService;
import com.netease.yanxuan.wx.store.sharer.common.core.Result;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
......@@ -18,6 +21,15 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/sharer/test")
@RequiredArgsConstructor
public class TestController {
private final LoginUserHelper loginUserHelper;
private final ICommissionOrderService iCommissionOrderService;
/**
* 登录
*/
@GetMapping("/syncCommissionOrder")
public Result<Void> syncCommissionOrder(@RequestParam("startTime") Long startTime,
@RequestParam("endTime") Long endTime) {
iCommissionOrderService.doCommissionOrderSync(startTime, endTime);
return Result.ok();
}
}
\ No newline at end of file
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