提交 9ac405fc 作者: 刘明祎-运维用途

bug

上级 ee446909
流水线 #7733 已通过 于阶段
in 2 分 21 秒
...@@ -160,4 +160,6 @@ public interface PilotCertificationDao { ...@@ -160,4 +160,6 @@ public interface PilotCertificationDao {
* 通过通过飞手ID查询飞手的团队信息 * 通过通过飞手ID查询飞手的团队信息
*/ */
Integer selectPilotTeam(Integer pilotUserId); Integer selectPilotTeam(Integer pilotUserId);
TeamMessageDO selectPilotTeamInfo(Integer pilotUserId);
} }
...@@ -274,7 +274,7 @@ public class PilotCertificationServiceImpl implements PilotCertificationService ...@@ -274,7 +274,7 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
Integer userAccountId = certificationDTO.getUserAccountId(); Integer userAccountId = certificationDTO.getUserAccountId();
//说明飞手是有团队的 //说明飞手是有团队的
if (certificationDao.selectCompanyByUserId(userAccountId) > 1) { if (certificationDao.selectCompanyByUserId(userAccountId) > 1) {
TeamMessageDO teamMessageDO = certificationDao.selectPilotTeam(userAccountId); TeamMessageDO teamMessageDO = certificationDao.selectPilotTeamInfo(userAccountId);
//判断飞手是不是管理员 //判断飞手是不是管理员
if (Objects.equals(teamMessageDO.getPilotMessageId(), userAccountId)){ if (Objects.equals(teamMessageDO.getPilotMessageId(), userAccountId)){
certificationDTO.setIsAdmin(1); certificationDTO.setIsAdmin(1);
......
...@@ -531,5 +531,12 @@ ...@@ -531,5 +531,12 @@
JOIN company_member cm ON cb.company_info_id = cm.company_info_id JOIN company_member cm ON cb.company_info_id = cm.company_info_id
WHERE p.pilot_user_id = #{pilotUserId}; WHERE p.pilot_user_id = #{pilotUserId};
</select> </select>
<select id="selectPilotTeamInfo" resultType="com.mmc.iuav.user.model.dto.TeamMessageDO">
SELECT p.pilot_user_id AS pilotUserId, cm.user_account_id AS pilotMessageId
FROM pilot_join_team p
JOIN company_back_user cb ON p.back_user_id = cb.back_user_account_id
JOIN company_member cm ON cb.company_info_id = cm.company_info_id
WHERE p.pilot_user_id = #{pilotUserId};
</select>
</mapper> </mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论