Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张雷
/
fmboot
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
1cd19658
由
张雷
编写于
2023-05-11 09:56:12 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
奥体项目实时数据增加仪表排序
1 个父辈
c2f21995
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
96 行增加
和
93 行删除
fm-product/src/main/java/com/skua/modules/business/entity/WhatStructData.java
fm-product/src/main/java/com/skua/modules/business/mapper/xml/WhatStructDataMapper.xml
fm-product/src/main/java/com/skua/modules/location/service/impl/YwLocationServiceImpl.java
fm-product/src/main/java/com/skua/modules/business/entity/WhatStructData.java
查看文件 @
1cd1965
...
...
@@ -50,6 +50,9 @@ public class WhatStructData {
/**备注*/
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
/**排序*/
@ApiModelProperty
(
value
=
"排序"
)
private
Integer
monitorSort
;
/**创建人id*/
@ApiModelProperty
(
value
=
"创建人id"
)
private
String
createBy
;
...
...
fm-product/src/main/java/com/skua/modules/business/mapper/xml/WhatStructDataMapper.xml
查看文件 @
1cd1965
...
...
@@ -3,7 +3,7 @@
<mapper
namespace=
"com.skua.modules.business.mapper.WhatStructDataMapper"
>
<select
id=
"getList"
resultType=
"com.skua.modules.business.entity.WhatStructData"
>
select * from what_struct_data
select * from what_struct_data
order by monitor_sort
</select>
<select
id=
"getListForUE"
resultType=
"com.skua.modules.business.entity.WhatStructData"
>
...
...
fm-product/src/main/java/com/skua/modules/location/service/impl/YwLocationServiceImpl.java
查看文件 @
1cd1965
...
...
@@ -45,51 +45,51 @@ public class YwLocationServiceImpl implements ILocationService {
HashMap
<
String
,
Object
>
pMap
=
new
HashMap
<>();
pMap
.
put
(
"username"
,
username
);
pMap
.
put
(
"password"
,
password
);
//
String get = HttpUtil.get(url+"open/information/getRealGps.do",pMap);
String
get
=
"{\n"
+
"\"data\":\n"
+
"[{\n"
+
"\"empName\":\"贾伟峰\",\n"
+
"\"area\":\"2\",\n"
+
"\"deviceNo\":\"16a7ebee\",\n"
+
"\"crossY\":\"2564\",\n"
+
"\"crossX\":\"1508\",\n"
+
"\"longitude\":104.04438600000114,\n"
+
"\"latitude\":30.630693000000115,\n"
+
"\"dateTime\":\"2022-05-05 11:35:52\",\n"
+
"\"layer\":\"-1\",\n"
+
"\"empNo\":\"108036\",\n"
+
"\"specifictype\":\"0\"\n"
+
"},\n"
+
"{\n"
+
"\"empName\":\"宋锡园\",\n"
+
"\"area\":\"2\",\n"
+
"\"deviceNo\":\"169c1502\",\n"
+
"\"crossY\":\"2584\",\n"
+
"\"crossX\":\"1538\",\n"
+
"\"longitude\":104.04438600000114,\n"
+
"\"latitude\":30.630693000000115,\n"
+
"\"dateTime\":\"2022-05-05 11:35:52\",\n"
+
"\"layer\":\"-1\",\n"
+
"\"empNo\":\"108037\",\n"
+
"\"specifictype\":\"0\"\n"
+
"},\n"
+
"{\n"
+
"\"empName\":\"何成翔\",\n"
+
"\"area\":\"2\",\n"
+
"\"deviceNo\":\"169c0cba\",\n"
+
"\"crossY\":\"2564\",\n"
+
"\"crossX\":\"2816\",\n"
+
"\"longitude\":124.01230000114,\n"
+
"\"latitude\":31.6301230000115,\n"
+
"\"dateTime\":\"2022-05-05 11:35:52\",\n"
+
"\"layer\":\"-1\",\n"
+
"\"empNo\":\"147258\",\n"
+
"\"specifictype\":\"0\"\n"
+
"}],\n"
+
"\"status\":0,\n"
+
"\"msginfo\":\"接口调用成功!\"\n"
+
"}"
;
String
get
=
HttpUtil
.
get
(
url
+
"open/information/getRealGps.do"
,
pMap
);
//
String get = "{\n" +
//
"\"data\":\n" +
//
"[{\n" +
//
"\"empName\":\"贾伟峰\",\n" +
//
"\"area\":\"2\",\n" +
//
"\"deviceNo\":\"16a7ebee\",\n" +
//
"\"crossY\":\"2564\",\n" +
//
"\"crossX\":\"1508\",\n" +
//
"\"longitude\":104.04438600000114,\n" +
//
"\"latitude\":30.630693000000115,\n" +
//
"\"dateTime\":\"2022-05-05 11:35:52\",\n" +
//
"\"layer\":\"-1\",\n" +
//
"\"empNo\":\"108036\",\n" +
//
"\"specifictype\":\"0\"\n" +
//
"},\n" +
//
"{\n" +
//
"\"empName\":\"宋锡园\",\n" +
//
"\"area\":\"2\",\n" +
//
"\"deviceNo\":\"169c1502\",\n" +
//
"\"crossY\":\"2584\",\n" +
//
"\"crossX\":\"1538\",\n" +
//
"\"longitude\":104.04438600000114,\n" +
//
"\"latitude\":30.630693000000115,\n" +
//
"\"dateTime\":\"2022-05-05 11:35:52\",\n" +
//
"\"layer\":\"-1\",\n" +
//
"\"empNo\":\"108037\",\n" +
//
"\"specifictype\":\"0\"\n" +
//
"},\n" +
//
"{\n" +
//
"\"empName\":\"何成翔\",\n" +
//
"\"area\":\"2\",\n" +
//
"\"deviceNo\":\"169c0cba\",\n" +
//
"\"crossY\":\"2564\",\n" +
//
"\"crossX\":\"2816\",\n" +
//
"\"longitude\":124.01230000114,\n" +
//
"\"latitude\":31.6301230000115,\n" +
//
"\"dateTime\":\"2022-05-05 11:35:52\",\n" +
//
"\"layer\":\"-1\",\n" +
//
"\"empNo\":\"147258\",\n" +
//
"\"specifictype\":\"0\"\n" +
//
"}],\n" +
//
"\"status\":0,\n" +
//
"\"msginfo\":\"接口调用成功!\"\n" +
//
"}";
JSONObject
json
=
JSONObject
.
parseObject
(
get
);
List
<
UserLocationYwResult
>
getList
=
JSONObject
.
parseArray
(
json
.
get
(
"data"
).
toString
(),
UserLocationYwResult
.
class
);
getLocationBasicInfo
();
//坐标转换基础信息
...
...
@@ -118,29 +118,29 @@ public class YwLocationServiceImpl implements ILocationService {
pMap
.
put
(
"begintime"
,
startTime
);
pMap
.
put
(
"endtime"
,
endTime
);
pMap
.
put
(
"deveuis"
,
deviceCode
);
//
String get = HttpUtil.get(url+"open/information/getHis.do",pMap);
String
get
=
"{\n"
+
"\"data\":[\n"
+
"{\n"
+
"\"name\":\"贾伟峰\",\n"
+
"\"time\":\"2020-04-20 00:02:35\",\n"
+
"\"x\":\"3539.05\",\n"
+
"\"y\":\"2711.93\",\n"
+
"\"lat\":32.54224453987491,\n"
+
"\"lon\":121.05223514735032\n"
+
"},\n"
+
"{\n"
+
"\"name\":\"贾伟峰\",\n"
+
"\"time\":\"2020-04-20 00:02:45\",\n"
+
"\"x\":\"3536.05\",\n"
+
"\"y\":\"2611.93\",\n"
+
"\"lat\":32.54212353987491,\n"
+
"\"lon\":121.05123514735032\n"
+
"}\n"
+
"],\n"
+
"\"msginfo\":\"成功!\",\n"
+
"\"status\":0\n"
+
"}"
;
String
get
=
HttpUtil
.
get
(
url
+
"open/information/getHis.do"
,
pMap
);
//
String get = "{\n" +
//
"\"data\":[\n" +
//
"{\n" +
//
"\"name\":\"贾伟峰\",\n" +
//
"\"time\":\"2020-04-20 00:02:35\",\n" +
//
"\"x\":\"3539.05\",\n" +
//
"\"y\":\"2711.93\",\n" +
//
"\"lat\":32.54224453987491,\n" +
//
"\"lon\":121.05223514735032\n" +
//
"},\n" +
//
"{\n" +
//
"\"name\":\"贾伟峰\",\n" +
//
"\"time\":\"2020-04-20 00:02:45\",\n" +
//
"\"x\":\"3536.05\",\n" +
//
"\"y\":\"2611.93\",\n" +
//
"\"lat\":32.54212353987491,\n" +
//
"\"lon\":121.05123514735032\n" +
//
"}\n" +
//
"],\n" +
//
"\"msginfo\":\"成功!\",\n" +
//
"\"status\":0\n" +
//
"}";
JSONObject
json
=
JSONObject
.
parseObject
(
get
);
List
<
UserLocationHistoryYwResult
>
getList
=
JSONObject
.
parseArray
(
json
.
get
(
"data"
).
toString
(),
UserLocationHistoryYwResult
.
class
);
getLocationBasicInfo
();
//坐标转换基础信息
...
...
@@ -166,30 +166,30 @@ public class YwLocationServiceImpl implements ILocationService {
map
.
put
(
"page"
,
1
);
map
.
put
(
"rows"
,
1000
);
map
.
put
(
"emp"
,
""
);
//
String post = HttpUtil.get(url+"open/information/getEmp.do",map);
String
post
=
"{\n"
+
"\t\"data\": {\n"
+
"\t\t\"total\": 3,\n"
+
"\t\t\"rows\": [{\n"
+
"\t\t\t\"id\": 1,\n"
+
"\t\t\t\"empno\": \"108036\",\n"
+
"\t\t\t\"empname\": \"贾伟峰\",\n"
+
"\t\t\t\"deviceno\": \"16a7ebee\"\n"
+
"\t\t},{\n"
+
"\t\t\t\"id\": 2,\n"
+
"\t\t\t\"empno\": \"108037\",\n"
+
"\t\t\t\"empname\": \"宋锡园\",\n"
+
"\t\t\t\"deviceno\": \"169c1502\"\n"
+
"\t\t},{\n"
+
"\t\t\t\"id\": 3,\n"
+
"\t\t\t\"empno\": \"147258\",\n"
+
"\t\t\t\"empname\": \"何成翔\",\n"
+
"\t\t\t\"deviceno\": \"169c0cba\"\n"
+
"\t\t}]\n"
+
"\t},\n"
+
"\t\"msginfo\": \"成功!\",\n"
+
"\t\"status\": 0\n"
+
"} "
;
String
post
=
HttpUtil
.
get
(
url
+
"open/information/getEmp.do"
,
map
);
//
String post = "{\n" +
//
"\t\"data\": {\n" +
//
"\t\t\"total\": 3,\n" +
//
"\t\t\"rows\": [{\n" +
//
"\t\t\t\"id\": 1,\n" +
//
"\t\t\t\"empno\": \"108036\",\n" +
//
"\t\t\t\"empname\": \"贾伟峰\",\n" +
//
"\t\t\t\"deviceno\": \"16a7ebee\"\n" +
//
"\t\t},{\n" +
//
"\t\t\t\"id\": 2,\n" +
//
"\t\t\t\"empno\": \"108037\",\n" +
//
"\t\t\t\"empname\": \"宋锡园\",\n" +
//
"\t\t\t\"deviceno\": \"169c1502\"\n" +
//
"\t\t},{\n" +
//
"\t\t\t\"id\": 3,\n" +
//
"\t\t\t\"empno\": \"147258\",\n" +
//
"\t\t\t\"empname\": \"何成翔\",\n" +
//
"\t\t\t\"deviceno\": \"169c0cba\"\n" +
//
"\t\t}]\n" +
//
"\t},\n" +
//
"\t\"msginfo\": \"成功!\",\n" +
//
"\t\"status\": 0\n" +
//
"} ";
JSONObject
json
=
JSONObject
.
parseObject
(
JSONObject
.
parseObject
(
post
).
get
(
"data"
).
toString
());
List
<
UserBaseInfoYwResult
>
userList
=
JSONObject
.
parseArray
(
json
.
get
(
"rows"
).
toString
(),
UserBaseInfoYwResult
.
class
);
for
(
UserBaseInfoYwResult
userBaseInfoYwResult
:
userList
)
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论