| | |
| | | import cn.huge.base.common.utils.IdUtils; |
| | | import cn.huge.base.common.utils.ObjectUtils; |
| | | import cn.huge.module.client.api.impl.UtilsClientImpl; |
| | | import cn.huge.module.mediate.dto.WechatBindCaseDTO; |
| | | import cn.huge.module.cust.constant.UserBaseConsts; |
| | | import cn.huge.module.mediate.dto.WechatBindCaseDTO; |
| | | import cn.huge.module.pauser.dao.mapper.PaAccountMapper; |
| | | import cn.huge.module.pauser.dao.mapper.PaUserMapper; |
| | | import cn.huge.module.pauser.domain.po.PaAccount; |
| | | import cn.huge.module.pauser.domain.po.PaUser; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import cn.huge.module.pauser.dto.WeChatPersonalDTO; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | |
| | | } |
| | | |
| | | /** |
| | | * pc端提交案件后-获取相关当事人用户编号 |
| | | * @param wechatBindCaseDTO 用户信息 |
| | | * @return String |
| | | */ |
| | | public String bindGetUserId(WechatBindCaseDTO wechatBindCaseDTO){ |
| | | try{ |
| | | QueryWrapper<PaUser> paUserQueryWrapper = new QueryWrapper<>(); |
| | | paUserQueryWrapper.eq("true_name", wechatBindCaseDTO.getTrueName()). |
| | | eq("idcard", wechatBindCaseDTO.getIdcard()).eq("cust_id", wechatBindCaseDTO.getCustId()); |
| | | PaUser paUser = this.getOne(paUserQueryWrapper); |
| | | return paUser.getId(); |
| | | }catch (Exception e){ |
| | | log.error("service方法[PaUserService.bindGetUserId]调用异常:"+e, e); |
| | | throw new ServiceException("PaUserService.bindGetUserId", e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 当事人小程序-个人中心 |
| | | * @param userId 用户编号 |
| | | * @return WeChatPersonalDTO |