Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
Project
Project
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
耿迪迪
gassafety
Commits
d62e7566
Commit
d62e7566
authored
Sep 22, 2021
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频查询 gengdidi
parent
9040e551
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
14 deletions
+31
-14
TVideoManager.java
...src/main/java/com/zehong/system/domain/TVideoManager.java
+21
-7
TVideoManagerMapper.xml
.../src/main/resources/mapper/system/TVideoManagerMapper.xml
+10
-7
No files found.
gassafety-system/src/main/java/com/zehong/system/domain/TVideoManager.java
View file @
d62e7566
...
...
@@ -10,14 +10,14 @@ import com.zehong.common.core.domain.BaseEntity;
* 视频管理对象 t_video_manager
*
* @author zehong
* @date 2021-09-
18
* @date 2021-09-
22
*/
public
class
TVideoManager
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 视频管理id */
private
Stri
ng
videoManagerId
;
private
Lo
ng
videoManagerId
;
/** 视频名称 */
@Excel
(
name
=
"视频名称"
)
...
...
@@ -25,7 +25,7 @@ public class TVideoManager extends BaseEntity
/** 视频资源id */
@Excel
(
name
=
"视频资源id"
)
private
Lo
ng
resourceId
;
private
Stri
ng
resourceId
;
/** 经度 */
@Excel
(
name
=
"经度"
)
...
...
@@ -39,12 +39,16 @@ public class TVideoManager extends BaseEntity
@Excel
(
name
=
"视频地址"
)
private
String
videoAddress
;
public
void
setVideoManagerId
(
String
videoManagerId
)
/** 视频类型 */
@Excel
(
name
=
"视频类型"
)
private
String
type
;
public
void
setVideoManagerId
(
Long
videoManagerId
)
{
this
.
videoManagerId
=
videoManagerId
;
}
public
Stri
ng
getVideoManagerId
()
public
Lo
ng
getVideoManagerId
()
{
return
videoManagerId
;
}
...
...
@@ -57,12 +61,12 @@ public class TVideoManager extends BaseEntity
{
return
videoName
;
}
public
void
setResourceId
(
Lo
ng
resourceId
)
public
void
setResourceId
(
Stri
ng
resourceId
)
{
this
.
resourceId
=
resourceId
;
}
public
Lo
ng
getResourceId
()
public
Stri
ng
getResourceId
()
{
return
resourceId
;
}
...
...
@@ -93,6 +97,15 @@ public class TVideoManager extends BaseEntity
{
return
videoAddress
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
String
getType
()
{
return
type
;
}
@Override
public
String
toString
()
{
...
...
@@ -103,6 +116,7 @@ public class TVideoManager extends BaseEntity
.
append
(
"longitude"
,
getLongitude
())
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"videoAddress"
,
getVideoAddress
())
.
append
(
"type"
,
getType
())
.
toString
();
}
}
gassafety-system/src/main/resources/mapper/system/TVideoManagerMapper.xml
View file @
d62e7566
...
...
@@ -11,45 +11,47 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"longitude"
column=
"longitude"
/>
<result
property=
"latitude"
column=
"latitude"
/>
<result
property=
"videoAddress"
column=
"video_address"
/>
<result
property=
"type"
column=
"type"
/>
</resultMap>
<sql
id=
"selectTVideoManagerVo"
>
select video_manager_id, video_name, resource_id, longitude, latitude, video_address from t_video_manager
select video_manager_id, video_name, resource_id, longitude, latitude, video_address
, type
from t_video_manager
</sql>
<select
id=
"selectTVideoManagerList"
parameterType=
"TVideoManager"
resultMap=
"TVideoManagerResult"
>
<include
refid=
"selectTVideoManagerVo"
/>
<where>
<if
test=
"videoName != null and videoName != ''"
>
and video_name like concat('%', #{videoName}, '%')
</if>
<if
test=
"resourceId != null "
>
and resource_id = #{resourceId}
</if>
<if
test=
"resourceId != null
and resourceId != ''
"
>
and resource_id = #{resourceId}
</if>
<if
test=
"longitude != null "
>
and longitude = #{longitude}
</if>
<if
test=
"latitude != null "
>
and latitude = #{latitude}
</if>
<if
test=
"videoAddress != null and videoAddress != ''"
>
and video_address = #{videoAddress}
</if>
<if
test=
"type != null and type != ''"
>
and type = #{type}
</if>
</where>
</select>
<select
id=
"selectTVideoManagerById"
parameterType=
"
Stri
ng"
resultMap=
"TVideoManagerResult"
>
<select
id=
"selectTVideoManagerById"
parameterType=
"
Lo
ng"
resultMap=
"TVideoManagerResult"
>
<include
refid=
"selectTVideoManagerVo"
/>
where video_manager_id = #{videoManagerId}
</select>
<insert
id=
"insertTVideoManager"
parameterType=
"TVideoManager"
>
<insert
id=
"insertTVideoManager"
parameterType=
"TVideoManager"
useGeneratedKeys=
"true"
keyProperty=
"videoManagerId"
>
insert into t_video_manager
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"videoManagerId != null"
>
video_manager_id,
</if>
<if
test=
"videoName != null"
>
video_name,
</if>
<if
test=
"resourceId != null"
>
resource_id,
</if>
<if
test=
"longitude != null"
>
longitude,
</if>
<if
test=
"latitude != null"
>
latitude,
</if>
<if
test=
"videoAddress != null"
>
video_address,
</if>
<if
test=
"type != null"
>
type,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"videoManagerId != null"
>
#{videoManagerId},
</if>
<if
test=
"videoName != null"
>
#{videoName},
</if>
<if
test=
"resourceId != null"
>
#{resourceId},
</if>
<if
test=
"longitude != null"
>
#{longitude},
</if>
<if
test=
"latitude != null"
>
#{latitude},
</if>
<if
test=
"videoAddress != null"
>
#{videoAddress},
</if>
<if
test=
"type != null"
>
#{type},
</if>
</trim>
</insert>
...
...
@@ -61,11 +63,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"longitude != null"
>
longitude = #{longitude},
</if>
<if
test=
"latitude != null"
>
latitude = #{latitude},
</if>
<if
test=
"videoAddress != null"
>
video_address = #{videoAddress},
</if>
<if
test=
"type != null"
>
type = #{type},
</if>
</trim>
where video_manager_id = #{videoManagerId}
</update>
<delete
id=
"deleteTVideoManagerById"
parameterType=
"
Stri
ng"
>
<delete
id=
"deleteTVideoManagerById"
parameterType=
"
Lo
ng"
>
delete from t_video_manager where video_manager_id = #{videoManagerId}
</delete>
...
...
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