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
ee0ca50c
Commit
ee0ca50c
authored
Sep 17, 2021
by
田超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/1005436' into 'master'
feat:[1005436]配置H5页面,增加字体颜色配置 See merge request rays/pcloud-book!1414
parents
b5e866e6
e94991ef
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
4 deletions
+23
-4
ResourcePageBizImpl.java
...a/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
+4
-0
ResourcePage.java
.../main/java/com/pcloud/book/group/entity/ResourcePage.java
+4
-0
ResourcePageVO.java
...rc/main/java/com/pcloud/book/group/vo/ResourcePageVO.java
+4
-0
UpdateResourcePageVO.java
...n/java/com/pcloud/book/group/vo/UpdateResourcePageVO.java
+4
-0
ResourcePageDao.xml
...-book/src/main/resources/mapper/group/ResourcePageDao.xml
+7
-4
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
View file @
ee0ca50c
...
@@ -230,6 +230,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -230,6 +230,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
//校验能否开启小睿
//校验能否开启小睿
this
.
checkOpenRays
(
resourcePage
.
getBookId
(),
updateResourcePageVO
.
getOpenRays
());
this
.
checkOpenRays
(
resourcePage
.
getBookId
(),
updateResourcePageVO
.
getOpenRays
());
resourcePage
.
setBackgroundImg
(
updateResourcePageVO
.
getBackgroundImg
());
resourcePage
.
setBackgroundImg
(
updateResourcePageVO
.
getBackgroundImg
());
resourcePage
.
setFontColor
(
updateResourcePageVO
.
getFontColor
());
resourcePageDao
.
update
(
resourcePage
);
resourcePageDao
.
update
(
resourcePage
);
}
}
if
(
updateResourcePageVO
.
getOpenRays
()
==
1
)
{
if
(
updateResourcePageVO
.
getOpenRays
()
==
1
)
{
...
@@ -295,6 +296,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -295,6 +296,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
resourcePage
.
setBackgroundImg
(
updateResourcePageVO
.
getBackgroundImg
());
resourcePage
.
setBackgroundImg
(
updateResourcePageVO
.
getBackgroundImg
());
resourcePage
.
setBookId
(
null
==
dto
?
null
:
dto
.
getBookId
());
resourcePage
.
setBookId
(
null
==
dto
?
null
:
dto
.
getBookId
());
resourcePage
.
setChannelId
(
null
==
dto
?
null
:
dto
.
getChannelId
());
resourcePage
.
setChannelId
(
null
==
dto
?
null
:
dto
.
getChannelId
());
resourcePage
.
setFontColor
(
updateResourcePageVO
.
getFontColor
());
resourcePageDao
.
update
(
resourcePage
);
resourcePageDao
.
update
(
resourcePage
);
}
}
if
(
updateResourcePageVO
.
getOpenRays
()
==
1
)
{
if
(
updateResourcePageVO
.
getOpenRays
()
==
1
)
{
...
@@ -1489,6 +1491,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -1489,6 +1491,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
resourcePageVO
.
setBackgroundImg
(
resourcePage
.
getBackgroundImg
());
resourcePageVO
.
setBackgroundImg
(
resourcePage
.
getBackgroundImg
());
resourcePageVO
.
setNavigationColor
(
resourcePage
.
getNavigationColor
());
resourcePageVO
.
setNavigationColor
(
resourcePage
.
getNavigationColor
());
resourcePageVO
.
setNavigationFormat
(
resourcePage
.
getNavigationFormat
());
resourcePageVO
.
setNavigationFormat
(
resourcePage
.
getNavigationFormat
());
resourcePageVO
.
setFontColor
(
resourcePage
.
getFontColor
());
}
}
return
resourcePageVO
;
return
resourcePageVO
;
}
}
...
@@ -1532,6 +1535,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -1532,6 +1535,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
resourcePageVO
.
setBackgroundImg
(
resourcePage
.
getBackgroundImg
());
resourcePageVO
.
setBackgroundImg
(
resourcePage
.
getBackgroundImg
());
resourcePageVO
.
setNavigationColor
(
resourcePage
.
getNavigationColor
());
resourcePageVO
.
setNavigationColor
(
resourcePage
.
getNavigationColor
());
resourcePageVO
.
setNavigationFormat
(
resourcePage
.
getNavigationFormat
());
resourcePageVO
.
setNavigationFormat
(
resourcePage
.
getNavigationFormat
());
resourcePageVO
.
setFontColor
(
resourcePage
.
getFontColor
());
}
}
return
resourcePageVO
;
return
resourcePageVO
;
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/entity/ResourcePage.java
View file @
ee0ca50c
...
@@ -74,4 +74,8 @@ public class ResourcePage extends BaseEntity {
...
@@ -74,4 +74,8 @@ public class ResourcePage extends BaseEntity {
* 导航版式
* 导航版式
*/
*/
private
Integer
navigationFormat
;
private
Integer
navigationFormat
;
/**
* 字体颜色
*/
private
String
fontColor
;
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/vo/ResourcePageVO.java
View file @
ee0ca50c
...
@@ -107,4 +107,8 @@ public class ResourcePageVO extends BaseDto {
...
@@ -107,4 +107,8 @@ public class ResourcePageVO extends BaseDto {
* 导航版式
* 导航版式
*/
*/
private
Integer
navigationFormat
;
private
Integer
navigationFormat
;
/**
* 字体颜色
*/
private
String
fontColor
;
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/vo/UpdateResourcePageVO.java
View file @
ee0ca50c
...
@@ -62,4 +62,8 @@ public class UpdateResourcePageVO {
...
@@ -62,4 +62,8 @@ public class UpdateResourcePageVO {
@ApiModelProperty
(
"实体书购买"
)
@ApiModelProperty
(
"实体书购买"
)
private
List
<
ResourcePageBookstore
>
resourcePageBookstoreList
;
private
List
<
ResourcePageBookstore
>
resourcePageBookstoreList
;
/**
* 字体颜色
*/
private
String
fontColor
;
}
}
pcloud-service-book/src/main/resources/mapper/group/ResourcePageDao.xml
View file @
ee0ca50c
...
@@ -21,11 +21,12 @@
...
@@ -21,11 +21,12 @@
<result
property=
"backgroundImg"
column=
"background_img"
jdbcType=
"VARCHAR"
/>
<result
property=
"backgroundImg"
column=
"background_img"
jdbcType=
"VARCHAR"
/>
<result
property=
"navigationColor"
column=
"navigation_color"
jdbcType=
"INTEGER"
/>
<result
property=
"navigationColor"
column=
"navigation_color"
jdbcType=
"INTEGER"
/>
<result
property=
"navigationFormat"
column=
"navigation_format"
jdbcType=
"INTEGER"
/>
<result
property=
"navigationFormat"
column=
"navigation_format"
jdbcType=
"INTEGER"
/>
<result
property=
"fontColor"
column=
"font_color"
jdbcType=
"VARCHAR"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, book_group_id, style, show_book, open_rays, open_food, create_time, update_time, create_user, qrcode_url, scene_id, official_scene_id,
id, book_group_id, style, show_book, open_rays, open_food, create_time, update_time, create_user, qrcode_url, scene_id, official_scene_id,
book_cover, book_id, channel_id, background_img, navigation_color, navigation_format
book_cover, book_id, channel_id, background_img, navigation_color, navigation_format
, font_color
</sql>
</sql>
<!--查询单个-->
<!--查询单个-->
...
@@ -40,9 +41,9 @@
...
@@ -40,9 +41,9 @@
<!--新增所有列-->
<!--新增所有列-->
<insert
id=
"insert"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
<insert
id=
"insert"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into book.resource_page(book_group_id, style, show_book, open_rays, open_food, create_time, update_time, create_user,
insert into book.resource_page(book_group_id, style, show_book, open_rays, open_food, create_time, update_time, create_user,
qrcode_url, scene_id, book_cover, book_id, channel_id, background_img)
qrcode_url, scene_id, book_cover, book_id, channel_id, background_img
, font_color
)
values (#{bookGroupId}, #{style}, #{showBook}, #{openRays}, IFNULL(#{openFood},0), now(), now(), #{createUser}, #{qrcodeUrl}, #{sceneId}, #{bookCover},
values (#{bookGroupId}, #{style}, #{showBook}, #{openRays}, IFNULL(#{openFood},0), now(), now(), #{createUser}, #{qrcodeUrl}, #{sceneId}, #{bookCover},
#{bookId}, #{channelId}, #{backgroundImg})
#{bookId}, #{channelId}, #{backgroundImg}
, #{fontColor}
)
</insert>
</insert>
<!--通过主键修改数据-->
<!--通过主键修改数据-->
...
@@ -79,6 +80,7 @@
...
@@ -79,6 +80,7 @@
book_cover = #{bookCover},
book_cover = #{bookCover},
update_time = NOW(),
update_time = NOW(),
background_img = #{backgroundImg},
background_img = #{backgroundImg},
font_color = #{fontColor},
</set>
</set>
where id = #{id}
where id = #{id}
</update>
</update>
...
@@ -108,7 +110,8 @@
...
@@ -108,7 +110,8 @@
p.scene_id,
p.scene_id,
p.background_img,
p.background_img,
p.navigation_color,
p.navigation_color,
p.navigation_format
p.navigation_format,
p.font_color
FROM
FROM
resource_page p
resource_page p
LEFT JOIN resource_page_item i ON p.id = i.resource_page_id
LEFT JOIN resource_page_item i ON p.id = i.resource_page_id
...
...
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