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 72e4670a
authored
May 16, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
车辆归属用全层级展示
1 parent
9434a0b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
src/main/java/cn/com/glsx/admin/modules/model/export/DeviceActiveExprot.java
src/main/java/cn/com/glsx/admin/modules/service/DeviceActiveService.java
src/main/java/cn/com/glsx/admin/modules/model/export/DeviceActiveExprot.java
View file @
72e4670
package
cn
.
com
.
glsx
.
admin
.
modules
.
model
.
export
;
import
cn.com.glsx.admin.modules.model.BaseOrgDto
;
import
com.alibaba.excel.annotation.ExcelIgnoreUnannotated
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
io.swagger.annotations.ApiModel
;
...
...
@@ -14,7 +15,7 @@ import lombok.Data;
@ApiModel
@Data
@ExcelIgnoreUnannotated
public
class
DeviceActiveExprot
{
public
class
DeviceActiveExprot
extends
BaseOrgDto
{
/**
* 工单号
**/
...
...
src/main/java/cn/com/glsx/admin/modules/service/DeviceActiveService.java
View file @
72e4670
...
...
@@ -39,6 +39,9 @@ public class DeviceActiveService {
@Autowired
private
UserApiService
userApiService
;
@Autowired
private
OrganizationApiService
organizationApiService
;
/**
* 查询设备激活列表
*
...
...
@@ -52,6 +55,8 @@ public class DeviceActiveService {
}
List
<
DeviceActiveExprot
>
deviceActiveList
=
vehicleMapper
.
getBaseDeviceActiveListWithAuth
(
search
);
// 填充组织层级
organizationApiService
.
drawAllLevel
(
deviceActiveList
);
// 数字类型转换为字符串类型
deviceActiveList
.
forEach
(
deviceActiveExprot
->
{
deviceActiveExprot
.
setDeviceTypeStr
(
TypeConverseEunm
.
DeviceTypeEnum
.
getStrByDeviceType
(
deviceActiveExprot
.
getDeviceType
()));
...
...
@@ -60,6 +65,7 @@ public class DeviceActiveService {
if
(!
StringUtils
.
isEmpty
(
deviceActiveExprot
.
getLng
())
&&
!
StringUtils
.
isEmpty
(
deviceActiveExprot
.
getLat
()))
{
deviceActiveExprot
.
setLngAndLat
(
deviceActiveExprot
.
getLng
()
+
","
+
deviceActiveExprot
.
getLat
());
}
deviceActiveExprot
.
setShopName
(
deviceActiveExprot
.
getBelongLevels
());
});
getDeviceActiveData
(
deviceActiveList
);
return
deviceActiveList
;
...
...
@@ -77,6 +83,8 @@ public class DeviceActiveService {
userApiService
.
setCheckedOrgUsers
(
search
);
}
List
<
DeviceActiveExprot
>
deviceActiveList
=
vehicleMapper
.
getBaseDeviceActiveListWithAuth
(
search
);
// 填充组织层级
organizationApiService
.
drawAllLevel
(
deviceActiveList
);
// 数字类型转换为字符串类型
deviceActiveList
.
forEach
(
deviceActiveExprot
->
{
deviceActiveExprot
.
setDeviceTypeStr
(
TypeConverseEunm
.
DeviceTypeEnum
.
getStrByDeviceType
(
deviceActiveExprot
.
getDeviceType
()));
...
...
@@ -85,6 +93,7 @@ public class DeviceActiveService {
if
(!
StringUtils
.
isEmpty
(
deviceActiveExprot
.
getLng
())
&&
!
StringUtils
.
isEmpty
(
deviceActiveExprot
.
getLat
()))
{
deviceActiveExprot
.
setLngAndLat
(
deviceActiveExprot
.
getLng
()
+
","
+
deviceActiveExprot
.
getLat
());
}
deviceActiveExprot
.
setShopName
(
deviceActiveExprot
.
getBelongLevels
());
});
return
deviceActiveList
;
}
...
...
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