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