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 8f6fa4ee
authored
May 12, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
V1.7.0需求:结清数据控制
1 parent
9436c13b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletions
src/main/java/cn/com/glsx/admin/modules/service/HomeService.java
src/main/resources/mapper/VehicleDeviceMapper.xml
src/main/resources/mapper/VehicleMapper.xml
src/main/java/cn/com/glsx/admin/modules/service/HomeService.java
View file @
8f6fa4e
...
@@ -37,7 +37,7 @@ import java.util.stream.Collectors;
...
@@ -37,7 +37,7 @@ import java.util.stream.Collectors;
*/
*/
@Slf4j
@Slf4j
@Service
@Service
public
class
HomeService
{
public
class
HomeService
extends
AbstractCommonService
{
@Autowired
@Autowired
private
VehicleDeviceMapper
vehicleDeviceMapper
;
private
VehicleDeviceMapper
vehicleDeviceMapper
;
...
...
src/main/resources/mapper/VehicleDeviceMapper.xml
View file @
8f6fa4e
...
@@ -115,6 +115,7 @@
...
@@ -115,6 +115,7 @@
<if
test=
"search.appendSql != null and search.appendSql !=''"
>
<if
test=
"search.appendSql != null and search.appendSql !=''"
>
${search.appendSql}
${search.appendSql}
</if>
</if>
${settleCondition}
</select>
</select>
<select
id=
"getActiveNumberWithAuth"
resultType=
"cn.com.glsx.admin.modules.model.stat.StatCountModel"
>
<select
id=
"getActiveNumberWithAuth"
resultType=
"cn.com.glsx.admin.modules.model.stat.StatCountModel"
>
...
@@ -142,6 +143,7 @@
...
@@ -142,6 +143,7 @@
<if
test=
"offlineSnStr != null and offlineSnStr != ''"
>
<if
test=
"offlineSnStr != null and offlineSnStr != ''"
>
and tvd.sn not in (${offlineSnStr})
and tvd.sn not in (${offlineSnStr})
</if>
</if>
${settleCondition}
</select>
</select>
<select
id=
"getVehicleDeviceByVehicleAndSn"
resultMap=
"BaseResultMap"
>
<select
id=
"getVehicleDeviceByVehicleAndSn"
resultMap=
"BaseResultMap"
>
...
...
src/main/resources/mapper/VehicleMapper.xml
View file @
8f6fa4e
...
@@ -509,6 +509,9 @@
...
@@ -509,6 +509,9 @@
<if
test=
"vehicleUsages != null"
>
<if
test=
"vehicleUsages != null"
>
and tv.vehicle_usages = #{vehicleUsages}
and tv.vehicle_usages = #{vehicleUsages}
</if>
</if>
<if
test=
"settleFlag != null"
>
and tv.settle_flag = #{settleFlag}
</if>
<if
test=
"checkedUserIdsStr != null and checkedUserIdsStr !=''"
>
<if
test=
"checkedUserIdsStr != null and checkedUserIdsStr !=''"
>
and find_in_set(tv.created_by,#{checkedUserIdsStr})
and find_in_set(tv.created_by,#{checkedUserIdsStr})
</if>
</if>
...
@@ -603,6 +606,9 @@
...
@@ -603,6 +606,9 @@
<if
test=
"vehicleUsages != null"
>
<if
test=
"vehicleUsages != null"
>
and tv.vehicle_usages = #{vehicleUsages}
and tv.vehicle_usages = #{vehicleUsages}
</if>
</if>
<if
test=
"settleFlag != null"
>
and tv.settle_flag = #{settleFlag}
</if>
<if
test=
"checkedUserIdsStr != null and checkedUserIdsStr !=''"
>
<if
test=
"checkedUserIdsStr != null and checkedUserIdsStr !=''"
>
and find_in_set(tv.created_by,#{checkedUserIdsStr})
and find_in_set(tv.created_by,#{checkedUserIdsStr})
</if>
</if>
...
...
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