Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
17238f70
提交
17238f70
authored
4月 13, 2024
作者:
刘明祎-运维用途
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
判断用户是否通过飞手认证
上级
de8422ae
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
33 行增加
和
6 行删除
+33
-6
UserAccountSimpleDTO.java
...ava/com/mmc/iuav/user/model/dto/UserAccountSimpleDTO.java
+3
-0
UserAccountVO.java
...c/main/java/com/mmc/iuav/user/model/vo/UserAccountVO.java
+4
-1
PilotCertificationDao.java
...m/mmc/iuav/user/dao/dronepilot/PilotCertificationDao.java
+2
-0
UserAccountDO.java
...src/main/java/com/mmc/iuav/user/entity/UserAccountDO.java
+3
-0
UserAccountServiceImpl.java
...om/mmc/iuav/user/service/impl/UserAccountServiceImpl.java
+13
-5
PilotCertificationDao.xml
...ain/resources/mapper/dronepilot/PilotCertificationDao.xml
+8
-0
没有找到文件。
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/dto/UserAccountSimpleDTO.java
浏览文件 @
17238f70
...
@@ -61,4 +61,7 @@ public class UserAccountSimpleDTO implements Serializable {
...
@@ -61,4 +61,7 @@ public class UserAccountSimpleDTO implements Serializable {
private
String
coverPicture
;
private
String
coverPicture
;
@ApiModelProperty
(
value
=
"地区"
)
@ApiModelProperty
(
value
=
"地区"
)
private
String
region
;
private
String
region
;
@ApiModelProperty
(
value
=
"是否是飞手"
)
private
int
isPilot
;
}
}
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/vo/UserAccountVO.java
浏览文件 @
17238f70
...
@@ -90,9 +90,12 @@ public class UserAccountVO implements Serializable {
...
@@ -90,9 +90,12 @@ public class UserAccountVO implements Serializable {
private
Integer
districtChildId
;
private
Integer
districtChildId
;
@ApiModelProperty
(
value
=
"
飞手所属的飞手团队信息
"
)
@ApiModelProperty
(
value
=
"
用户自己认证的公司
"
)
private
CompanyInfoVO
companyInfoVO
;
private
CompanyInfoVO
companyInfoVO
;
@ApiModelProperty
(
value
=
"用户飞手加盟的公司"
)
private
CompanyInfoVO
pilotJoinCompanyInfoVO
;
@ApiModelProperty
(
value
=
"用户对应的后台用户id"
)
@ApiModelProperty
(
value
=
"用户对应的后台用户id"
)
private
Integer
backUserId
;
private
Integer
backUserId
;
@ApiModelProperty
(
value
=
"密码"
)
@ApiModelProperty
(
value
=
"密码"
)
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/dao/dronepilot/PilotCertificationDao.java
浏览文件 @
17238f70
...
@@ -190,4 +190,6 @@ public interface PilotCertificationDao {
...
@@ -190,4 +190,6 @@ public interface PilotCertificationDao {
* @return int
* @return int
*/
*/
int
getStateMessage
();
int
getStateMessage
();
int
getUserIsPilot
(
Integer
userId
);
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/entity/UserAccountDO.java
浏览文件 @
17238f70
...
@@ -94,6 +94,8 @@ public class UserAccountDO implements Serializable {
...
@@ -94,6 +94,8 @@ public class UserAccountDO implements Serializable {
private
String
password
;
private
String
password
;
@ApiModelProperty
(
value
=
"用户状态"
)
@ApiModelProperty
(
value
=
"用户状态"
)
private
Integer
userStateId
;
private
Integer
userStateId
;
@ApiModelProperty
(
value
=
"是否是飞手"
)
private
int
isPilot
;
public
UserAccountDO
(
UserAccountVO
userAccountVO
)
{
public
UserAccountDO
(
UserAccountVO
userAccountVO
)
{
this
.
id
=
userAccountVO
.
getId
();
this
.
id
=
userAccountVO
.
getId
();
this
.
phoneNum
=
userAccountVO
.
getPhoneNum
();
this
.
phoneNum
=
userAccountVO
.
getPhoneNum
();
...
@@ -161,6 +163,7 @@ public class UserAccountDO implements Serializable {
...
@@ -161,6 +163,7 @@ public class UserAccountDO implements Serializable {
.
region
(
this
.
region
)
.
region
(
this
.
region
)
.
briefIntroduction
(
this
.
briefIntroduction
)
.
briefIntroduction
(
this
.
briefIntroduction
)
.
coverPicture
(
this
.
coverPicture
)
.
coverPicture
(
this
.
coverPicture
)
.
isPilot
(
this
.
isPilot
)
.
build
();
.
build
();
}
}
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/UserAccountServiceImpl.java
浏览文件 @
17238f70
...
@@ -93,6 +93,8 @@ public class UserAccountServiceImpl implements UserAccountService {
...
@@ -93,6 +93,8 @@ public class UserAccountServiceImpl implements UserAccountService {
@Autowired
@Autowired
private
PilotCertificationDao
certificationDao
;
private
PilotCertificationDao
certificationDao
;
@Autowired
private
PilotCertificationDao
pilotCertificationDao
;
@Override
@Override
public
UserAccountVO
getUserAccountInfoByUnionId
(
String
unionId
)
{
public
UserAccountVO
getUserAccountInfoByUnionId
(
String
unionId
)
{
UserAccountDO
userAccountDO
=
userServiceDao
.
getUserAccountInfoByUnionId
(
unionId
);
UserAccountDO
userAccountDO
=
userServiceDao
.
getUserAccountInfoByUnionId
(
unionId
);
...
@@ -182,6 +184,8 @@ public class UserAccountServiceImpl implements UserAccountService {
...
@@ -182,6 +184,8 @@ public class UserAccountServiceImpl implements UserAccountService {
String
districtChild
=
userServiceDao
.
getDistrictChild
(
districtChildId
);
String
districtChild
=
userServiceDao
.
getDistrictChild
(
districtChildId
);
userAccountDO
.
setRegion
(
districtChild
);
userAccountDO
.
setRegion
(
districtChild
);
}
}
int
isPilot
=
pilotCertificationDao
.
getUserIsPilot
(
userAccountDO
.
getId
());
userAccountDO
.
setIsPilot
(
isPilot
);
}
}
List
<
UserAccountSimpleDTO
>
accountSimpleDTOS
=
list
.
stream
().
map
(
UserAccountDO:
:
buildUserAccountSimpleDTO
).
collect
(
Collectors
.
toList
());
List
<
UserAccountSimpleDTO
>
accountSimpleDTOS
=
list
.
stream
().
map
(
UserAccountDO:
:
buildUserAccountSimpleDTO
).
collect
(
Collectors
.
toList
());
//设置用户的渠道等级
//设置用户的渠道等级
...
@@ -579,6 +583,11 @@ public class UserAccountServiceImpl implements UserAccountService {
...
@@ -579,6 +583,11 @@ public class UserAccountServiceImpl implements UserAccountService {
String
districtChild
=
userServiceDao
.
getDistrictChild
(
userAccountDO
.
getDistrictChildId
());
String
districtChild
=
userServiceDao
.
getDistrictChild
(
userAccountDO
.
getDistrictChildId
());
userAccountDO
.
setRegion
(
districtChild
);
userAccountDO
.
setRegion
(
districtChild
);
UserAccountVO
userAccountVO
=
userAccountDO
.
buildUserAccountVO
();
UserAccountVO
userAccountVO
=
userAccountDO
.
buildUserAccountVO
();
CompanyInfoDO
companyInfoDO
=
companyDao
.
getAppCompanyInfoUId
(
userAccountId
);
if
(
companyInfoDO
!=
null
)
{
CompanyInfoVO
companyInfoVO
=
companyInfoDO
.
buildCompanyInfoVO
();
userAccountVO
.
setCompanyInfoVO
(
companyInfoVO
);
}
ResultBody
<
RealNameAuthDTO
>
nameAuthDTOResultBody
=
realNameAuthService
.
userDetail
(
userAccountId
);
ResultBody
<
RealNameAuthDTO
>
nameAuthDTOResultBody
=
realNameAuthService
.
userDetail
(
userAccountId
);
RealNameAuthDTO
realNameAuthDTO
=
nameAuthDTOResultBody
.
getResult
();
RealNameAuthDTO
realNameAuthDTO
=
nameAuthDTOResultBody
.
getResult
();
if
(
realNameAuthDTO
!=
null
&&
realNameAuthDTO
.
getCheckStatus
().
equals
(
1
))
{
if
(
realNameAuthDTO
!=
null
&&
realNameAuthDTO
.
getCheckStatus
().
equals
(
1
))
{
...
@@ -608,11 +617,10 @@ public class UserAccountServiceImpl implements UserAccountService {
...
@@ -608,11 +617,10 @@ public class UserAccountServiceImpl implements UserAccountService {
}
else
{
}
else
{
userAccountVO
.
setSubStatus
(
0
);
userAccountVO
.
setSubStatus
(
0
);
}
}
CompanyInfoDO
pilotJoinCompanyInfoDO
=
certificationDao
.
selectCompanyInfoByPilotId
(
userAccountId
,
1
);
CompanyInfoDO
companyInfoDO
=
certificationDao
.
selectCompanyInfoByPilotId
(
userAccountId
,
1
);
if
(
pilotJoinCompanyInfoDO
!=
null
)
{
if
(
companyInfoDO
!=
null
)
{
CompanyInfoVO
pilotJoinCompanyInfoVO
=
pilotJoinCompanyInfoDO
.
buildCompanyInfoVO
();
CompanyInfoVO
companyInfoVO
=
companyInfoDO
.
buildCompanyInfoVO
();
userAccountVO
.
setPilotJoinCompanyInfoVO
(
pilotJoinCompanyInfoVO
);
userAccountVO
.
setCompanyInfoVO
(
companyInfoVO
);
}
}
Integer
backUserId
=
certificationDao
.
selectBackUserIdByUserId
(
userAccountId
);
Integer
backUserId
=
certificationDao
.
selectBackUserIdByUserId
(
userAccountId
);
// log.info("userAccountId {} 用户对应的backUserId=============》{}",userAccountId,backUserId);
// log.info("userAccountId {} 用户对应的backUserId=============》{}",userAccountId,backUserId);
...
...
csm-service/cms-service-user/src/main/resources/mapper/dronepilot/PilotCertificationDao.xml
浏览文件 @
17238f70
...
@@ -399,6 +399,8 @@
...
@@ -399,6 +399,8 @@
AND ua.`disable` = 0
AND ua.`disable` = 0
</select>
</select>
<insert
id=
"insertPilotJoinTeam"
>
<insert
id=
"insertPilotJoinTeam"
>
insert into pilot_join_team(pilot_user_id, back_user_id,pilot_status)
insert into pilot_join_team(pilot_user_id, back_user_id,pilot_status)
values (#{pilotId},#{backId},0)
values (#{pilotId},#{backId},0)
...
@@ -623,6 +625,12 @@
...
@@ -623,6 +625,12 @@
from user_partner
from user_partner
where status = 0
where status = 0
</select>
</select>
<select
id=
"getUserIsPilot"
resultType=
"java.lang.Integer"
>
select count(1)
from pilot_certification
where user_account_id = #{userId}
and audit_status = 1
</select>
<update
id=
"chongqian"
>
<update
id=
"chongqian"
>
update pay_wallet
update pay_wallet
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论