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
37042409
Commit
37042409
authored
Dec 14, 2021
by
田超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/1006243' into 'master'
feat: [1006243] 会员背景图 See merge request rays/pcloud-book!1480
parents
26c20b78
9991e4e1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
16 deletions
+61
-16
ResourcePageColumn.java
...java/com/pcloud/book/group/entity/ResourcePageColumn.java
+11
-0
ResourceColumnAndServeVO.java
...va/com/pcloud/book/group/vo/ResourceColumnAndServeVO.java
+10
-0
UpdateResourceColumnVO.java
...java/com/pcloud/book/group/vo/UpdateResourceColumnVO.java
+10
-0
UpdateResourcePageVO.java
...n/java/com/pcloud/book/group/vo/UpdateResourcePageVO.java
+2
-0
ResourcePageColumnDao.xml
...src/main/resources/mapper/group/ResourcePageColumnDao.xml
+28
-16
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/entity/ResourcePageColumn.java
View file @
37042409
...
@@ -56,4 +56,14 @@ public class ResourcePageColumn extends BaseEntity {
...
@@ -56,4 +56,14 @@ public class ResourcePageColumn extends BaseEntity {
* 导航id
* 导航id
*/
*/
private
Long
navigationId
;
private
Long
navigationId
;
/**
* 背景图类型
*/
private
Integer
backgroundType
;
/**
* 背景图地址
*/
private
String
backgroundUrl
;
}
}
\ No newline at end of file
pcloud-service-book/src/main/java/com/pcloud/book/group/vo/ResourceColumnAndServeVO.java
View file @
37042409
...
@@ -97,4 +97,14 @@ public class ResourceColumnAndServeVO extends BaseDto{
...
@@ -97,4 +97,14 @@ public class ResourceColumnAndServeVO extends BaseDto{
* 导航id
* 导航id
*/
*/
private
Long
navigationId
;
private
Long
navigationId
;
/**
* 背景图类型
*/
private
Integer
backgroundType
;
/**
* 背景图地址
*/
private
String
backgroundUrl
;
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/vo/UpdateResourceColumnVO.java
View file @
37042409
...
@@ -74,4 +74,14 @@ public class UpdateResourceColumnVO {
...
@@ -74,4 +74,14 @@ public class UpdateResourceColumnVO {
* 渠道id
* 渠道id
*/
*/
private
Long
channelId
;
private
Long
channelId
;
/**
* 背景图类型
*/
private
Integer
backgroundType
;
/**
* 背景图地址
*/
private
String
backgroundUrl
;
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/vo/UpdateResourcePageVO.java
View file @
37042409
...
@@ -80,4 +80,6 @@ public class UpdateResourcePageVO {
...
@@ -80,4 +80,6 @@ public class UpdateResourcePageVO {
@ApiModelProperty
(
"RAYS码落地页类型1本书服务2企微"
)
@ApiModelProperty
(
"RAYS码落地页类型1本书服务2企微"
)
private
Integer
landingPageType
;
private
Integer
landingPageType
;
}
}
pcloud-service-book/src/main/resources/mapper/group/ResourcePageColumnDao.xml
View file @
37042409
...
@@ -16,6 +16,8 @@
...
@@ -16,6 +16,8 @@
<result
property=
"createUser"
column=
"create_user"
jdbcType=
"INTEGER"
/>
<result
property=
"createUser"
column=
"create_user"
jdbcType=
"INTEGER"
/>
<result
property=
"labelIcon"
column=
"label_icon"
jdbcType=
"VARCHAR"
/>
<result
property=
"labelIcon"
column=
"label_icon"
jdbcType=
"VARCHAR"
/>
<result
property=
"navigationId"
column=
"navigation_id"
jdbcType=
"INTEGER"
/>
<result
property=
"navigationId"
column=
"navigation_id"
jdbcType=
"INTEGER"
/>
<result
property=
"backgroundType"
column=
"background_type"
jdbcType=
"INTEGER"
/>
<result
property=
"backgroundUrl"
column=
"background_url"
jdbcType=
"VARCHAR"
/>
</resultMap>
</resultMap>
<resultMap
id=
"ResourceColumnAndServe"
type=
"com.pcloud.book.group.vo.ResourceColumnAndServeVO"
>
<resultMap
id=
"ResourceColumnAndServe"
type=
"com.pcloud.book.group.vo.ResourceColumnAndServeVO"
>
...
@@ -29,12 +31,14 @@
...
@@ -29,12 +31,14 @@
<result
property=
"showMore"
column=
"show_more"
jdbcType=
"BOOLEAN"
/>
<result
property=
"showMore"
column=
"show_more"
jdbcType=
"BOOLEAN"
/>
<result
property=
"labelIcon"
column=
"label_icon"
jdbcType=
"VARCHAR"
/>
<result
property=
"labelIcon"
column=
"label_icon"
jdbcType=
"VARCHAR"
/>
<result
property=
"navigationId"
column=
"navigation_id"
jdbcType=
"INTEGER"
/>
<result
property=
"navigationId"
column=
"navigation_id"
jdbcType=
"INTEGER"
/>
<result
property=
"backgroundType"
column=
"background_type"
jdbcType=
"INTEGER"
/>
<result
property=
"backgroundUrl"
column=
"background_url"
jdbcType=
"VARCHAR"
/>
</resultMap>
</resultMap>
<!--查询单个-->
<!--查询单个-->
<select
id=
"getById"
resultMap=
"ResourcePageColumnMap"
>
<select
id=
"getById"
resultMap=
"ResourcePageColumnMap"
>
select
select
id, resource_page_id, column_type, column_name, column_format, column_seq, show_more,show_count, create_time, label_icon, navigation_id
id, resource_page_id, column_type, column_name, column_format, column_seq, show_more,show_count, create_time, label_icon, navigation_id
,background_type,background_url
from book.resource_page_column
from book.resource_page_column
where id = #{id}
where id = #{id}
</select>
</select>
...
@@ -42,9 +46,9 @@
...
@@ -42,9 +46,9 @@
<!--新增所有列-->
<!--新增所有列-->
<insert
id=
"insert"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
<insert
id=
"insert"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into book.resource_page_column(resource_page_id, column_type, column_name, column_format, column_seq,
insert into book.resource_page_column(resource_page_id, column_type, column_name, column_format, column_seq,
show_more, show_count, create_time, update_time, create_user, label_icon, navigation_id)
show_more, show_count, create_time, update_time, create_user, label_icon, navigation_id
,background_type,background_url
)
values (#{resourcePageId}, #{columnType}, #{columnName}, #{columnFormat}, #{columnSeq},
values (#{resourcePageId}, #{columnType}, #{columnName}, #{columnFormat}, #{columnSeq},
#{showMore}, #{showCount}, now(), now(), #{createUser}, #{labelIcon}, #{navigationId})
#{showMore}, #{showCount}, now(), now(), #{createUser}, #{labelIcon}, #{navigationId}
,#{backgroundType}, #{backgroundUrl}
)
</insert>
</insert>
<!--通过主键修改数据-->
<!--通过主键修改数据-->
...
@@ -74,6 +78,12 @@
...
@@ -74,6 +78,12 @@
<if
test=
"navigationId != null"
>
<if
test=
"navigationId != null"
>
navigation_id = #{navigationId},
navigation_id = #{navigationId},
</if>
</if>
<if
test=
"backgroundType != null"
>
background_type = #{backgroundType},
</if>
<if
test=
"backgroundUrl != null"
>
background_url = #{backgroundUrl},
</if>
</set>
</set>
where id = #{id}
where id = #{id}
</update>
</update>
...
@@ -96,16 +106,18 @@
...
@@ -96,16 +106,18 @@
<select
id=
"getColumnListByPageId"
resultMap=
"ResourceColumnAndServe"
parameterType=
"map"
>
<select
id=
"getColumnListByPageId"
resultMap=
"ResourceColumnAndServe"
parameterType=
"map"
>
SELECT
SELECT
resource_page_id,
resource_page_id,
id,
id,
column_type,
column_type,
column_name,
column_name,
column_format,
column_format,
column_seq,
column_seq,
show_count,
show_count,
show_more,
show_more,
label_icon,
label_icon,
navigation_id
navigation_id,
background_type,
background_url
FROM
FROM
resource_page_column
resource_page_column
WHERE
WHERE
...
@@ -120,7 +132,7 @@
...
@@ -120,7 +132,7 @@
<select
id=
"getByColumnTypeAndPage"
parameterType=
"map"
resultMap=
"ResourcePageColumnMap"
>
<select
id=
"getByColumnTypeAndPage"
parameterType=
"map"
resultMap=
"ResourcePageColumnMap"
>
select
select
id, resource_page_id, column_type, column_name, column_format, column_seq, show_more, show_count, create_time, navigation_id
id, resource_page_id, column_type, column_name, column_format, column_seq, show_more, show_count, create_time, navigation_id
, background_type, background_url
from book.resource_page_column
from book.resource_page_column
where resource_page_id = #{resourcePageId}
where resource_page_id = #{resourcePageId}
and column_type = #{columnType}
and column_type = #{columnType}
...
@@ -135,7 +147,7 @@
...
@@ -135,7 +147,7 @@
<select
id=
"getColumByMoveType"
parameterType=
"map"
resultMap=
"ResourcePageColumnMap"
>
<select
id=
"getColumByMoveType"
parameterType=
"map"
resultMap=
"ResourcePageColumnMap"
>
SELECT
SELECT
id, resource_page_id, column_type, column_name, column_format, column_seq, show_more, show_count, create_time, navigation_id
id, resource_page_id, column_type, column_name, column_format, column_seq, show_more, show_count, create_time, navigation_id
,background_type, background_url
FROM
FROM
book.resource_page_column
book.resource_page_column
WHERE
WHERE
...
@@ -179,7 +191,7 @@
...
@@ -179,7 +191,7 @@
<select
id=
"getByNavigation"
resultMap=
"ResourcePageColumnMap"
parameterType=
"long"
>
<select
id=
"getByNavigation"
resultMap=
"ResourcePageColumnMap"
parameterType=
"long"
>
select
select
id, resource_page_id, column_type, column_name, column_format, column_seq, show_more,show_count, create_time, label_icon, navigation_id
id, resource_page_id, column_type, column_name, column_format, column_seq, show_more,show_count, create_time, label_icon, navigation_id
, background_type, background_url
from book.resource_page_column
from book.resource_page_column
where navigation_id = #{navigationId}
where navigation_id = #{navigationId}
</select>
</select>
...
...
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