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 b04429e2
authored
May 30, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/eshiled-new/ne-shield-trialdrive-admin
2 parents
010dbdf6
13410afa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
src/main/java/cn/com/glsx/admin/modules/mapper/TrialDriveReportMapper.java
src/main/java/cn/com/glsx/admin/modules/model/param/TrialDriveReportSearch.java
src/main/java/cn/com/glsx/admin/modules/service/TrialDriveReportService.java
src/main/resources/mapper/TrialDriveReportMapper.xml
src/main/java/cn/com/glsx/admin/modules/mapper/TrialDriveReportMapper.java
View file @
b04429e
...
@@ -3,6 +3,7 @@ package cn.com.glsx.admin.modules.mapper;
...
@@ -3,6 +3,7 @@ package cn.com.glsx.admin.modules.mapper;
import
cn.com.glsx.admin.modules.entity.ElectricFenceDrive
;
import
cn.com.glsx.admin.modules.entity.ElectricFenceDrive
;
import
cn.com.glsx.admin.modules.model.export.TrialDriveReportExport
;
import
cn.com.glsx.admin.modules.model.export.TrialDriveReportExport
;
import
cn.com.glsx.admin.modules.model.param.TrialDriveReportSearch
;
import
cn.com.glsx.admin.modules.model.param.TrialDriveReportSearch
;
import
com.glsx.plat.common.annotation.DataPerm
;
import
com.glsx.plat.mybatis.mapper.CommonBaseMapper
;
import
com.glsx.plat.mybatis.mapper.CommonBaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
...
@@ -13,9 +14,10 @@ import java.util.List;
...
@@ -13,9 +14,10 @@ import java.util.List;
*/
*/
@Mapper
@Mapper
public
interface
TrialDriveReportMapper
extends
CommonBaseMapper
<
ElectricFenceDrive
>
{
public
interface
TrialDriveReportMapper
extends
CommonBaseMapper
<
ElectricFenceDrive
>
{
@DataPerm
(
showSql
=
true
)
List
<
TrialDriveReportExport
>
getTestDrivePageList
(
TrialDriveReportSearch
search
);
List
<
TrialDriveReportExport
>
getTestDrivePageList
(
TrialDriveReportSearch
search
);
@DataPerm
(
showSql
=
true
)
List
<
TrialDriveReportExport
>
getEffectiveTestDriveData
(
TrialDriveReportSearch
search
);
List
<
TrialDriveReportExport
>
getEffectiveTestDriveData
(
TrialDriveReportSearch
search
);
List
<
String
>
getYearWithData
();
List
<
String
>
getYearWithData
();
...
...
src/main/java/cn/com/glsx/admin/modules/model/param/TrialDriveReportSearch.java
View file @
b04429e
...
@@ -41,5 +41,5 @@ public class TrialDriveReportSearch extends Page {
...
@@ -41,5 +41,5 @@ public class TrialDriveReportSearch extends Page {
/**
/**
* 特约店代码 |特约店名称
* 特约店代码 |特约店名称
*/
*/
private
String
key
Word
;
private
String
key
words
;
}
}
src/main/java/cn/com/glsx/admin/modules/service/TrialDriveReportService.java
View file @
b04429e
...
@@ -60,6 +60,7 @@ public class TrialDriveReportService {
...
@@ -60,6 +60,7 @@ public class TrialDriveReportService {
search
.
setSplitList
(
splitList
);
search
.
setSplitList
(
splitList
);
search
.
setSn
(
drivePageExcel
.
getSn
());
search
.
setSn
(
drivePageExcel
.
getSn
());
List
<
TrialDriveReportExport
>
testDriveDataOneList
=
trialDriveReportMapper
.
getEffectiveTestDriveData
(
search
);
List
<
TrialDriveReportExport
>
testDriveDataOneList
=
trialDriveReportMapper
.
getEffectiveTestDriveData
(
search
);
log
.
info
(
"testDriveDataOneList 的长度是"
+
testDriveDataOneList
.
size
());
//你将没一个查询的对象进行填充
//你将没一个查询的对象进行填充
makeDriveData
(
testDriveDataOneList
,
excelHashMap
);
makeDriveData
(
testDriveDataOneList
,
excelHashMap
);
}
}
...
...
src/main/resources/mapper/TrialDriveReportMapper.xml
View file @
b04429e
...
@@ -38,10 +38,10 @@
...
@@ -38,10 +38,10 @@
left join t_vehicle tv on tv.vin = tefs.vin
left join t_vehicle tv on tv.vin = tefs.vin
where tefs.fence_id = tef.id
where tefs.fence_id = tef.id
and tef.biz_fence_type = 12
and tef.biz_fence_type = 12
<if
test=
"key
Word!=null and keyWord!=''
"
>
<if
test=
"key
words != null and keywords!=''
"
>
and (
and (
tu.account like '%${key
Word
}%'
tu.account like '%${key
words
}%'
or tu.username like '%${key
Word
}%'
or tu.username like '%${key
words
}%'
)
)
</if>
</if>
<if
test=
"userIdList != null"
>
<if
test=
"userIdList != null"
>
...
@@ -88,10 +88,10 @@
...
@@ -88,10 +88,10 @@
</otherwise>
</otherwise>
</choose>
</choose>
<if
test=
"key
Word !=null and keyWord
!= ''"
>
<if
test=
"key
words !=null and keywords
!= ''"
>
and (
and (
tu.account like '%${key
Word
}%'
tu.account like '%${key
words
}%'
or tu.username like '%${key
Word
}%'
or tu.username like '%${key
words
}%'
)
)
</if>
</if>
<if
test=
"sn !=null and sn != ''"
>
<if
test=
"sn !=null and sn != ''"
>
...
...
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