|
|
package com.yohoufo.order.controller;
|
|
|
|
|
|
import com.yohoufo.common.ApiResponse;
|
|
|
import com.yohoufo.order.model.InviteSettlementListVO;
|
|
|
import com.yohoufo.order.service.IInviteSettlementService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
/**
|
|
|
* @author LUOXC
|
|
|
* @date 2019/4/2 14:58
|
|
|
*/
|
|
|
@Slf4j
|
|
|
@RestController
|
|
|
public class InviteSettlementController {
|
|
|
|
|
|
@Autowired
|
|
|
private IInviteSettlementService inviterService;
|
|
|
|
|
|
/**
|
|
|
* 我的收款记录
|
|
|
*
|
|
|
* @param uid
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(params = "method=ufo.invite.getInviteSettlementList")
|
|
|
public ApiResponse getInviteSettlementList(@RequestParam(value = "uid") int uid) {
|
|
|
log.info("get inviter settlement list, uid is {}", uid);
|
|
|
InviteSettlementListVO inviteSettlementListVO = inviterService.getInviteSettlementList(uid);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(inviteSettlementListVO).message("ok").build();
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/erp/invite/settlement/help/settle")
|
|
|
public ApiResponse settle() {
|
|
|
inviterService.settle();
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).message("ok").build();
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|