|
|
|
@@ -1,85 +1,88 @@ |
|
|
|
//package com.iformall.controller.invest; |
|
|
|
// |
|
|
|
//import java.util.Arrays; |
|
|
|
//import java.util.List; |
|
|
|
// |
|
|
|
//import com.iformall.annotation.SystemControllerLog; |
|
|
|
//import com.iformall.common.ResultData; |
|
|
|
//import com.iformall.domain.po.InvestCustomerEntity; |
|
|
|
//import com.iformall.service.invest.InvestCustomerService; |
|
|
|
//import io.swagger.annotations.Api; |
|
|
|
//import io.swagger.annotations.ApiOperation; |
|
|
|
//import lombok.extern.slf4j.Slf4j; |
|
|
|
//import org.springframework.web.bind.annotation.*; |
|
|
|
//import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
// |
|
|
|
// |
|
|
|
///** |
|
|
|
// * 客户管理 |
|
|
|
// * |
|
|
|
// * @author |
|
|
|
// * @email |
|
|
|
// * @date 2019-09-23 18:40:43 |
|
|
|
// */ |
|
|
|
//@Slf4j |
|
|
|
//@RestController |
|
|
|
//@RequestMapping("invest/customer") |
|
|
|
//@Api(tags = "客户管理") |
|
|
|
//public class InvestCustomerController { |
|
|
|
// @Autowired |
|
|
|
// private InvestCustomerService investCustomerService; |
|
|
|
// |
|
|
|
// /** |
|
|
|
// * 客户列表 |
|
|
|
// */ |
|
|
|
// @ApiOperation("客户列表") |
|
|
|
// @SystemControllerLog(description = "客户列表") |
|
|
|
// @PostMapping("/list") |
|
|
|
// public ResultData list(@RequestBody InvestCustomerEntity params) { |
|
|
|
// List page = investCustomerService.queryPage(params); |
|
|
|
// return new ResultData(page); |
|
|
|
// } |
|
|
|
// |
|
|
|
// |
|
|
|
// /** |
|
|
|
// * 客户详细信息 |
|
|
|
// */ |
|
|
|
// @SystemControllerLog(description = "客户详细信息") |
|
|
|
// @GetMapping("/info/{id}") |
|
|
|
// public ResultData info(@PathVariable("id") Long id) { |
|
|
|
// InvestCustomerEntity investCustomer = investCustomerService.getById(id); |
|
|
|
// return new ResultData(investCustomer); |
|
|
|
// } |
|
|
|
// |
|
|
|
// /** |
|
|
|
// * 保存客户 |
|
|
|
// */ |
|
|
|
// @SystemControllerLog(description = "保存客户") |
|
|
|
// @PostMapping("/save") |
|
|
|
// public ResultData save(@RequestBody InvestCustomerEntity investCustomer) { |
|
|
|
// investCustomerService.save(investCustomer); |
|
|
|
// return new ResultData(); |
|
|
|
// } |
|
|
|
// |
|
|
|
// /** |
|
|
|
// * 修改客户信息 |
|
|
|
// */ |
|
|
|
// @SystemControllerLog(description = "修改客户信息") |
|
|
|
// @PostMapping("/update") |
|
|
|
// public ResultData update(@RequestBody InvestCustomerEntity investCustomer) { |
|
|
|
// investCustomerService.updateById(investCustomer); |
|
|
|
// |
|
|
|
// return new ResultData(); |
|
|
|
// } |
|
|
|
// |
|
|
|
// /** |
|
|
|
// * 删除客户信息 |
|
|
|
// */ |
|
|
|
// @SystemControllerLog(description = "删除客户信息") |
|
|
|
// @GetMapping("/delete") |
|
|
|
// public ResultData delete(@RequestBody Long[] ids) { |
|
|
|
// investCustomerService.removeByIds(Arrays.asList(ids)); |
|
|
|
// return new ResultData(); |
|
|
|
// } |
|
|
|
// |
|
|
|
//} |
|
|
|
package com.iformall.controller.invest; |
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import com.iformall.annotation.SystemControllerLog; |
|
|
|
import com.iformall.common.InvestResultData; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.po.InvestCustomerEntity; |
|
|
|
import com.iformall.domain.po.InvestTaskEntity; |
|
|
|
import com.iformall.domain.vo.invest.InvestPageQuery; |
|
|
|
import com.iformall.domain.vo.invest.InvestPageResult; |
|
|
|
import com.iformall.service.invest.InvestCustomerService; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 客户管理 |
|
|
|
* |
|
|
|
* @author |
|
|
|
* @email |
|
|
|
* @date 2019-09-23 18:40:43 |
|
|
|
*/ |
|
|
|
@Slf4j |
|
|
|
@RestController |
|
|
|
@RequestMapping("invest/customer") |
|
|
|
@Api(tags = "客户管理") |
|
|
|
public class InvestCustomerController extends InvestBaseController{ |
|
|
|
@Autowired |
|
|
|
private InvestCustomerService investCustomerService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 客户列表 |
|
|
|
*/ |
|
|
|
@ApiOperation("客户列表") |
|
|
|
@SystemControllerLog(description = "客户列表") |
|
|
|
@PostMapping("/list") |
|
|
|
public InvestResultData<InvestPageResult<InvestCustomerEntity>> list(InvestPageQuery<InvestCustomerEntity> params) { |
|
|
|
return execute(params, p -> investCustomerService.queryPage(p)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
// * 客户详细信息 |
|
|
|
// */ |
|
|
|
//@SystemControllerLog(description = "客户详细信息") |
|
|
|
//@GetMapping("/info/{id}") |
|
|
|
//public ResultData info(@PathVariable("id") Long id) { |
|
|
|
// InvestCustomerEntity investCustomer = investCustomerService.getById(id); |
|
|
|
// return new ResultData(investCustomer); |
|
|
|
//} |
|
|
|
|
|
|
|
///** |
|
|
|
// * 保存客户 |
|
|
|
// */ |
|
|
|
//@SystemControllerLog(description = "保存客户") |
|
|
|
//@PostMapping("/save") |
|
|
|
//public ResultData save(@RequestBody InvestCustomerEntity investCustomer) { |
|
|
|
// investCustomerService.save(investCustomer); |
|
|
|
// return new ResultData(); |
|
|
|
//} |
|
|
|
// |
|
|
|
///** |
|
|
|
// * 修改客户信息 |
|
|
|
// */ |
|
|
|
//@SystemControllerLog(description = "修改客户信息") |
|
|
|
//@PostMapping("/update") |
|
|
|
//public ResultData update(@RequestBody InvestCustomerEntity investCustomer) { |
|
|
|
// investCustomerService.updateById(investCustomer); |
|
|
|
// |
|
|
|
// return new ResultData(); |
|
|
|
//} |
|
|
|
|
|
|
|
///** |
|
|
|
// * 删除客户信息 |
|
|
|
// */ |
|
|
|
//@SystemControllerLog(description = "删除客户信息") |
|
|
|
//@GetMapping("/delete") |
|
|
|
//public ResultData delete(@RequestBody Long[] ids) { |
|
|
|
// investCustomerService.removeByIds(Arrays.asList(ids)); |
|
|
|
// return new ResultData(); |
|
|
|
//} |
|
|
|
|
|
|
|
} |