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 2d9a1b68
authored
Nov 08, 2020
by
18356073052
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
素材模块新增audio_time 音频时长字段
1 parent
1bd4c288
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 @
2d9a1b6
...
...
@@ -46,4 +46,9 @@ public class WeMaterial extends BaseEntity {
*/
private
String
coverUrl
;
/**
* 音频时长
*/
private
String
audioTime
;
}
linkwe-wecom/src/main/resources/mapper/wecom/WeMaterialMapper.xml
View file @
2d9a1b6
...
...
@@ -16,6 +16,7 @@
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"audioTime"
column=
"audio_time"
/>
</resultMap>
<insert
id=
"insertWeMaterial"
>
...
...
@@ -53,7 +54,10 @@
update_by,
</if>
<if
test=
"updateTime!=null"
>
update_time
update_time,
</if>
<if
test=
"audioTime!=null"
>
audio_time
</if>
</trim>
VALUES
...
...
@@ -89,7 +93,10 @@
#{updateBy},
</if>
<if
test=
"updateTime!=null"
>
#{updateTime}
#{updateTime},
</if>
<if
test=
"audioTime!=null"
>
#{audioTime}
</if>
</trim>
</insert>
...
...
@@ -127,7 +134,10 @@
update_by=#{updateBy},
</if>
<if
test=
"updateTime!=null"
>
update_time=#{updateTime}
update_time=#{updateTime},
</if>
<if
test=
"audioTime!=null"
>
audio_time=#{audioTime}
</if>
<where>
<if
test=
"id!=null"
>
...
...
@@ -175,7 +185,7 @@
<select
id=
"findWeMaterials"
resultMap=
"materialMap"
>
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
<where>
wm.del_flag=0
...
...
@@ -192,7 +202,7 @@
</select>
<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>
</mapper>
\ 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