Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
ims
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
ims
Commits
70f428a2
提交
70f428a2
authored
9月 19, 2023
作者:
张小凤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
GambitDao(add)
上级
ea42576a
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
18 行增加
和
10 行删除
+18
-10
ForumGambitVO.java
...ain/java/com/mmc/csf/release/gambit/vo/ForumGambitVO.java
+1
-1
GambitDao.java
...c/main/java/com/mmc/csf/release/dao/gambit/GambitDao.java
+1
-1
ForumGambitDO.java
...java/com/mmc/csf/release/entity/gambit/ForumGambitDO.java
+1
-0
DynamicMapper.xml
...service/src/main/resources/mapper/forum/DynamicMapper.xml
+8
-1
GambitDao.xml
...se-service/src/main/resources/mapper/gambit/GambitDao.xml
+7
-7
没有找到文件。
csf-common/csf-common-model/src/main/java/com/mmc/csf/release/gambit/vo/ForumGambitVO.java
浏览文件 @
70f428a2
...
@@ -37,7 +37,7 @@ public class ForumGambitVO {
...
@@ -37,7 +37,7 @@ public class ForumGambitVO {
@NotBlank
(
message
=
"话题封面不能为空"
,
groups
=
{
Create
.
class
,
Update
.
class
})
@NotBlank
(
message
=
"话题封面不能为空"
,
groups
=
{
Create
.
class
,
Update
.
class
})
private
String
gambitCover
;
private
String
gambitCover
;
@ApiModelProperty
(
value
=
"话题属性
"
,
example
=
"话题属性 1普通 2热门 3推荐
"
)
@ApiModelProperty
(
value
=
"话题属性
话题属性 1普通 2热门 3推荐"
,
example
=
"1
"
)
@NotNull
(
message
=
"话题属性不能为空"
)
@NotNull
(
message
=
"话题属性不能为空"
)
private
Integer
gambitProperty
;
private
Integer
gambitProperty
;
...
...
release-service/src/main/java/com/mmc/csf/release/dao/gambit/GambitDao.java
浏览文件 @
70f428a2
...
@@ -17,7 +17,7 @@ import java.util.List;
...
@@ -17,7 +17,7 @@ import java.util.List;
@Mapper
@Mapper
public
interface
GambitDao
{
public
interface
GambitDao
{
ForumGambitDO
insertGambit
(
ForumGambitDO
forumGambitDO
);
void
insertGambit
(
ForumGambitDO
forumGambitDO
);
int
selectGambit
(
String
gambitName
);
int
selectGambit
(
String
gambitName
);
...
...
release-service/src/main/java/com/mmc/csf/release/entity/gambit/ForumGambitDO.java
浏览文件 @
70f428a2
...
@@ -59,6 +59,7 @@ public class ForumGambitDO {
...
@@ -59,6 +59,7 @@ public class ForumGambitDO {
this
.
gambitCover
=
forumGambitVO
.
getGambitCover
();
this
.
gambitCover
=
forumGambitVO
.
getGambitCover
();
this
.
gambitProperty
=
forumGambitVO
.
getGambitProperty
();
this
.
gambitProperty
=
forumGambitVO
.
getGambitProperty
();
this
.
userAccountId
=
forumGambitVO
.
getUserAccountId
();
this
.
userAccountId
=
forumGambitVO
.
getUserAccountId
();
this
.
id
=
forumGambitVO
.
getId
();
}
}
public
ForumGambitDO
(
ForumDynamicDO
forumDynamicDO
){
public
ForumGambitDO
(
ForumDynamicDO
forumDynamicDO
){
...
...
release-service/src/main/resources/mapper/forum/DynamicMapper.xml
浏览文件 @
70f428a2
...
@@ -173,6 +173,9 @@
...
@@ -173,6 +173,9 @@
<if
test=
"gambitName!='' and gambitName!=null"
>
<if
test=
"gambitName!='' and gambitName!=null"
>
and gambit_name like concat ('%',#{gambitName},'%')
and gambit_name like concat ('%',#{gambitName},'%')
</if>
</if>
<if
test=
"gambitProperty!=null"
>
and gambit_property=#{gambitProperty}
</if>
ORDER BY gambit_property,create_time DESC
ORDER BY gambit_property,create_time DESC
limit #{pageNo}, #{pageSize}
limit #{pageNo}, #{pageSize}
</select>
</select>
...
@@ -180,8 +183,12 @@
...
@@ -180,8 +183,12 @@
<select
id=
"appGambitListCount"
resultType=
"java.lang.Integer"
>
<select
id=
"appGambitListCount"
resultType=
"java.lang.Integer"
>
select count(*) from forum_gambit where check_status=1
select count(*) from forum_gambit where check_status=1
<if
test=
"gambitName!='' and gambitName!=null"
>
<if
test=
"gambitName!='' and gambitName!=null"
>
gambit_name like concat ('%',#{gambitName},'%')
and
gambit_name like concat ('%',#{gambitName},'%')
</if>
</if>
<if
test=
"gambitProperty!=null"
>
and gambit_property=#{gambitProperty}
</if>
ORDER BY gambit_property,create_time DESC
ORDER BY gambit_property,create_time DESC
</select>
</select>
...
...
release-service/src/main/resources/mapper/gambit/GambitDao.xml
浏览文件 @
70f428a2
...
@@ -152,9 +152,9 @@
...
@@ -152,9 +152,9 @@
<insert
id=
"insertGambit"
parameterType=
"com.mmc.csf.release.entity.gambit.ForumGambitDO"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
<insert
id=
"insertGambit"
parameterType=
"com.mmc.csf.release.entity.gambit.ForumGambitDO"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into forum_gambit(gambit_name,gambit_icon,gambit_cover,gambit_property,
insert into forum_gambit(gambit_name,gambit_icon,gambit_cover,gambit_property,
user_account_id,create_time,update_time)
user_account_id,create_time,update_time
,check_status
)
values (#{gambitName},#{gambitIcon},#{gambitCover},#{gambitProperty},
values (#{gambitName},#{gambitIcon},#{gambitCover},#{gambitProperty},
#{userAccountId},NOW(),NOW())
#{userAccountId},NOW(),NOW()
,1
)
</insert>
</insert>
<select
id=
"selectGambit"
resultType=
"java.lang.Integer"
>
<select
id=
"selectGambit"
resultType=
"java.lang.Integer"
>
select count(*) from forum_gambit where gambit_name=#{gambitName}
select count(*) from forum_gambit where gambit_name=#{gambitName}
...
@@ -175,15 +175,15 @@
...
@@ -175,15 +175,15 @@
gambit_name=#{gambitName},
gambit_name=#{gambitName},
</if>
</if>
<if
test=
"gambitIcon!='' and gambitIcon !=null "
>
<if
test=
"gambitIcon!='' and gambitIcon !=null "
>
gambit_icon=#{gambit
_i
con},
gambit_icon=#{gambit
I
con},
</if>
</if>
<if
test=
"gambitCover!='' and gambitCover!=null "
>
<if
test=
"gambitCover!='' and gambitCover!=null "
>
gambit_cover=#{gambitCover},
gambit_cover=#{gambitCover},
</if>
</if>
<if
test=
"gambitProperty!=null "
>
<if
test=
"gambitProperty!=null "
>
gambit_property=#{gambitProperty}
gambit_property=#{gambitProperty}
,
</if>
</if>
<if
test=
"user
_account_i
d!=null"
>
<if
test=
"user
AccountI
d!=null"
>
user_account_id=#{userAccountId},
user_account_id=#{userAccountId},
</if>
</if>
create_time=NOW(),
create_time=NOW(),
...
@@ -226,8 +226,8 @@
...
@@ -226,8 +226,8 @@
<select
id=
"listGambit"
resultType=
"com.mmc.csf.release.entity.gambit.ForumGambitDO"
<select
id=
"listGambit"
resultType=
"com.mmc.csf.release.entity.gambit.ForumGambitDO"
parameterType=
"com.mmc.csf.release.gambit.qo.ForumGambitQO"
>
parameterType=
"com.mmc.csf.release.gambit.qo.ForumGambitQO"
>
select gambit_name,gambit_icon,gambit_cover,gambit_property,post_count,
select
id,
gambit_name,gambit_icon,gambit_cover,gambit_property,post_count,
user_account_id,create_time,update_time from forum_gambit where 1=1 and check_status=1
user_account_id,create_time,update_time
,discussion_count
from forum_gambit where 1=1 and check_status=1
<if
test=
"gambitName!='' and gambitName!=null "
>
<if
test=
"gambitName!='' and gambitName!=null "
>
and gambit_name like concat ('%',#{gambitName},'%')
and gambit_name like concat ('%',#{gambitName},'%')
</if>
</if>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论