Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
514ec5e5
提交
514ec5e5
authored
12月 22, 2023
作者:
han
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' of
http://git.mmcuav.cn/iuav/cms
into develop
上级
f0d5ef91
a02ed772
流水线
#7709
已通过 于阶段
in 2 分 24 秒
变更
5
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
13 行增加
和
5 行删除
+13
-5
UserSubInfoDao.java
...r/src/main/java/com/mmc/iuav/user/dao/UserSubInfoDao.java
+2
-0
PilotCertificationServiceImpl.java
...ervice/dronepilot/impl/PilotCertificationServiceImpl.java
+2
-1
WxServiceImpl.java
...in/java/com/mmc/iuav/user/service/impl/WxServiceImpl.java
+2
-2
UserSubInfoDao.xml
...service-user/src/main/resources/mapper/UserSubInfoDao.xml
+6
-1
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
没有找到文件。
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/dao/UserSubInfoDao.java
浏览文件 @
514ec5e5
...
@@ -22,4 +22,6 @@ public interface UserSubInfoDao {
...
@@ -22,4 +22,6 @@ public interface UserSubInfoDao {
void
removeUserSubInfo
(
String
openId
);
void
removeUserSubInfo
(
String
openId
);
void
updateUserSubInfo
(
UserSubInfoDO
subInfo
);
void
updateUserSubInfo
(
UserSubInfoDO
subInfo
);
String
getUserOpenidByUnionId
(
String
unionId
);
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/dronepilot/impl/PilotCertificationServiceImpl.java
浏览文件 @
514ec5e5
...
@@ -17,6 +17,7 @@ import com.mmc.iuav.user.dao.userpoints.UserPointsDao;
...
@@ -17,6 +17,7 @@ import com.mmc.iuav.user.dao.userpoints.UserPointsDao;
import
com.mmc.iuav.user.dao.userpoints.UserPointsDetailsDao
;
import
com.mmc.iuav.user.dao.userpoints.UserPointsDetailsDao
;
import
com.mmc.iuav.user.entity.CompanyInfoDO
;
import
com.mmc.iuav.user.entity.CompanyInfoDO
;
import
com.mmc.iuav.user.entity.UserAccountDO
;
import
com.mmc.iuav.user.entity.UserAccountDO
;
import
com.mmc.iuav.user.entity.UserSubInfoDO
;
import
com.mmc.iuav.user.entity.dronepilot.*
;
import
com.mmc.iuav.user.entity.dronepilot.*
;
import
com.mmc.iuav.user.entity.userpoints.UserPointsDO
;
import
com.mmc.iuav.user.entity.userpoints.UserPointsDO
;
import
com.mmc.iuav.user.entity.userpoints.UserPointsDetails
;
import
com.mmc.iuav.user.entity.userpoints.UserPointsDetails
;
...
@@ -314,7 +315,7 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
...
@@ -314,7 +315,7 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
WxMsgVO
ws
=
new
WxMsgVO
();
WxMsgVO
ws
=
new
WxMsgVO
();
String
unionId
=
userAccountDO
.
getUnionId
();
String
unionId
=
userAccountDO
.
getUnionId
();
// 查询对应的openId(touser)
// 查询对应的openId(touser)
String
touser
=
userSubInfoDao
.
getUser
SubInfoByUnionId
(
unionId
).
getOpenId
(
);
String
touser
=
userSubInfoDao
.
getUser
OpenidByUnionId
(
unionId
);
JSONObject
jsonObject
=
spellMsg
(
"飞手执照及能力认证"
,
"审核通过"
);
JSONObject
jsonObject
=
spellMsg
(
"飞手执照及能力认证"
,
"审核通过"
);
ws
.
setTouser
(
touser
);
ws
.
setTouser
(
touser
);
ws
.
setTemplateId
(
"9qvgBhfW9yoQJY91iMfhrog8y5eZUPSbo9PLvQzS_vk"
);
ws
.
setTemplateId
(
"9qvgBhfW9yoQJY91iMfhrog8y5eZUPSbo9PLvQzS_vk"
);
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/WxServiceImpl.java
浏览文件 @
514ec5e5
...
@@ -255,8 +255,8 @@ public class WxServiceImpl implements WxService {
...
@@ -255,8 +255,8 @@ public class WxServiceImpl implements WxService {
try
{
try
{
accessToken
=
this
.
getSubStableAccessToken
();
accessToken
=
this
.
getSubStableAccessToken
();
if
(
StringUtils
.
isBlank
(
ws
.
getTouser
()))
{
if
(
StringUtils
.
isBlank
(
ws
.
getTouser
()))
{
String
unionId
=
userServiceDao
.
getUserAccountById
(
ws
.
getUserAccountId
()).
getUnionId
();
String
unionId
=
userServiceDao
.
getUserAccountById
(
ws
.
getUserAccountId
()).
getUnionId
();
// 查询对应的openId(touser)
String
touser
=
userSubInfoDao
.
getUser
SubInfoByUnionId
(
unionId
).
getOpenId
(
);
String
touser
=
userSubInfoDao
.
getUser
OpenidByUnionId
(
unionId
);
ws
.
setTouser
(
touser
);
ws
.
setTouser
(
touser
);
}
}
String
url
=
"https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="
+
accessToken
;
String
url
=
"https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="
+
accessToken
;
...
...
csm-service/cms-service-user/src/main/resources/mapper/UserSubInfoDao.xml
浏览文件 @
514ec5e5
...
@@ -41,8 +41,13 @@
...
@@ -41,8 +41,13 @@
from user_sub_info u
from user_sub_info u
where u.open_id = #{openId} and is_deleted = 0
where u.open_id = #{openId} and is_deleted = 0
</select>
</select>
<select
id=
"getUserOpenidByUnionId"
resultType=
"java.lang.String"
>
select usi.open_id
from user_sub_info usi
where usi.union_id = #{unionId} and usi.is_deleted=0
</select>
<insert
id=
"insertUserSubInfo"
useGeneratedKeys=
"true"
<insert
id=
"insertUserSubInfo"
useGeneratedKeys=
"true"
keyProperty=
"id"
parameterType=
"com.mmc.iuav.user.entity.UserSubInfoDO"
>
keyProperty=
"id"
parameterType=
"com.mmc.iuav.user.entity.UserSubInfoDO"
>
insert into user_sub_info
insert into user_sub_info
(
(
...
...
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
514ec5e5
...
@@ -18,4 +18,4 @@ patches:
...
@@ -18,4 +18,4 @@ patches:
images
:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/cms
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/cms
newTag
:
3ddf3987db40cb422ed301bc69f812b36fa7c298
newTag
:
894d7be623eced6509af2c43ce3cee0eb3485a5b
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论