Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
b757506a
提交
b757506a
authored
5月 30, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
合作加盟接口添加和切换测试数据库
上级
0064cd6c
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
39 行增加
和
3 行删除
+39
-3
CooperationController.java
...a/com/mmc/iuav/user/controller/CooperationController.java
+7
-0
CooperationDao.java
...r/src/main/java/com/mmc/iuav/user/dao/CooperationDao.java
+7
-0
CooperationService.java
...in/java/com/mmc/iuav/user/service/CooperationService.java
+7
-0
CooperationServiceImpl.java
...om/mmc/iuav/user/service/impl/CooperationServiceImpl.java
+9
-0
application-dev.yml
...e/cms-service-user/src/main/resources/application-dev.yml
+1
-1
application-local.yml
...cms-service-user/src/main/resources/application-local.yml
+1
-1
CooperationDao.xml
...service-user/src/main/resources/mapper/CooperationDao.xml
+6
-1
not-check.yml
...service/cms-service-user/src/main/resources/not-check.yml
+1
-0
没有找到文件。
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/CooperationController.java
浏览文件 @
b757506a
...
...
@@ -29,6 +29,13 @@ public class CooperationController {
return
cooperationService
.
listTag
();
}
@ApiOperation
(
value
=
"根据id获取标签信息"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
CooperationTagVO
.
class
)
})
@GetMapping
(
"getTagById"
)
public
ResultBody
getTagById
(
@RequestParam
(
"id"
)
Integer
id
)
{
return
cooperationService
.
getTagById
(
id
);
}
@ApiOperation
(
value
=
"申请加盟"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@PostMapping
(
"apply"
)
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/dao/CooperationDao.java
浏览文件 @
b757506a
...
...
@@ -56,4 +56,11 @@ public interface CooperationDao {
* @param userTagDO
*/
void
updateUserTag
(
UserTagDO
userTagDO
);
/**
* 根据id查询标签信息
* @param id
* @return
*/
CooperationTagDO
getTagById
(
Integer
id
);
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/CooperationService.java
浏览文件 @
b757506a
...
...
@@ -28,4 +28,11 @@ public interface CooperationService {
* @return
*/
ResultBody
changeUserTag
(
Integer
userAccountId
,
Integer
cooperationTagId
);
/**
* 根据ID查询标签信息
* @param id
* @return
*/
ResultBody
getTagById
(
Integer
id
);
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/CooperationServiceImpl.java
浏览文件 @
b757506a
...
...
@@ -77,4 +77,13 @@ public class CooperationServiceImpl implements CooperationService {
cooperationDao
.
updateUserTag
(
userTagDO
);
return
ResultBody
.
success
();
}
@Override
public
ResultBody
getTagById
(
Integer
id
)
{
CooperationTagDO
cooperationTagDO
=
cooperationDao
.
getTagById
(
id
);
if
(
cooperationTagDO
==
null
){
return
ResultBody
.
success
();
}
return
ResultBody
.
success
(
cooperationTagDO
.
buildCooperationTagVO
());
}
}
csm-service/cms-service-user/src/main/resources/application-dev.yml
浏览文件 @
b757506a
...
...
@@ -3,7 +3,7 @@ spring:
#Database
datasource
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://mysql.default:3306/iuav_cms?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
url
:
jdbc:mysql://mysql.default:3306/iuav_cms
_dev
?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
username
:
tmj
password
:
MMC@2022&MYSQL
# Druid数据源配置
...
...
csm-service/cms-service-user/src/main/resources/application-local.yml
浏览文件 @
b757506a
...
...
@@ -3,7 +3,7 @@ spring:
#Database
datasource
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://rm-wz9dd796t4j1giz6t2o.mysql.rds.aliyuncs.com:3306/iuav_cms?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
url
:
jdbc:mysql://rm-wz9dd796t4j1giz6t2o.mysql.rds.aliyuncs.com:3306/iuav_cms
_dev
?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
username
:
tmj
password
:
MMC@2022&MYSQL
# Druid数据源配置
...
...
csm-service/cms-service-user/src/main/resources/mapper/CooperationDao.xml
浏览文件 @
b757506a
...
...
@@ -44,7 +44,7 @@
</update>
<select
id=
"listTags"
resultType=
"com.mmc.iuav.user.entity.CooperationTagDO"
>
select id, tag_name, tag_img, tag_description, create_time from cooperation_tag
select id, tag_name, tag_img, tag_description, create_time from cooperation_tag
where is_deleted = 0
</select>
<select
id=
"getUserApplyTag"
resultType=
"com.mmc.iuav.user.entity.UserApplyTagDO"
>
...
...
@@ -58,4 +58,8 @@
from user_tag
where user_account_id = #{userAccountId} and is_deleted = 0
</select>
<select
id=
"getTagById"
resultType=
"com.mmc.iuav.user.entity.CooperationTagDO"
>
select id, tag_name, tag_img, tag_description, create_time from cooperation_tag where id = #{id} and is_deleted = 0
</select>
</mapper>
\ No newline at end of file
csm-service/cms-service-user/src/main/resources/not-check.yml
浏览文件 @
b757506a
...
...
@@ -10,6 +10,7 @@ data-filter:
-
/userapp/auth/testAppletLogin
-
/userapp/auth/appletLogin
-
/userapp/cooperation/listTag
-
/userapp/cooperation/getTagById
-
/userapp/temp-auth/getLoginInfo
-
/userapp/wx/getAppletQRCode
-
/userapp/wx/wxSendMessage
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论