Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
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 905f757a
authored
Apr 16, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
围栏管理-管理设备搜索功能
1 parent
9aac5d20
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
src/main/java/cn/com/glsx/admin/modules/model/param/VehicleSearch.java
src/main/resources/mapper/VehicleMapper.xml
src/main/java/cn/com/glsx/admin/modules/model/param/VehicleSearch.java
View file @
905f757
package
cn
.
com
.
glsx
.
admin
.
modules
.
model
.
param
;
package
cn
.
com
.
glsx
.
admin
.
modules
.
model
.
param
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.Date
;
@Data
@Data
public
class
VehicleSearch
extends
BasicSearch
{
public
class
VehicleSearch
extends
BasicSearch
{
...
@@ -16,13 +13,12 @@ public class VehicleSearch extends BasicSearch {
...
@@ -16,13 +13,12 @@ public class VehicleSearch extends BasicSearch {
/**
/**
* 激活开始日期
* 激活开始日期
*/
*/
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
private
String
startTime
;
private
Date
startTime
;
/**
/**
* 激活结束日期
* 激活结束日期
*/
*/
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
private
String
endTime
;
private
Date
endTime
;
/**
/**
* 设备 1有源 0无源
* 设备 1有源 0无源
...
...
src/main/resources/mapper/VehicleMapper.xml
View file @
905f757
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
</choose>
</choose>
</if>
</if>
<if
test=
"startTime != null and startTime != '' and endTime != null and endTime != ''"
>
<if
test=
"startTime != null and startTime != '' and endTime != null and endTime != ''"
>
and DATE_FORMAT(tv
d
.created_date,'%Y-%m-%d') between #{startTime} and #{endTime}
and DATE_FORMAT(tv.created_date,'%Y-%m-%d') between #{startTime} and #{endTime}
</if>
</if>
<if
test=
"shopId != null"
>
<if
test=
"shopId != null"
>
and tv.created_by = #{shopId}
and tv.created_by = #{shopId}
...
...
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