Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
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
徐少华
midjourney-proxy
Commits
1e5145d3
Commit
1e5145d3
authored
Apr 21, 2020
by
阮思源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加开关
parent
1122bdf6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
3 deletions
+34
-3
RightsSetting.java
...a/com/pcloud/book/rightsSetting/entity/RightsSetting.java
+10
-0
RightsSettingMapper.xml
...in/resources/mapper/rightssetting/RightsSettingMapper.xml
+24
-3
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/entity/RightsSetting.java
View file @
1e5145d3
...
...
@@ -24,6 +24,16 @@ public class RightsSetting extends BaseTempletClassify {
private
Long
subjectLabelId
;
@ApiModelProperty
(
"线上网课是否开启"
)
private
Boolean
onlineCourseOpen
;
@ApiModelProperty
(
"学习工具是否开启"
)
private
Boolean
learningToolOpen
;
@ApiModelProperty
(
"抽奖是否开启"
)
private
Boolean
drawNowOpen
;
@ApiModelProperty
(
"线上网课集合"
)
private
List
<
RightsNowItem
>
onlineCourseNowItems
;
...
...
pcloud-service-book/src/main/resources/mapper/rightssetting/RightsSettingMapper.xml
View file @
1e5145d3
...
...
@@ -15,6 +15,9 @@
<result
column=
"enable_group_service"
property=
"enableGroupService"
jdbcType=
"INTEGER"
/>
<result
column=
"rights_setting_type"
property=
"rightsSettingType"
jdbcType=
"INTEGER"
/>
<result
column=
"book_id"
property=
"bookId"
jdbcType=
"BIGINT"
/>
<result
column=
"online_course_open"
property=
"onlineCourseOpen"
jdbcType=
"BOOLEAN"
/>
<result
column=
"learning_tool_open"
property=
"learningToolOpen"
jdbcType=
"BOOLEAN"
/>
<result
column=
"draw_open"
property=
"drawNowOpen"
jdbcType=
"BOOLEAN"
/>
</resultMap>
<resultMap
id=
"DtoResultMap"
type=
"com.pcloud.book.rightsSetting.dto.RightsSettingDto"
>
...
...
@@ -32,10 +35,14 @@
<result
column=
"rights_setting_type"
property=
"rightsSettingType"
jdbcType=
"INTEGER"
/>
<result
column=
"book_id"
property=
"bookId"
jdbcType=
"BIGINT"
/>
<result
column=
"BOOK_NAME"
property=
"bookName"
jdbcType=
"VARCHAR"
/>
<result
column=
"online_course_open"
property=
"onlineCourseOpen"
jdbcType=
"BOOLEAN"
/>
<result
column=
"learning_tool_open"
property=
"learningToolOpen"
jdbcType=
"BOOLEAN"
/>
<result
column=
"draw_open"
property=
"drawNowOpen"
jdbcType=
"BOOLEAN"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, introduce, detail, count, first_classify, second_classify, grade_label_id, subject_label_id,
create_time, update_time, enable_group_service, rights_setting_type, book_id
,online_course_open,learning_tool_open,draw_open
</sql>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.Long"
>
select
...
...
@@ -51,11 +58,13 @@
insert into rights_setting (introduce, detail,
count, first_classify, second_classify,
grade_label_id, subject_label_id, create_time,
update_time, enable_group_service, rights_setting_type, book_id)
update_time, enable_group_service, rights_setting_type, book_id,
online_course_open,learning_tool_open,draw_open)
values ( #{introduce,jdbcType=VARCHAR}, #{detail,jdbcType=VARCHAR},
#{count,jdbcType=INTEGER}, #{firstClassify,jdbcType=BIGINT}, #{secondClassify,jdbcType=BIGINT},
#{gradeLabelId,jdbcType=BIGINT}, #{subjectLabelId,jdbcType=BIGINT}, now(),
#{updateTime,jdbcType=TIMESTAMP}, #{enableGroupService}, #{rightsSettingType}, #{bookId})
#{updateTime,jdbcType=TIMESTAMP}, #{enableGroupService}, #{rightsSettingType}, #{bookId},
#{onlineCourseOpen},#{learningToolOpen},#{drawNowOpen})
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.pcloud.book.rightsSetting.entity.RightsSetting"
>
update rights_setting
...
...
@@ -96,6 +105,15 @@
<if
test=
"bookId != null"
>
book_id = #{bookId},
</if>
<if
test=
"onlineCourseOpen != null"
>
online_course_open = #{onlineCourseOpen},
</if>
<if
test=
"learningToolOpen != null"
>
learning_tool_open = #{learningToolOpen},
</if>
<if
test=
"drawNowOpen != null"
>
draw_open = #{drawNowOpen}
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
...
...
@@ -110,7 +128,10 @@
subject_label_id = #{subjectLabelId,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=TIMESTAMP},
enable_group_service = #{enableGroupService},
book_id = #{bookId}
book_id = #{bookId},
online_course_open = #{onlineCourseOpen},
learning_tool_open = #{learningToolOpen},
draw_open = #{drawNowOpen}
where id = #{id,jdbcType=BIGINT}
</update>
...
...
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