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
127a21a7
Commit
127a21a7
authored
Sep 25, 2020
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: [1003632] 资讯页面第三方资源配置资讯页展示
parent
adca3898
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
5 deletions
+57
-5
AppletThirdResourcesDTO.java
...a/com/pcloud/book/applet/dto/AppletThirdResourcesDTO.java
+12
-0
AppletThirdResources.java
...a/com/pcloud/book/applet/entity/AppletThirdResources.java
+13
-0
AppletThirdResources.xml
...src/main/resources/mapper/applet/AppletThirdResources.xml
+32
-5
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/applet/dto/AppletThirdResourcesDTO.java
View file @
127a21a7
...
...
@@ -92,5 +92,17 @@ public class AppletThirdResourcesDTO extends BaseDto {
private
List
<
AppletChartDateDTO
>
browseList
;
@ApiModelProperty
(
"顶图"
)
private
String
topImgUrl
;
@ApiModelProperty
(
"浮动图"
)
private
String
floatImgUrl
;
@ApiModelProperty
(
"按钮图"
)
private
String
buttonImgUrl
;
@ApiModelProperty
(
"位置 1 顶部 2 底部"
)
private
Integer
showType
;
}
pcloud-service-book/src/main/java/com/pcloud/book/applet/entity/AppletThirdResources.java
View file @
127a21a7
...
...
@@ -46,4 +46,16 @@ public class AppletThirdResources extends BaseEntity {
@ApiModelProperty
(
"素材地址"
)
private
String
materialUrl
;
@ApiModelProperty
(
"顶图"
)
private
String
topImgUrl
;
@ApiModelProperty
(
"浮动图"
)
private
String
floatImgUrl
;
@ApiModelProperty
(
"按钮图"
)
private
String
buttonImgUrl
;
@ApiModelProperty
(
"位置 1 顶部 2 底部"
)
private
Integer
showType
;
}
\ No newline at end of file
pcloud-service-book/src/main/resources/mapper/applet/AppletThirdResources.xml
View file @
127a21a7
...
...
@@ -17,10 +17,15 @@
<result
column=
"update_time"
property=
"updateTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"route_code"
property=
"routeCode"
jdbcType=
"TINYINT"
/>
<result
column=
"guide"
property=
"guide"
jdbcType=
"VARCHAR"
/>
<result
column=
"top_img_url"
property=
"topImgUrl"
jdbcType=
"VARCHAR"
/>
<result
column=
"float_img_url"
property=
"floatImgUrl"
jdbcType=
"VARCHAR"
/>
<result
column=
"button_img_url"
property=
"buttonImgUrl"
jdbcType=
"VARCHAR"
/>
<result
column=
"show_type"
property=
"showType"
jdbcType=
"TINYINT"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,resource_number,resource_type,resource_name,app_Id,resource_source,resource_img_url,resource_url,remark,create_time,update_time,creator,updator,route_code,guide
id,resource_number,resource_type,resource_name,app_Id,resource_source,resource_img_url,resource_url,remark,create_time,update_time,
creator,updator,route_code,guide,top_img_url,float_img_url,button_img_url,show_type
</sql>
...
...
@@ -66,7 +71,11 @@
a.updator AS updateTime,
a.route_code AS routeCode,
a.guide AS guide,
b.material_url AS materialUrl
b.material_url AS materialUrl,
a.top_img_url topImgUrl,
a.float_img_url floatImgUrl,
a.button_img_url buttonImgUrl,
a.show_type showType
from applet_third_resources a
left join biz_material b on a.id = b.biz_id and b.biz_type = 1
where 1=1
...
...
@@ -101,7 +110,12 @@
bm.material_url materialUrl,
third.route_code routeCode,
third.guide,
third.resource_source source
third.resource_source source,
third.guide,
third.top_img_url topImgUrl,
third.float_img_url floatImgUrl,
third.button_img_url buttonImgUrl,
third.show_type showType
FROM
applet_third_resources_relation relation
LEFT JOIN applet_third_resources third ON relation.third_resources_id = third.id
...
...
@@ -158,12 +172,13 @@
insert into applet_third_resources ( resource_number,resource_type,resource_name,
app_Id,resource_source,resource_img_url,
resource_url,remark,create_time,
update_time,creator,updator,route_code,guide
update_time,creator,updator,route_code,guide
, top_img_url, float_img_url, button_img_url, show_type
)
values (#{number,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, #{name,jdbcType=VARCHAR},
#{appletsId,jdbcType=VARCHAR}, #{source,jdbcType=VARCHAR}, #{resourceImgUrl,jdbcType=VARCHAR},
#{url,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, now(),
now(), #{creator,jdbcType=BIGINT}, #{updator,jdbcType=BIGINT},#{routeCode,jdbcType=TINYINT}, #{guide,jdbcType=VARCHAR}
now(), #{creator,jdbcType=BIGINT}, #{updator,jdbcType=BIGINT},#{routeCode,jdbcType=TINYINT}, #{guide,jdbcType=VARCHAR},
#{topImgUrl}, #{floatImgUrl}, #{buttonImgUrl}, #{showType}
)
</insert>
...
...
@@ -201,6 +216,18 @@
<if
test=
"guide != null"
>
guide = #{guide,jdbcType=VARCHAR},
</if>
<if
test=
"topImgUrl != null"
>
top_img_url = #{topImgUrl},
</if>
<if
test=
"floatImgUrl != null"
>
float_img_url = #{floatImgUrl},
</if>
<if
test=
"buttonImgUrl != null"
>
button_img_url = #{buttonImgUrl},
</if>
<if
test=
"showType != null"
>
show_type = #{showType},
</if>
update_time = NOW(),
</set>
where id = #{id,jdbcType=BIGINT}
...
...
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