Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
cms-ci-test
Commits
f8767a88
提交
f8767a88
authored
7月 01, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
加盟审批bug修复及Redis链接本地配置
上级
84a4fe13
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
8 行增加
和
9 行删除
+8
-9
CooperationController.java
...a/com/mmc/iuav/user/controller/CooperationController.java
+1
-1
CooperationServiceImpl.java
...om/mmc/iuav/user/service/impl/CooperationServiceImpl.java
+6
-6
application-local.yml
...cms-service-user/src/main/resources/application-local.yml
+1
-2
没有找到文件。
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/CooperationController.java
浏览文件 @
f8767a88
...
@@ -82,7 +82,7 @@ public class CooperationController extends BaseController {
...
@@ -82,7 +82,7 @@ public class CooperationController extends BaseController {
@GetMapping
(
"approvalApplyTag"
)
@GetMapping
(
"approvalApplyTag"
)
public
ResultBody
approvalApplyTag
(
public
ResultBody
approvalApplyTag
(
@RequestParam
(
value
=
"id"
)
Integer
id
,
@RequestParam
(
value
=
"status"
)
Boolean
status
)
{
@RequestParam
(
value
=
"id"
)
Integer
id
,
@RequestParam
(
value
=
"status"
)
Boolean
status
)
{
return
ResultBody
.
success
(
cooperationService
.
approvalApplyTag
(
id
,
status
)
);
return
cooperationService
.
approvalApplyTag
(
id
,
status
);
}
}
@ApiOperation
(
value
=
"后台设置小程序用户标签"
)
@ApiOperation
(
value
=
"后台设置小程序用户标签"
)
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/CooperationServiceImpl.java
浏览文件 @
f8767a88
...
@@ -127,6 +127,7 @@ public class CooperationServiceImpl implements CooperationService {
...
@@ -127,6 +127,7 @@ public class CooperationServiceImpl implements CooperationService {
return
ResultBody
.
success
(
userApplyTagDetailsVO
);
return
ResultBody
.
success
(
userApplyTagDetailsVO
);
}
}
@Transactional
@Override
@Override
public
ResultBody
approvalApplyTag
(
Integer
id
,
Boolean
status
)
{
public
ResultBody
approvalApplyTag
(
Integer
id
,
Boolean
status
)
{
// 判断用户是否已经是该渠道
// 判断用户是否已经是该渠道
...
@@ -134,18 +135,17 @@ public class CooperationServiceImpl implements CooperationService {
...
@@ -134,18 +135,17 @@ public class CooperationServiceImpl implements CooperationService {
int
count
=
int
count
=
cooperationDao
.
userTagInfo
(
cooperationDao
.
userTagInfo
(
userApplyTag
.
getCooperationTagId
(),
userApplyTag
.
getUserAccountId
());
userApplyTag
.
getCooperationTagId
(),
userApplyTag
.
getUserAccountId
());
if
(
count
==
0
)
{
if
(
status
)
{
if
(
status
)
{
cooperationDao
.
updateApplyTagStatus
(
id
,
1
);
cooperationDao
.
updateApplyTagStatus
(
id
,
1
);
if
(
count
==
0
){
// 审批通过往用户标签表中新增一条数据
// 审批通过往用户标签表中新增一条数据
UserTagDO
userTagDO
=
new
UserTagDO
();
UserTagDO
userTagDO
=
new
UserTagDO
();
userTagDO
.
setUserAccountId
(
userApplyTag
.
getUserAccountId
());
userTagDO
.
setUserAccountId
(
userApplyTag
.
getUserAccountId
());
userTagDO
.
setCooperationTagId
(
userApplyTag
.
getCooperationTagId
());
userTagDO
.
setCooperationTagId
(
userApplyTag
.
getCooperationTagId
());
cooperationDao
.
insertUserTag
(
userTagDO
);
cooperationDao
.
insertUserTag
(
userTagDO
);
}
else
{
cooperationDao
.
updateApplyTagStatus
(
id
,
2
);
}
}
return
ResultBody
.
success
();
}
else
{
cooperationDao
.
updateApplyTagStatus
(
id
,
2
);
}
}
return
ResultBody
.
success
();
return
ResultBody
.
success
();
}
}
...
...
csm-service/cms-service-user/src/main/resources/application-local.yml
浏览文件 @
f8767a88
...
@@ -10,8 +10,7 @@ spring:
...
@@ -10,8 +10,7 @@ spring:
type
:
com.alibaba.druid.pool.DruidDataSource
type
:
com.alibaba.druid.pool.DruidDataSource
redis
:
redis
:
database
:
1
database
:
1
host
:
r-wz9ke310fs684hacn1pd.redis.rds.aliyuncs.com
host
:
127.0.0.1
password
:
MMC@2022&REDIS
port
:
6379
port
:
6379
#rabbitMQ
#rabbitMQ
rabbitmq
:
rabbitmq
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论