提交 cd3f1911 作者: 恶龙咆哮

修复登录bug和优化法大大认证企业

上级 820657ae
......@@ -50,6 +50,12 @@ public interface UserServiceDao {
void update(UserAccountDO userAccountDO);
/**
* 查询是否存在这个用户
* @param userId 用户id
* @return {@link Integer} 1存在
*/
Integer getCountUser(Integer userId);
/**
* 根据用户地区查询后台用户id
*
* @param provinceCode
......
......@@ -292,6 +292,7 @@ public class UserFddAuthServiceImpl implements UserFddAuthService {
CompanyVerifyUrlParams params = new CompanyVerifyUrlParams();
params.setCustomerId(customerId);
params.setPageModify("1");//1允许 2不允许 默认为1
params.setVerifiedWay("3");
//设置回调通知
params.setNotifyUrl(FddConnectConstant.MMC_URL + FddConstant.NOTIFY_E_CERT_RES);
params.setMVerifiedWay("4");
......
......@@ -247,7 +247,11 @@ public class UserAccountServiceImpl implements UserAccountService {
userAccount.setId(id);
userAccount.setPhoneNum(userPhoneNumber);
userServiceDao.update(userAccount);
if (rcdUserId != null) {
System.out.println(userAccount);
Integer countUser = userServiceDao.getCountUser(rcdUserId);
if (countUser != null && countUser !=0) {
// if (rcdUserId != null) {
UserRcdDO userRcd = new UserRcdDO();
userRcd.setUserAccountId(id);
userRcd.setRcdUserId(rcdUserId);
......
......@@ -653,5 +653,8 @@
</foreach>
</if>
</select>
<select id="getCountUser" resultType="java.lang.Integer">
select count(id) from user_account where id = #{userId}
</select>
</mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论