| | |
| | | |
| | | <!-- 根据邀请者ID查询关系 --> |
| | | <select id="getByWorkerId" resultMap="BaseResultMap" parameterType="java.lang.Long"> |
| | | select <include refid="Base_Column_List" /> from yeshi_ec_threeSale |
| | | where worker_id = #{0} AND t.state=0 AND (t.expire = 0 OR t.expire IS NULL) |
| | | select <include refid="Base_Column_List" /> from yeshi_ec_threeSale |
| | | where worker_id = #{0} AND state=0 AND (expire = 0 OR expire IS NULL) |
| | | </select> |
| | | |
| | | |
| | |
| | | throw new ThreeSaleException(1, "关系绑定失败");
|
| | | }
|
| | |
|
| | | UserInfo boss = userInfoService.selectByPKey(threeSale.getBoss().getId());
|
| | | threeSale.setBoss(boss);
|
| | | |
| | | |
| | | // 添加到队列
|
| | | ThreeSaleCMQManager.getInstance().addThreeSaleMsg(threeSale);
|
| | | // 邀请消息
|
| | |
| | |
|
| | |
|
| | | // 获取微信信息
|
| | | WeiXinUser weiXinUser = WXLoginUtil.getWeiXinWYUser(code);
|
| | | WeiXinUser weiXinUser = WXLoginUtil.getWeiXinUser(code);
|
| | | if (weiXinUser == null) {
|
| | | throw new UserInfoExtraException(1, "微信授权失败");
|
| | | }
|
| | |
| | | return weiXinUser;
|
| | | }
|
| | |
|
| | | private static WeiXinUser getWeiXinUser(String code) {
|
| | | public static WeiXinUser getWeiXinUser(String code) {
|
| | | WeiXinUserParam param = getWxParam(code);
|
| | | if (param == null) {
|
| | | return null;
|