35 lines
1.2 KiB
Java
35 lines
1.2 KiB
Java
package com.zmzm.financial.common.controller;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import com.zmzm.financial.common.entity.Customer;
|
|
import com.zmzm.financial.common.entity.WumenUser;
|
|
import com.zmzm.financial.common.service.CustomerService;
|
|
import com.zmzm.financial.common.service.WumenUserService;
|
|
import com.zmzm.financial.util.R;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
@Slf4j
|
|
@RestController("commonUser")
|
|
@RequestMapping("common/user")
|
|
public class UserController {
|
|
|
|
@Autowired
|
|
private WumenUserService wumenUserService;
|
|
@Autowired
|
|
private CustomerService customerService;
|
|
|
|
//获取我的湖分列表
|
|
@RequestMapping("/getUser")
|
|
public R getUserContribution(){
|
|
WumenUser wumenUser = wumenUserService.getById("12301");
|
|
Customer customer = customerService.getOne(new LambdaQueryWrapper<Customer>()
|
|
.eq(Customer::getCellPhone,"15674886255"));
|
|
return R.ok().put("wumenUser",wumenUser).put("customer",customer);
|
|
}
|
|
|
|
|
|
}
|