package com.yd.api.commission;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.yd.api.commission.service.CommissionService;

//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiOperation;
//
//@Api(value="/commission", tags="佣金接口:")
@RestController
public class CommissionController {
	
	@Autowired
	private CommissionService commissionService;
	/**
	 * 按照手机号从AGMS DB中查询保单列表
	 * @param login
	 * @return
	 */
/*	@ApiOperation(value="根据登录账号查询用户列表", notes = "根据登录账号查询用户列表", httpMethod = "POST")
    @ApiImplicitParam(name="login", value="String", required = true)*/	
	@RequestMapping("/queryCommissionByLogin")
	public Object queryCommissionByLogin(@RequestBody String login){
		
		return commissionService.queryCommissionByLogin(login);
	}
	
	/**
	 * 按照手机号从EGolden DB中查询EGolden用户保单列表
	 * @param login
	 * @return
	 */
/*	@ApiOperation(value="根据登录账号查询EGolden用户保单列表", notes = "根据登录账号查询EGolden用户保单列表", httpMethod = "POST")
    @ApiImplicitParam(name="login", value="String", required = true)	*/	
	@RequestMapping("/queryCommissionByLoginFromEGolden")
	public Object listAllUserfromEGolden(@RequestBody String login){
		
		return commissionService.listSalesCommissionfromEGolden(login);
	}
}