提交 3f7904ce 作者: 刘明祎-运维用途

授权手机号进行二次校验

上级 2c91aa93
流水线 #6933 已通过 于阶段
in 2 分 6 秒
...@@ -8,6 +8,7 @@ import com.mmc.iuav.user.model.qo.UserAccountQO; ...@@ -8,6 +8,7 @@ import com.mmc.iuav.user.model.qo.UserAccountQO;
import com.mmc.iuav.user.model.qo.UserMessageQO; import com.mmc.iuav.user.model.qo.UserMessageQO;
import com.mmc.iuav.user.model.qo.UserRcdQO; import com.mmc.iuav.user.model.qo.UserRcdQO;
import com.mmc.iuav.user.model.vo.UserAccountMessageVo; import com.mmc.iuav.user.model.vo.UserAccountMessageVo;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
...@@ -210,4 +211,11 @@ public interface UserServiceDao { ...@@ -210,4 +211,11 @@ public interface UserServiceDao {
List<UserAccountDO> listAllUserAccountByIds(@Param("userIds") List<Integer> ids); List<UserAccountDO> listAllUserAccountByIds(@Param("userIds") List<Integer> ids);
int appUserCompanyAuthCount(); int appUserCompanyAuthCount();
/**
* 查询该用户是否被邀请过了
* @param userId 用户id
* @return {@link Integer} 1表示被邀请过了 0表示没有
*/
Integer getCountUserByUserCrd(Integer userId);
} }
...@@ -248,15 +248,18 @@ public class UserAccountServiceImpl implements UserAccountService { ...@@ -248,15 +248,18 @@ public class UserAccountServiceImpl implements UserAccountService {
userAccount.setPhoneNum(userPhoneNumber); userAccount.setPhoneNum(userPhoneNumber);
userServiceDao.update(userAccount); userServiceDao.update(userAccount);
System.out.println(userAccount); System.out.println(userAccount);
// Integer countUser = userServiceDao.getCountUser(rcdUserId); Integer countUser = userServiceDao.getCountUser(rcdUserId);
// Integer countUserByUserCrd = userServiceDao.getCountUserByUserCrd(id);
// if (countUser != null && countUser !=0) { if(countUserByUserCrd == 1) {
//// if (rcdUserId != null) { return ResultBody.success();
// UserRcdDO userRcd = new UserRcdDO(); }
// userRcd.setUserAccountId(id); if (countUser != null && countUser !=0) {
// userRcd.setRcdUserId(rcdUserId); // if (rcdUserId != null) {
// userServiceDao.insertUserRcd(userRcd); UserRcdDO userRcd = new UserRcdDO();
// } userRcd.setUserAccountId(id);
userRcd.setRcdUserId(rcdUserId);
userServiceDao.insertUserRcd(userRcd);
}
// //
// /** // /**
// * 积分 // * 积分
......
...@@ -656,5 +656,8 @@ ...@@ -656,5 +656,8 @@
<select id="getCountUser" resultType="java.lang.Integer"> <select id="getCountUser" resultType="java.lang.Integer">
select count(id) from user_account where id = #{userId} select count(id) from user_account where id = #{userId}
</select> </select>
<select id="getCountUserByUserCrd" resultType="java.lang.Integer">
select count(id) from user_rcd where user_account_id = #{userId}
</select>
</mapper> </mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论