11/22
This commit is contained in:
@@ -23,7 +23,7 @@ public class LpkCustomer {
|
|||||||
private Date createTime;
|
private Date createTime;
|
||||||
private String remarks;
|
private String remarks;
|
||||||
private String isEnable;
|
private String isEnable;
|
||||||
@TableField(value = "wx_mp_openid")
|
// @TableField(value = "wx_mp_openid")
|
||||||
private String wxMpOpenid;
|
private String wxMpOpenid;
|
||||||
private String unionId;
|
private String unionId;
|
||||||
private String mobile;
|
private String mobile;
|
||||||
|
|||||||
@@ -19,4 +19,5 @@ public class LpkCustomerVo implements Vo {
|
|||||||
private String realName;
|
private String realName;
|
||||||
private String nick;
|
private String nick;
|
||||||
private String photo;
|
private String photo;
|
||||||
|
private String wxMpOpenid;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import com.yxt.yyth.api.lpkcustomer.LpkCustomer;
|
|||||||
import com.yxt.yyth.api.lpkcustomer.LpkCustomerVo;
|
import com.yxt.yyth.api.lpkcustomer.LpkCustomerVo;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author wangpengfei
|
* @author wangpengfei
|
||||||
@@ -17,4 +18,6 @@ import org.apache.ibatis.annotations.Param;
|
|||||||
public interface LpkCustomerMapper extends BaseMapper<LpkCustomer> {
|
public interface LpkCustomerMapper extends BaseMapper<LpkCustomer> {
|
||||||
|
|
||||||
IPage<LpkCustomerVo> customerListPage(IPage<LpkCustomer> page, @Param(Constants.WRAPPER) QueryWrapper<LpkCustomer> qw);
|
IPage<LpkCustomerVo> customerListPage(IPage<LpkCustomer> page, @Param(Constants.WRAPPER) QueryWrapper<LpkCustomer> qw);
|
||||||
|
@Select("select * from lpk_customer where sid=#{sid}")
|
||||||
|
LpkCustomerVo getCustomerInfo (@Param("sid")String sid);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,8 @@
|
|||||||
realName,
|
realName,
|
||||||
nick,
|
nick,
|
||||||
photo,
|
photo,
|
||||||
mobile
|
mobile,
|
||||||
|
wx_mp_openid as wxMpOpenid
|
||||||
from lpk_customer
|
from lpk_customer
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
|
|||||||
@@ -42,6 +42,10 @@ public class LpkCustomerRest {
|
|||||||
public ResultBean<PagerVo<LpkCustomerVo>> customerListPage(@RequestBody PagerQuery<LpkCustomerQuery> pq) {
|
public ResultBean<PagerVo<LpkCustomerVo>> customerListPage(@RequestBody PagerQuery<LpkCustomerQuery> pq) {
|
||||||
return lpkCustomerService.customerListPage(pq);
|
return lpkCustomerService.customerListPage(pq);
|
||||||
}
|
}
|
||||||
|
@ApiOperation("客户个人信息")
|
||||||
|
@GetMapping("/customerInfo")
|
||||||
|
public ResultBean customerInfo(String sid){
|
||||||
|
return lpkCustomerService.getCustomerInfo(sid);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,13 +101,11 @@ public class LpkCustomerService extends MybatisBaseService<LpkCustomerMapper, Lp
|
|||||||
baseMapper.updateById(lpkCustomer);
|
baseMapper.updateById(lpkCustomer);
|
||||||
return rb.success().setMsg("绑定成功").setData(lpkCustomer.getSid());
|
return rb.success().setMsg("绑定成功").setData(lpkCustomer.getSid());
|
||||||
}
|
}
|
||||||
// public ResultBean wxBindMobile(String sid) {
|
public ResultBean getCustomerInfo(String sid) {
|
||||||
// ResultBean rb = ResultBean.fireFail();
|
ResultBean rb = ResultBean.fireFail();
|
||||||
//
|
LpkCustomerVo lpkCustomer= baseMapper.getCustomerInfo(sid);
|
||||||
// // LpkCustomer lpkCustomer= baseMapper.selectOne(new QueryWrapper<LpkCustomer>().eq("wx_mp_openid",wxBindMobileDto.getOpenid()));
|
return rb.success().setData(lpkCustomer);
|
||||||
//
|
}
|
||||||
// return rb.success().setMsg("绑定成功").setData(lpkCustomer.getSid());
|
|
||||||
// }
|
|
||||||
|
|
||||||
public ResultBean<PagerVo<LpkCustomerVo>> customerListPage(PagerQuery<LpkCustomerQuery> pq) {
|
public ResultBean<PagerVo<LpkCustomerVo>> customerListPage(PagerQuery<LpkCustomerQuery> pq) {
|
||||||
ResultBean rb = ResultBean.fireFail();
|
ResultBean rb = ResultBean.fireFail();
|
||||||
|
|||||||
Reference in New Issue
Block a user