Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
ims
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
ims
Commits
16d3e183
提交
16d3e183
authored
6月 19, 2023
作者:
张小凤
提交者:
余乾开
7月 01, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Module and Banner(update)
上级
0f56df29
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
32 行增加
和
24 行删除
+32
-24
BannerInfoQO.java
...src/main/java/com/mmc/csf/infomation/qo/BannerInfoQO.java
+3
-3
ModuleInfoQO.java
...src/main/java/com/mmc/csf/infomation/qo/ModuleInfoQO.java
+7
-7
BannerInfoVO.java
...src/main/java/com/mmc/csf/infomation/vo/BannerInfoVO.java
+9
-3
ModuleInfoVO.java
.../main/java/com/mmc/csf/release/flyer/vo/ModuleInfoVO.java
+7
-5
ModuleInfoDao.xml
...ervice/src/main/resources/mapper/module/ModuleInfoDao.xml
+6
-6
没有找到文件。
csf-common/csf-common-model/src/main/java/com/mmc/csf/infomation/qo/BannerInfoQO.java
浏览文件 @
16d3e183
...
@@ -24,17 +24,17 @@ import java.io.Serializable;
...
@@ -24,17 +24,17 @@ import java.io.Serializable;
//@ApiModel(value = "com.mmc.csf.model.qo.BannerInfoQO", description = "banner查询QO")
//@ApiModel(value = "com.mmc.csf.model.qo.BannerInfoQO", description = "banner查询QO")
public
class
BannerInfoQO
implements
Serializable
{
public
class
BannerInfoQO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
7376276027677051853L
;
private
static
final
long
serialVersionUID
=
7376276027677051853L
;
@ApiModelProperty
(
value
=
"关键字"
)
@ApiModelProperty
(
value
=
"关键字"
,
required
=
true
)
private
String
keyword
;
private
String
keyword
;
@ApiModelProperty
(
value
=
"所属产品"
)
@ApiModelProperty
(
value
=
"所属产品"
)
private
Integer
moduleType
;
private
Integer
moduleType
;
@ApiModelProperty
(
value
=
"宣传模块id"
)
@ApiModelProperty
(
value
=
"宣传模块id"
)
private
Integer
moduleId
;
private
Integer
moduleId
;
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
)
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
,
example
=
"1"
)
@NotNull
(
message
=
"页码不能为空"
,
groups
=
Page
.
class
)
@NotNull
(
message
=
"页码不能为空"
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageNo
;
private
Integer
pageNo
;
@ApiModelProperty
(
value
=
"每页显示数"
,
required
=
true
)
@ApiModelProperty
(
value
=
"每页显示数"
,
required
=
true
,
example
=
"10"
)
@NotNull
(
message
=
"每页显示数不能为空"
,
groups
=
Page
.
class
)
@NotNull
(
message
=
"每页显示数不能为空"
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageSize
;
private
Integer
pageSize
;
...
...
csf-common/csf-common-model/src/main/java/com/mmc/csf/infomation/qo/ModuleInfoQO.java
浏览文件 @
16d3e183
...
@@ -22,19 +22,19 @@ import java.io.Serializable;
...
@@ -22,19 +22,19 @@ import java.io.Serializable;
//@ApiModel(value = "com.mmc.csf.model.qo.ModuleInfoQO", description = "宣传中心模块查询QO")
//@ApiModel(value = "com.mmc.csf.model.qo.ModuleInfoQO", description = "宣传中心模块查询QO")
public
class
ModuleInfoQO
implements
Serializable
{
public
class
ModuleInfoQO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
681758664049977685L
;
private
static
final
long
serialVersionUID
=
-
681758664049977685L
;
@ApiModelProperty
(
value
=
"
关键字
"
)
@ApiModelProperty
(
value
=
"
模块名称
"
)
private
String
keyword
;
private
String
moduleName
;
@ApiModelProperty
(
value
=
"所属产品"
)
@ApiModelProperty
(
value
=
"所属产品"
,
hidden
=
true
)
private
Integer
moduleType
;
private
Integer
moduleType
;
@ApiModelProperty
(
value
=
"
关键字
"
)
@ApiModelProperty
(
value
=
"
模块代码
"
)
private
String
moduleCode
;
private
String
moduleCode
;
@ApiModelProperty
(
value
=
"port:0云享飞,1无人机城"
)
@ApiModelProperty
(
value
=
"port:0云享飞,1无人机城"
,
hidden
=
true
)
private
Integer
port
;
private
Integer
port
;
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
)
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
,
example
=
"1"
)
@NotNull
(
message
=
"页码不能为空"
,
groups
=
Page
.
class
)
@NotNull
(
message
=
"页码不能为空"
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageNo
;
private
Integer
pageNo
;
@ApiModelProperty
(
value
=
"每页显示数"
,
required
=
true
)
@ApiModelProperty
(
value
=
"每页显示数"
,
required
=
true
,
example
=
"10"
)
@NotNull
(
message
=
"每页显示数不能为空"
,
groups
=
Page
.
class
)
@NotNull
(
message
=
"每页显示数不能为空"
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageSize
;
private
Integer
pageSize
;
...
...
csf-common/csf-common-model/src/main/java/com/mmc/csf/infomation/vo/BannerInfoVO.java
浏览文件 @
16d3e183
...
@@ -9,6 +9,7 @@ import lombok.AllArgsConstructor;
...
@@ -9,6 +9,7 @@ import lombok.AllArgsConstructor;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
javax.validation.constraints.NotEmpty
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
javax.validation.constraints.Size
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -31,7 +32,8 @@ public class BannerInfoVO implements Serializable {
...
@@ -31,7 +32,8 @@ public class BannerInfoVO implements Serializable {
@ApiModelProperty
(
value
=
"模块id"
)
@ApiModelProperty
(
value
=
"模块id"
)
@NotNull
(
message
=
"模块id不能为空"
,
groups
=
{
Create
.
class
,
Update
.
class
})
@NotNull
(
message
=
"模块id不能为空"
,
groups
=
{
Create
.
class
,
Update
.
class
})
private
Integer
moduleId
;
private
Integer
moduleId
;
@ApiModelProperty
(
value
=
"banner名称"
)
@ApiModelProperty
(
value
=
"banner名称"
,
example
=
"首页"
)
@NotNull
(
message
=
"名称不能为null"
,
groups
=
{
Create
.
class
,
Update
.
class
})
@Size
(
max
=
70
,
message
=
"名称不能超过70个字符"
,
groups
=
{
Create
.
class
,
Update
.
class
})
@Size
(
max
=
70
,
message
=
"名称不能超过70个字符"
,
groups
=
{
Create
.
class
,
Update
.
class
})
private
String
bannerName
;
private
String
bannerName
;
@ApiModelProperty
(
value
=
"banner类型"
)
@ApiModelProperty
(
value
=
"banner类型"
)
...
@@ -40,19 +42,23 @@ public class BannerInfoVO implements Serializable {
...
@@ -40,19 +42,23 @@ public class BannerInfoVO implements Serializable {
private
Integer
goodsId
;
private
Integer
goodsId
;
@ApiModelProperty
(
value
=
"点击后的页面地址"
)
@ApiModelProperty
(
value
=
"点击后的页面地址"
)
private
String
bannerUrl
;
private
String
bannerUrl
;
@NotNull
(
message
=
"请先上传内容图片"
,
groups
=
{
Create
.
class
,
Update
.
class
})
@ApiModelProperty
(
value
=
"banner图片url"
)
@ApiModelProperty
(
value
=
"banner图片url"
)
//
@NotEmpty(message = "请先上传内容图片", groups = { Create.class})
@NotEmpty
(
message
=
"请先上传内容图片"
,
groups
=
{
Create
.
class
})
private
String
bannerImg
;
private
String
bannerImg
;
@ApiModelProperty
(
value
=
"banner海报url"
)
@ApiModelProperty
(
value
=
"banner海报url"
)
private
String
bannerPoster
;
private
String
bannerPoster
;
@ApiModelProperty
(
value
=
"顺序"
)
@ApiModelProperty
(
value
=
"顺序"
)
@NotNull
(
message
=
"sort不能为空"
,
groups
=
{
Others
.
class
})
@NotNull
(
message
=
"sort不能为空"
,
groups
=
{
Others
.
class
})
private
Integer
sort
;
private
Integer
sort
;
@NotNull
(
message
=
"有效开始时间不能为null"
,
groups
=
{
Create
.
class
})
@ApiModelProperty
(
value
=
"有效开始时间"
)
@ApiModelProperty
(
value
=
"有效开始时间"
)
private
Date
startTime
;
private
Date
startTime
;
@NotNull
(
message
=
"有效结束时间不能为null"
,
groups
=
{
Create
.
class
})
@ApiModelProperty
(
value
=
"有效结束时间"
)
@ApiModelProperty
(
value
=
"有效结束时间"
)
private
Date
endTime
;
private
Date
endTime
;
@ApiModelProperty
(
value
=
"是否使用"
)
@ApiModelProperty
(
value
=
"是否使用 0未上架,1上架"
,
example
=
"1"
)
@NotNull
(
message
=
"状态不能为空"
,
groups
=
{
Create
.
class
})
private
Integer
using
;
private
Integer
using
;
@ApiModelProperty
(
value
=
"描述信息"
)
@ApiModelProperty
(
value
=
"描述信息"
)
private
String
detailInfo
;
private
String
detailInfo
;
...
...
csf-common/csf-common-model/src/main/java/com/mmc/csf/release/flyer/vo/ModuleInfoVO.java
浏览文件 @
16d3e183
...
@@ -27,14 +27,16 @@ public class ModuleInfoVO implements Serializable {
...
@@ -27,14 +27,16 @@ public class ModuleInfoVO implements Serializable {
@ApiModelProperty
(
value
=
"模块id"
)
@ApiModelProperty
(
value
=
"模块id"
)
@NotNull
(
message
=
"id不能为空"
,
groups
=
{
Update
.
class
})
@NotNull
(
message
=
"id不能为空"
,
groups
=
{
Update
.
class
})
private
Integer
id
;
private
Integer
id
;
@ApiModelProperty
(
value
=
"模块名称"
)
@ApiModelProperty
(
value
=
"模块名称"
,
example
=
"首页轮播图"
)
@Size
(
max
=
70
,
message
=
"模块名称不能超过70个字符"
,
groups
=
{
Create
.
class
,
Update
.
class
})
@NotNull
(
message
=
"moduleName不能为空"
,
groups
=
{
Create
.
class
,
Update
.
class
})
@Size
(
max
=
40
,
message
=
"必填,输入项,输入字符长度不超过20位"
,
groups
=
{
Create
.
class
,
Update
.
class
})
private
String
moduleName
;
private
String
moduleName
;
@ApiModelProperty
(
value
=
"所属产品"
)
@ApiModelProperty
(
value
=
"所属产品"
,
example
=
"0"
)
@NotNull
(
message
=
"moduleType不能为空"
,
groups
=
{
Create
.
class
,
Update
.
class
})
private
Integer
moduleType
;
private
Integer
moduleType
;
@ApiModelProperty
(
value
=
"code"
)
@ApiModelProperty
(
value
=
"code"
,
example
=
"HOME_CAROUSEL"
)
@NotEmpty
(
message
=
"moduleCode不能为空"
,
groups
=
{
Create
.
class
,
Update
.
class
})
@NotEmpty
(
message
=
"moduleCode不能为空"
,
groups
=
{
Create
.
class
,
Update
.
class
})
@Size
(
max
=
15
,
message
=
"moduleCode不能超过15个字符
"
,
groups
=
{
Create
.
class
,
Update
.
class
})
@Size
(
max
=
40
,
message
=
"必填,输入项,输入字符长度不超过20位
"
,
groups
=
{
Create
.
class
,
Update
.
class
})
private
String
moduleCode
;
private
String
moduleCode
;
@ApiModelProperty
(
value
=
"备注"
)
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
private
String
remark
;
...
...
release-service/src/main/resources/mapper/module/ModuleInfoDao.xml
浏览文件 @
16d3e183
...
@@ -72,11 +72,11 @@
...
@@ -72,11 +72,11 @@
select mi.id,mi.module_name,mi.module_type,mi.module_code,mi.remark,mi.is_deleted,mi.create_time,mi.update_time
select mi.id,mi.module_name,mi.module_type,mi.module_code,mi.remark,mi.is_deleted,mi.create_time,mi.update_time
from module_info mi
from module_info mi
where mi.is_deleted = 0
where mi.is_deleted = 0
<if
test=
"
keyword != null and keyword
!= '' "
>
<if
test=
"
moduleName != null and moduleName
!= '' "
>
and mi.module_name like CONCAT('%',#{
keyword
},'%')
and mi.module_name like CONCAT('%',#{
moduleName
},'%')
</if>
</if>
<if
test=
" moduleCode != null and moduleCode != '' "
>
<if
test=
" moduleCode != null and moduleCode != '' "
>
and mi.module_code
= #{moduleCode}
and mi.module_code
like CONCAT('%',#{moduleCode},'%')
</if>
</if>
<if
test=
" moduleType != null "
>
<if
test=
" moduleType != null "
>
and mi.module_type = #{moduleType}
and mi.module_type = #{moduleType}
...
@@ -93,11 +93,11 @@
...
@@ -93,11 +93,11 @@
<select
id=
"countListModuleInfoPage"
resultType=
"int"
parameterType=
"com.mmc.csf.infomation.qo.ModuleInfoQO"
>
<select
id=
"countListModuleInfoPage"
resultType=
"int"
parameterType=
"com.mmc.csf.infomation.qo.ModuleInfoQO"
>
select count(*) from module_info mi
select count(*) from module_info mi
where mi.is_deleted = 0
where mi.is_deleted = 0
<if
test=
"
keyword != null and keyword
!= '' "
>
<if
test=
"
moduleName != null and moduleName
!= '' "
>
and mi.module_name like CONCAT('%',#{
keyword
},'%')
and mi.module_name like CONCAT('%',#{
moduleName
},'%')
</if>
</if>
<if
test=
" moduleCode != null and moduleCode != '' "
>
<if
test=
" moduleCode != null and moduleCode != '' "
>
and mi.module_code
= #{moduleCode}
and mi.module_code
like CONCAT('%',#{moduleCode},'%')
</if>
</if>
<if
test=
" moduleType != null "
>
<if
test=
" moduleType != null "
>
and mi.module_type = #{moduleType}
and mi.module_type = #{moduleType}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论