Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟
cust-api
Commits
875465e6
Commit
875465e6
authored
Dec 19, 2024
by
冷玲鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公告管理、banner管理:修改数据库字段
parent
78d56093
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
29 deletions
+42
-29
CmsActivity.java
.../org/rcisoft/business/cmsActivity/entity/CmsActivity.java
+18
-5
CmsNotice.java
...java/org/rcisoft/business/cmsNotice/entity/CmsNotice.java
+2
-2
CmsActivityMapper.xml
.../mapper/business/cmsActivity.mapper/CmsActivityMapper.xml
+13
-13
CmsNoticeMapper.xml
...rces/mapper/business/cmsNotice.mapper/CmsNoticeMapper.xml
+9
-9
No files found.
src/main/java/org/rcisoft/business/cmsActivity/entity/CmsActivity.java
View file @
875465e6
...
@@ -78,11 +78,11 @@ public class CmsActivity extends CyIdIncreEntity<CmsActivity> {
...
@@ -78,11 +78,11 @@ public class CmsActivity extends CyIdIncreEntity<CmsActivity> {
/**
/**
* @desc 是否需要实名认证
* @desc 是否需要实名认证
* @column is_
real_name_
authentication
* @column is_authentication
* @default
* @default
*/
*/
@Excel
(
name
=
"是否需要实名认证"
)
@Excel
(
name
=
"是否需要实名认证"
)
private
Integer
is
RealName
Authentication
;
private
Integer
isAuthentication
;
/**
/**
* @desc 报名所需费用
* @desc 报名所需费用
...
@@ -102,13 +102,13 @@ public class CmsActivity extends CyIdIncreEntity<CmsActivity> {
...
@@ -102,13 +102,13 @@ public class CmsActivity extends CyIdIncreEntity<CmsActivity> {
/**
/**
* @desc 发布日期
* @desc 发布日期
* @column
release
_date
* @column
publish
_date
* @default
* @default
*/
*/
@Excel
(
name
=
"发布日期"
)
@Excel
(
name
=
"发布日期"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
release
Date
;
private
Date
publish
Date
;
/**
/**
...
@@ -119,8 +119,21 @@ public class CmsActivity extends CyIdIncreEntity<CmsActivity> {
...
@@ -119,8 +119,21 @@ public class CmsActivity extends CyIdIncreEntity<CmsActivity> {
@Excel
(
name
=
"内容"
,
orderNum
=
"11"
,
width
=
20
)
@Excel
(
name
=
"内容"
,
orderNum
=
"11"
,
width
=
20
)
private
String
details
;
private
String
details
;
/**
* @desc 发布状态(1启用、0禁用)
* @column publish_status
* @default
*/
@Excel
(
name
=
"发布状态(1启用、0禁用)"
,
orderNum
=
"11"
,
width
=
20
)
private
String
publishStatus
;
/**
* @desc 备注
* @column remarks
* @default
*/
@Excel
(
name
=
"备注"
,
orderNum
=
"11"
,
width
=
20
)
private
String
remarks
;
/**
/**
* 开始时间
* 开始时间
*/
*/
...
...
src/main/java/org/rcisoft/business/cmsNotice/entity/CmsNotice.java
View file @
875465e6
...
@@ -71,13 +71,13 @@ public class CmsNotice extends CyIdIncreEntity<CmsNotice> {
...
@@ -71,13 +71,13 @@ public class CmsNotice extends CyIdIncreEntity<CmsNotice> {
/**
/**
* @desc 发布日期
* @desc 发布日期
* @column
release
_date
* @column
publish
_date
* @default
* @default
*/
*/
@Excel
(
name
=
"发布日期"
)
@Excel
(
name
=
"发布日期"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
release
Date
;
private
Date
publish
Date
;
/**
/**
...
...
src/main/resources/mapper/business/cmsActivity.mapper/CmsActivityMapper.xml
View file @
875465e6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<resultMap
id=
"BaseResultMap"
type=
"org.rcisoft.business.cmsActivity.entity.CmsActivity"
>
<resultMap
id=
"BaseResultMap"
type=
"org.rcisoft.business.cmsActivity.entity.CmsActivity"
>
<id
column=
"business_id"
jdbcType=
"INTEGER"
property=
"businessId"
/>
<id
column=
"business_id"
jdbcType=
"INTEGER"
property=
"businessId"
/>
<result
column=
"summary"
jdbcType=
"VARCHAR"
property=
"summary"
/>
<result
column=
"summary"
jdbcType=
"VARCHAR"
property=
"summary"
/>
<result
column=
"
release_date"
jdbcType=
"DATE"
property=
"release
Date"
/>
<result
column=
"
publish_date"
jdbcType=
"DATE"
property=
"publish
Date"
/>
<result
column=
"create_by"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"create_by"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"create_date"
jdbcType=
"TIMESTAMP"
property=
"createDate"
/>
<result
column=
"create_date"
jdbcType=
"TIMESTAMP"
property=
"createDate"
/>
<result
column=
"update_by"
jdbcType=
"VARCHAR"
property=
"updateBy"
/>
<result
column=
"update_by"
jdbcType=
"VARCHAR"
property=
"updateBy"
/>
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<result
column=
"participant_count"
jdbcType=
"VARCHAR"
property=
"participantCount"
/>
<result
column=
"participant_count"
jdbcType=
"VARCHAR"
property=
"participantCount"
/>
<result
column=
"is_registration"
jdbcType=
"INTEGER"
property=
"isRegistration"
/>
<result
column=
"is_registration"
jdbcType=
"INTEGER"
property=
"isRegistration"
/>
<result
column=
"is_
real_name_authentication"
jdbcType=
"INTEGER"
property=
"isRealName
Authentication"
/>
<result
column=
"is_
authentication"
jdbcType=
"INTEGER"
property=
"is
Authentication"
/>
<result
column=
"registration_fee"
jdbcType=
"FLOAT"
property=
"registrationFee"
/>
<result
column=
"registration_fee"
jdbcType=
"FLOAT"
property=
"registrationFee"
/>
</resultMap>
</resultMap>
...
@@ -29,10 +29,10 @@
...
@@ -29,10 +29,10 @@
select * from cms_activity
select * from cms_activity
where 1=1
where 1=1
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
and
release
_date
>
= #{entity.beginTime}
and
publish
_date
>
= #{entity.beginTime}
</if>
</if>
<if
test=
"entity.endTime !=null and entity.endTime != '' "
>
<if
test=
"entity.endTime !=null and entity.endTime != '' "
>
and
release
_date
<
= #{entity.endTime}
and
publish
_date
<
= #{entity.endTime}
</if>
</if>
<if
test=
"entity.createBy !=null and entity.createBy != '' "
>
<if
test=
"entity.createBy !=null and entity.createBy != '' "
>
and create_by like concat('%',#{entity.createBy},'%')
and create_by like concat('%',#{entity.createBy},'%')
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<select
id=
"queryCmsActivityPaged"
resultMap=
"BaseResultMap"
>
<select
id=
"queryCmsActivityPaged"
resultMap=
"BaseResultMap"
>
SELECT ca.business_id,
SELECT ca.business_id,
ca.
release
_date,
ca.
publish
_date,
ca.create_by,
ca.create_by,
ca.create_date,
ca.create_date,
ca.update_by,
ca.update_by,
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
applicationList.participant_count,
applicationList.participant_count,
ca.is_top,
ca.is_top,
ca.is_registration,
ca.is_registration,
ca.is_
real_name_
authentication,
ca.is_authentication,
ca.registration_fee,
ca.registration_fee,
su.nick_name as nickName,
su.nick_name as nickName,
oi.path
oi.path
...
@@ -100,10 +100,10 @@
...
@@ -100,10 +100,10 @@
LEFT JOIN sys_user su on su.business_id = ca.create_by
LEFT JOIN sys_user su on su.business_id = ca.create_by
where ca.del_flag='0'
where ca.del_flag='0'
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
and
release
_date
>
= #{entity.beginTime}
and
publish
_date
>
= #{entity.beginTime}
</if>
</if>
<if
test=
"entity.endTime !=null and entity.endTime != '' "
>
<if
test=
"entity.endTime !=null and entity.endTime != '' "
>
and
release
_date
<
= #{entity.endTime}
and
publish
_date
<
= #{entity.endTime}
</if>
</if>
<if
test=
"entity.flag!=null and entity.flag != '' "
>
<if
test=
"entity.flag!=null and entity.flag != '' "
>
and ca.flag = #{entity.flag}
and ca.flag = #{entity.flag}
...
@@ -113,10 +113,10 @@
...
@@ -113,10 +113,10 @@
and create_by like concat('%',#{entity.createBy},'%')
and create_by like concat('%',#{entity.createBy},'%')
</if>
</if>
<if
test=
"entity.beginTime !=null "
>
<if
test=
"entity.beginTime !=null "
>
and ca.
release
_date
>
= #{entity.beginTime}
and ca.
publish
_date
>
= #{entity.beginTime}
</if>
</if>
<if
test=
"entity.endTime !=null "
>
<if
test=
"entity.endTime !=null "
>
and ca.
release
_date
<
= #{entity.endTime}
and ca.
publish
_date
<
= #{entity.endTime}
</if>
</if>
<if
test=
"entity.updateBy !=null and entity.updateBy != '' "
>
<if
test=
"entity.updateBy !=null and entity.updateBy != '' "
>
and update_by like concat('%',#{entity.updateBy},'%')
and update_by like concat('%',#{entity.updateBy},'%')
...
@@ -133,8 +133,8 @@
...
@@ -133,8 +133,8 @@
<if
test=
"entity.isRegistration !=null and entity.isRegistration != '' "
>
<if
test=
"entity.isRegistration !=null and entity.isRegistration != '' "
>
and is_registration = #{entity.isRegistration}
and is_registration = #{entity.isRegistration}
</if>
</if>
<if
test=
"entity.is
RealNameAuthentication !=null and entity.isRealName
Authentication != '' "
>
<if
test=
"entity.is
Authentication !=null and entity.is
Authentication != '' "
>
and is_
real_name_authentication = #{entity.isRealName
Authentication}
and is_
authentication = #{entity.is
Authentication}
</if>
</if>
<if
test=
"entity.isRecommended !=null and entity.isRecommended != '' "
>
<if
test=
"entity.isRecommended !=null and entity.isRecommended != '' "
>
and is_recommended = #{entity.isRecommended}
and is_recommended = #{entity.isRecommended}
...
@@ -142,7 +142,7 @@
...
@@ -142,7 +142,7 @@
<if
test=
"entity.isTop !=null and entity.isTop != '' "
>
<if
test=
"entity.isTop !=null and entity.isTop != '' "
>
and is_top = #{entity.isTop}
and is_top = #{entity.isTop}
</if>
</if>
ORDER BY ca.
release
_date DESC
ORDER BY ca.
publish
_date DESC
</select>
</select>
<update
id=
"deleteCmsActivity"
parameterType=
"java.lang.Integer"
>
<update
id=
"deleteCmsActivity"
parameterType=
"java.lang.Integer"
>
update cms_activity
update cms_activity
...
...
src/main/resources/mapper/business/cmsNotice.mapper/CmsNoticeMapper.xml
View file @
875465e6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<resultMap
id=
"BaseResultMap"
type=
"org.rcisoft.business.cmsNotice.entity.CmsNotice"
>
<resultMap
id=
"BaseResultMap"
type=
"org.rcisoft.business.cmsNotice.entity.CmsNotice"
>
<id
column=
"business_id"
jdbcType=
"INTEGER"
property=
"businessId"
/>
<id
column=
"business_id"
jdbcType=
"INTEGER"
property=
"businessId"
/>
<result
column=
"summary"
jdbcType=
"VARCHAR"
property=
"summary"
/>
<result
column=
"summary"
jdbcType=
"VARCHAR"
property=
"summary"
/>
<result
column=
"
release_date"
jdbcType=
"DATE"
property=
"release
Date"
/>
<result
column=
"
publish_date"
jdbcType=
"DATE"
property=
"publish
Date"
/>
<result
column=
"create_by"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"create_by"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"create_date"
jdbcType=
"TIMESTAMP"
property=
"createDate"
/>
<result
column=
"create_date"
jdbcType=
"TIMESTAMP"
property=
"createDate"
/>
<result
column=
"update_by"
jdbcType=
"VARCHAR"
property=
"updateBy"
/>
<result
column=
"update_by"
jdbcType=
"VARCHAR"
property=
"updateBy"
/>
...
@@ -25,10 +25,10 @@
...
@@ -25,10 +25,10 @@
select * from cms_notice
select * from cms_notice
where 1=1
where 1=1
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
and
release
_date
>
= #{entity.beginTime}
and
publish
_date
>
= #{entity.beginTime}
</if>
</if>
<if
test=
"entity.endTime !=null and entity.endTime != '' "
>
<if
test=
"entity.endTime !=null and entity.endTime != '' "
>
and
release
_date
<
= #{entity.endTime}
and
publish
_date
<
= #{entity.endTime}
</if>
</if>
<if
test=
"entity.createBy !=null and entity.createBy != '' "
>
<if
test=
"entity.createBy !=null and entity.createBy != '' "
>
and create_by like concat('%',#{entity.createBy},'%')
and create_by like concat('%',#{entity.createBy},'%')
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<select
id=
"queryCmsNoticePaged"
resultMap=
"BaseResultMap"
>
<select
id=
"queryCmsNoticePaged"
resultMap=
"BaseResultMap"
>
SELECT cn.business_id,
SELECT cn.business_id,
cn.
release
_date,
cn.
publish
_date,
cn.create_by,
cn.create_by,
cn.create_date,
cn.create_date,
cn.update_by,
cn.update_by,
...
@@ -85,10 +85,10 @@
...
@@ -85,10 +85,10 @@
LEFT JOIN sys_user su on su.business_id = cn.create_by
LEFT JOIN sys_user su on su.business_id = cn.create_by
where cn.del_flag='0'
where cn.del_flag='0'
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
and
release
_date
>
= #{entity.beginTime}
and
publish
_date
>
= #{entity.beginTime}
</if>
</if>
<if
test=
"entity.endTime !=null and entity.endTime != '' "
>
<if
test=
"entity.endTime !=null and entity.endTime != '' "
>
and
release
_date
<
= #{entity.endTime}
and
publish
_date
<
= #{entity.endTime}
</if>
</if>
<if
test=
"entity.flag!=null and entity.flag != '' "
>
<if
test=
"entity.flag!=null and entity.flag != '' "
>
and cn.flag = #{entity.flag}
and cn.flag = #{entity.flag}
...
@@ -97,10 +97,10 @@
...
@@ -97,10 +97,10 @@
and create_by like concat('%',#{entity.createBy},'%')
and create_by like concat('%',#{entity.createBy},'%')
</if>
</if>
<if
test=
"entity.beginTime !=null "
>
<if
test=
"entity.beginTime !=null "
>
and cn.
release
_date
>
= #{entity.beginTime}
and cn.
publish
_date
>
= #{entity.beginTime}
</if>
</if>
<if
test=
"entity.endTime !=null "
>
<if
test=
"entity.endTime !=null "
>
and cn.
release
_date
<
= #{entity.endTime}
and cn.
publish
_date
<
= #{entity.endTime}
</if>
</if>
<if
test=
"entity.updateBy !=null and entity.updateBy != '' "
>
<if
test=
"entity.updateBy !=null and entity.updateBy != '' "
>
and update_by like concat('%',#{entity.updateBy},'%')
and update_by like concat('%',#{entity.updateBy},'%')
...
@@ -117,7 +117,7 @@
...
@@ -117,7 +117,7 @@
<if
test=
"entity.isTop !=null and entity.isTop != '' "
>
<if
test=
"entity.isTop !=null and entity.isTop != '' "
>
and is_top = #{entity.isTop}
and is_top = #{entity.isTop}
</if>
</if>
ORDER BY cn.
release
_date DESC
ORDER BY cn.
publish
_date DESC
</select>
</select>
<update
id=
"deleteCmsNotice"
parameterType=
"java.lang.Integer"
>
<update
id=
"deleteCmsNotice"
parameterType=
"java.lang.Integer"
>
update cms_notice
update cms_notice
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment