Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e977fdfa
authored
Nov 08, 2020
by
18356073052
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
素材模块新增audio_time 音频时长字段
1 parent
cc3f0f06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeMaterial.java
linkwe-wecom/src/main/resources/mapper/wecom/WeMaterialMapper.xml
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeMaterial.java
View file @
e977fdf
...
@@ -46,4 +46,9 @@ public class WeMaterial extends BaseEntity {
...
@@ -46,4 +46,9 @@ public class WeMaterial extends BaseEntity {
*/
*/
private
String
coverUrl
;
private
String
coverUrl
;
/**
* 音频时长
*/
private
String
audioTime
;
}
}
linkwe-wecom/src/main/resources/mapper/wecom/WeMaterialMapper.xml
View file @
e977fdf
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"audioTime"
column=
"audio_time"
/>
</resultMap>
</resultMap>
<insert
id=
"insertWeMaterial"
>
<insert
id=
"insertWeMaterial"
>
...
@@ -53,7 +54,10 @@
...
@@ -53,7 +54,10 @@
update_by,
update_by,
</if>
</if>
<if
test=
"updateTime!=null"
>
<if
test=
"updateTime!=null"
>
update_time
update_time,
</if>
<if
test=
"audioTime!=null"
>
audio_time
</if>
</if>
</trim>
</trim>
VALUES
VALUES
...
@@ -89,7 +93,10 @@
...
@@ -89,7 +93,10 @@
#{updateBy},
#{updateBy},
</if>
</if>
<if
test=
"updateTime!=null"
>
<if
test=
"updateTime!=null"
>
#{updateTime}
#{updateTime},
</if>
<if
test=
"audioTime!=null"
>
#{audioTime}
</if>
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -127,7 +134,10 @@
...
@@ -127,7 +134,10 @@
update_by=#{updateBy},
update_by=#{updateBy},
</if>
</if>
<if
test=
"updateTime!=null"
>
<if
test=
"updateTime!=null"
>
update_time=#{updateTime}
update_time=#{updateTime},
</if>
<if
test=
"audioTime!=null"
>
audio_time=#{audioTime}
</if>
</if>
<where>
<where>
<if
test=
"id!=null"
>
<if
test=
"id!=null"
>
...
@@ -175,7 +185,7 @@
...
@@ -175,7 +185,7 @@
<select
id=
"findWeMaterials"
resultMap=
"materialMap"
>
<select
id=
"findWeMaterials"
resultMap=
"materialMap"
>
SELECT
SELECT
wm.id,wm.category_id,wm.material_url,wm.content,wm.material_name,wm.digest,wm.cover_url,wm.create_by,wm.create_time,wm.update_by,wm.update_time
wm.id,wm.category_id,wm.material_url,wm.content,wm.material_name,wm.digest,wm.cover_url,wm.create_by,wm.create_time,wm.update_by,wm.update_time
,wm.audio_time
FROM we_material wm LEFT JOIN we_category wc ON wm.category_id=wc.id
FROM we_material wm LEFT JOIN we_category wc ON wm.category_id=wc.id
<where>
<where>
wm.del_flag=0
wm.del_flag=0
...
@@ -192,7 +202,7 @@
...
@@ -192,7 +202,7 @@
</select>
</select>
<sql
id=
"material"
>
<sql
id=
"material"
>
id,category_id,material_url,content,material_name,digest,cover_url,create_by,create_time,update_by,update_time
id,category_id,material_url,content,material_name,digest,cover_url,create_by,create_time,update_by,update_time
,audio_time
</sql>
</sql>
</mapper>
</mapper>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment