Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
Overview
Overview
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
常超
map-parent
Commits
253ad73e
Commit
253ad73e
authored
Sep 26, 2022
by
宋珺琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改json文件和轨迹导出接口
parent
dacc7947
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
+14
-10
service/publicapi/src/main/java/com/founder/publicapi/controller/KshService/KshSlServiceController.java
+0
-0
service/publicapi/src/main/java/com/founder/publicapi/controller/SkDataOperation/SkTrailController.java
+8
-4
service/publicapi/src/main/resources/data/getThgl.json
+6
-6
No files found.
service/publicapi/src/main/java/com/founder/publicapi/controller/KshService/KshSlServiceController.java
View file @
253ad73e
This diff is collapsed.
Click to expand it.
service/publicapi/src/main/java/com/founder/publicapi/controller/SkDataOperation/SkTrailController.java
View file @
253ad73e
...
...
@@ -12,6 +12,7 @@ import com.founder.commonutils.model.vo.response.SkTrailVO;
import
com.founder.commonutils.util.*
;
import
com.founder.commonutils.model.newPublicEntity.SkTrail
;
import
com.founder.publicapi.controller.SkDataUpload.FtpUtil
;
import
com.founder.publicapi.mapper.mysqlMapper.SkTrailMapper
;
import
com.founder.servicebase.controller.ExcelControllerInterface
;
import
com.founder.servicebase.logs.OperLog
;
import
com.founder.servicebase.logs.OperationType
;
...
...
@@ -46,6 +47,8 @@ public class SkTrailController extends ApiController implements ExcelControllerI
private
SkTrailService
skTrailService
;
@Autowired
private
SkDictionaryService
skDictionaryService
;
@Autowired
SkTrailMapper
skTrailMapper
;
/**
* 新增轨迹
...
...
@@ -398,7 +401,7 @@ public class SkTrailController extends ApiController implements ExcelControllerI
@OperLog
(
message
=
"Excel接口(轨迹导出)"
,
operation
=
OperationType
.
QUERY
)
public
void
export
(
HttpServletResponse
response
,
@RequestBody
SkTrailParam
sktrailParam
)
throws
Exception
{
//分页
Page
page
=
new
Page
(
sktrailParam
.
getPage
(),
sktrailParam
.
getPageSize
());
//
Page page = new Page(sktrailParam.getPage(), sktrailParam.getPageSize());
QueryWrapper
queryWrapper
=
new
QueryWrapper
();
queryWrapper
.
eq
(
"isDeleted"
,
"0"
);
...
...
@@ -416,12 +419,13 @@ public class SkTrailController extends ApiController implements ExcelControllerI
queryWrapper
.
le
(
"str_to_date(date,'%Y-%m-%d %H:%i:%s')"
,
sktrailParam
.
getJssj
());
}
IPage
page1
=
skTrailService
.
page
(
page
,
queryWrapper
);
List
<
SkTrail
>
records
=
page1
.
getRecords
();
List
list
=
skTrailMapper
.
selectList
(
queryWrapper
);
// IPage page1 = skTrailService.page(page, queryWrapper);
// List<SkTrail> records = page1.getRecords();
ExportExcelUtil
<
SkTrail
>
exportExcelUtil
=
new
ExportExcelUtil
<>();
String
[]
headersName
=
{
"号码"
,
"经度"
,
"纬度"
,
"时间"
,
"地址"
};
String
[]
headersField
=
{
"objectvalue"
,
"x"
,
"y"
,
"date"
,
"address"
};
exportExcelUtil
.
exportExcel
(
"DataStatistics"
,
headersName
,
headersField
,
records
,
response
,
"轨迹信息"
);
exportExcelUtil
.
exportExcel
(
"DataStatistics"
,
headersName
,
headersField
,
list
,
response
,
"轨迹信息"
);
}
/**
* 根据编号查找相关轨迹
...
...
service/publicapi/src/main/resources/data/getThgl.json
View file @
253ad73e
...
...
@@ -32,35 +32,35 @@
"links"
:
[
{
"source"
:
"430123196510265891"
,
"target"
:
"
证件号码:
430123196510265892"
,
"target"
:
"430123196510265892"
,
"label"
:
"配偶关系"
,
"properties"
:
{
"time"
:
"2022-09-16 09:59:11"
,
"label"
:
"配偶关系"
,
"source"
:
"430123196510265891"
,
"target"
:
"
证件号码:
430123196510265892"
"target"
:
"430123196510265892"
}
},
{
"source"
:
"430123196510265891"
,
"target"
:
"
证件号码:
430123196510265893"
,
"target"
:
"430123196510265893"
,
"label"
:
"子女关系"
,
"properties"
:
{
"time"
:
"2022-09-16 09:59:11"
,
"label"
:
"子女关系"
,
"source"
:
"430123196510265891"
,
"target"
:
"
证件号码:
430123196510265893"
"target"
:
"430123196510265893"
}
},
{
"source"
:
"430123196510265891"
,
"target"
:
"
证件号码:
430123196510265894"
,
"target"
:
"430123196510265894"
,
"label"
:
"父母关系"
,
"properties"
:
{
"time"
:
"2022-09-16 09:59:11"
,
"label"
:
"父母关系"
,
"source"
:
"430123196510265891"
,
"target"
:
"
证件号码:
430123196510265894"
"target"
:
"430123196510265894"
}
}
]
...
...
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