Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
15a6f2c1
Commit
15a6f2c1
authored
Jun 24, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
69a29982
34f96856
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
85 additions
and
50 deletions
+85
-50
PersonBasicMapper.java
.../amos/boot/module/jxiop/api/mapper/PersonBasicMapper.java
+27
-23
PersonBasicMapper.xml
...jxiop-api/src/main/resources/mapper/PersonBasicMapper.xml
+18
-0
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+4
-4
PersonQrCodeController.java
...t/module/jxiop/biz/controller/PersonQrCodeController.java
+19
-11
StationCacheInfoDto.java
...n/amos/boot/module/jxiop/biz/dto/StationCacheInfoDto.java
+2
-0
MonitorService.java
...in/amos/boot/module/jxiop/biz/service/MonitorService.java
+4
-4
MonitorServiceImpl.java
...oot/module/jxiop/biz/service/impl/MonitorServiceImpl.java
+6
-5
PersonBasicServiceImpl.java
...module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
+5
-3
PersonBasicServiceImpl.java
...module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
+0
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/PersonBasicMapper.java
View file @
15a6f2c1
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
mapper
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
mapper
;
import
com.baomidou.mybatisplus.
extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.
core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.EXPersonUser
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.EXPersonUser
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.StationBasicDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.UserMapperDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.UserMapperDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.PersonBasic
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.PersonBasic
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.StationQrCodeStatistics
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.StationQrCodeStatistics
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
...
@@ -21,47 +19,53 @@ import java.util.Map;
...
@@ -21,47 +19,53 @@ import java.util.Map;
public
interface
PersonBasicMapper
extends
BaseMapper
<
PersonBasic
>
{
public
interface
PersonBasicMapper
extends
BaseMapper
<
PersonBasic
>
{
List
<
UserMapperDto
>
queryPage
(
@Param
(
"current"
)
Long
current
,
@Param
(
"size"
)
Long
size
,
List
<
UserMapperDto
>
queryPage
(
@Param
(
"current"
)
Long
current
,
@Param
(
"size"
)
Long
size
,
@Param
(
"name"
)
String
name
,
@Param
(
"name"
)
String
name
,
@Param
(
"accountName"
)
String
accountName
,
@Param
(
"accountName"
)
String
accountName
,
@Param
(
"projectName"
)
String
projectName
,
@Param
(
"projectName"
)
String
projectName
,
@Param
(
"orgCode"
)
String
orgCode
);
@Param
(
"orgCode"
)
String
orgCode
);
List
<
UserMapperDto
>
queryPagecount
(
List
<
UserMapperDto
>
queryPagecount
(
@Param
(
"name"
)
String
name
,
@Param
(
"name"
)
String
name
,
@Param
(
"accountName"
)
String
accountName
,
@Param
(
"accountName"
)
String
accountName
,
@Param
(
"projectName"
)
String
projectName
,
@Param
(
"projectName"
)
String
projectName
,
@Param
(
"orgCode"
)
String
orgCode
);
@Param
(
"orgCode"
)
String
orgCode
);
int
deleteList
(
String
[]
ids
);
int
deleteList
(
String
[]
ids
);
List
<
EXPersonUser
>
getEXPersonUser
(
@Param
(
"name"
)
String
name
,
List
<
EXPersonUser
>
getEXPersonUser
(
@Param
(
"name"
)
String
name
,
@Param
(
"accountName"
)
String
accountName
,
@Param
(
"accountName"
)
String
accountName
,
@Param
(
"projectName"
)
String
projectName
,
@Param
(
"projectName"
)
String
projectName
,
@Param
(
"orgCode"
)
String
orgCode
);
@Param
(
"orgCode"
)
String
orgCode
);
List
<
EXPersonUser
>
getEXPersonUserAll
(
@Param
(
"name"
)
String
name
,
List
<
EXPersonUser
>
getEXPersonUserAll
(
@Param
(
"name"
)
String
name
,
@Param
(
"accountName"
)
String
accountName
,
@Param
(
"accountName"
)
String
accountName
,
@Param
(
"projectName"
)
String
projectName
,
@Param
(
"projectName"
)
String
projectName
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"ids"
)
String
[]
ids
@Param
(
"ids"
)
String
[]
ids
);
);
List
<
Map
<
String
,
Object
>>
getPersonYardStatistics
(
@Param
(
"parentCode"
)
String
parentCode
);
List
<
Map
<
String
,
Object
>>
getPersonYardStatistics
(
@Param
(
"parentCode"
)
String
parentCode
,
@Param
(
"areaCode"
)
String
areaCode
,
@Param
(
"platformStationId"
)
String
platformStationId
);
List
<
Map
<
String
,
Object
>>
getPersonYardByPage
(
@Param
(
"current"
)
Integer
current
,
List
<
Map
<
String
,
Object
>>
getPersonYardByPage
(
@Param
(
"current"
)
Integer
current
,
@Param
(
"size"
)
Integer
size
,
@Param
(
"size"
)
Integer
size
,
@Param
(
"parentCode"
)
String
parentCode
,
@Param
(
"parentCode"
)
String
parentCode
,
@Param
(
"date"
)
String
date
,
@Param
(
"date"
)
String
date
,
@Param
(
"qrCodeColor"
)
String
qrCodeColor
,
@Param
(
"qrCodeColor"
)
String
qrCodeColor
,
@Param
(
"ne"
)
String
ne
);
@Param
(
"ne"
)
String
ne
,
@Param
(
"areaCode"
)
String
areaCode
,
@Param
(
"platformStationId"
)
String
platformStationId
);
Integer
getPersonYardByPageCount
(
@Param
(
"parentCode"
)
String
parentCode
,
Integer
getPersonYardByPageCount
(
@Param
(
"parentCode"
)
String
parentCode
,
@Param
(
"date"
)
String
date
,
@Param
(
"date"
)
String
date
,
@Param
(
"qrCodeColor"
)
String
qrCodeColor
,
@Param
(
"qrCodeColor"
)
String
qrCodeColor
,
@Param
(
"ne"
)
String
ne
);
@Param
(
"ne"
)
String
ne
,
@Param
(
"areaCode"
)
String
areaCode
,
@Param
(
"platformStationId"
)
String
platformStationId
);
List
<
StationQrCodeStatistics
>
getPersonStatistics
();
List
<
StationQrCodeStatistics
>
getPersonStatistics
();
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/PersonBasicMapper.xml
View file @
15a6f2c1
...
@@ -205,6 +205,12 @@
...
@@ -205,6 +205,12 @@
<if
test=
"parentCode != null and parentCode != ''"
>
<if
test=
"parentCode != null and parentCode != ''"
>
AND a.project_org_code like concat(#{parentCode},'%')
AND a.project_org_code like concat(#{parentCode},'%')
</if>
</if>
<if
test=
"platformStationId != null and platformStationId != ''"
>
AND c.platform_station_id = #{platformStationId}
</if>
<if
test=
"areaCode != null and areaCode != ''"
>
AND c.area_code = #{areaCode}
</if>
</where>
</where>
GROUP BY
GROUP BY
a.qrcode_color
a.qrcode_color
...
@@ -240,6 +246,12 @@
...
@@ -240,6 +246,12 @@
<if
test=
"ne != null and ne != ''"
>
<if
test=
"ne != null and ne != ''"
>
AND a.qrcode_color != #{ne}
AND a.qrcode_color != #{ne}
</if>
</if>
<if
test=
"platformStationId != null and platformStationId != ''"
>
AND c.platform_station_id = #{platformStationId}
</if>
<if
test=
"areaCode != null and areaCode != ''"
>
AND c.area_code = #{areaCode}
</if>
</where>
</where>
ORDER BY sort asc,a.rec_date DESC
ORDER BY sort asc,a.rec_date DESC
limit #{current},#{size}
limit #{current},#{size}
...
@@ -266,6 +278,12 @@
...
@@ -266,6 +278,12 @@
<if
test=
"ne != null and ne != ''"
>
<if
test=
"ne != null and ne != ''"
>
AND a.qrcode_color != #{ne}
AND a.qrcode_color != #{ne}
</if>
</if>
<if
test=
"platformStationId != null and platformStationId != ''"
>
AND c.platform_station_id = #{platformStationId}
</if>
<if
test=
"areaCode != null and areaCode != ''"
>
AND c.area_code = #{areaCode}
</if>
</where>
</where>
</select>
</select>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
15a6f2c1
...
@@ -1129,7 +1129,7 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -1129,7 +1129,7 @@ public class MonitorFanIdxController extends BaseController {
@ApiOperation
(
value
=
"运维数据 "
)
@ApiOperation
(
value
=
"运维数据 "
)
@GetMapping
(
"/operationData"
)
@GetMapping
(
"/operationData"
)
public
ResponseModel
<
IPage
<
Map
<
String
,
Object
>>>
operationData
(
@RequestParam
(
value
=
"areaCode"
,
required
=
false
)
String
areaCode
,
public
ResponseModel
<
IPage
<
Map
<
String
,
Object
>>>
operationData
(
@RequestParam
(
value
=
"areaCode"
,
required
=
false
)
String
areaCode
,
@RequestParam
(
value
=
"
stationId"
,
required
=
false
)
String
s
tationId
)
{
@RequestParam
(
value
=
"
platformStationId"
,
required
=
false
)
String
platformS
tationId
)
{
// List<StationCacheInfoDto> list = commonServiceImpl.getListStationCacheInfoDto();
// List<StationCacheInfoDto> list = commonServiceImpl.getListStationCacheInfoDto();
...
@@ -1153,14 +1153,14 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -1153,14 +1153,14 @@ public class MonitorFanIdxController extends BaseController {
// result.setRecords(mapList);
// result.setRecords(mapList);
// result.setCurrent(1);
// result.setCurrent(1);
// result.setTotal(mapList.size());
// result.setTotal(mapList.size());
return
ResponseHelper
.
buildResponse
(
monitorService
.
operationData
(
areaCode
,
s
tationId
));
return
ResponseHelper
.
buildResponse
(
monitorService
.
operationData
(
areaCode
,
platformS
tationId
));
}
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"全国新能源接入情况 "
)
@ApiOperation
(
value
=
"全国新能源接入情况 "
)
@GetMapping
(
"/getAccessSituation"
)
@GetMapping
(
"/getAccessSituation"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getAccessSituation
(
@RequestParam
(
value
=
"areaCode"
,
required
=
false
)
String
areaCode
,
public
ResponseModel
<
Map
<
String
,
Object
>>
getAccessSituation
(
@RequestParam
(
value
=
"areaCode"
,
required
=
false
)
String
areaCode
,
@RequestParam
(
value
=
"
stationId"
,
required
=
false
)
String
s
tationId
)
{
@RequestParam
(
value
=
"
platformStationId"
,
required
=
false
)
String
platformS
tationId
)
{
return
ResponseHelper
.
buildResponse
(
monitorService
.
getAccessSituation
(
areaCode
,
s
tationId
));
return
ResponseHelper
.
buildResponse
(
monitorService
.
getAccessSituation
(
areaCode
,
platformS
tationId
));
}
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/PersonQrCodeController.java
View file @
15a6f2c1
...
@@ -68,12 +68,14 @@ public class PersonQrCodeController extends BaseController {
...
@@ -68,12 +68,14 @@ public class PersonQrCodeController extends BaseController {
@GetMapping
(
value
=
"/getPersonYardStatistics"
)
@GetMapping
(
value
=
"/getPersonYardStatistics"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"评估大屏 - 人员赋码环形图查询"
,
notes
=
"评估大屏 - 人员赋码环形图查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"评估大屏 - 人员赋码环形图查询"
,
notes
=
"评估大屏 - 人员赋码环形图查询"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getPersonYardStatistics
(
@RequestParam
(
required
=
false
,
value
=
"parentCode"
)
String
parentCode
,
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getPersonYardStatistics
(
@RequestParam
(
required
=
false
,
value
=
"parentCode"
)
String
parentCode
,
@RequestParam
(
required
=
false
,
value
=
"dataType"
)
String
dataType
)
{
@RequestParam
(
required
=
false
,
value
=
"dataType"
)
String
dataType
,
@RequestParam
(
value
=
"areaCode"
,
required
=
false
)
String
areaCode
,
@RequestParam
(
value
=
"platformStationId"
,
required
=
false
)
String
platformStationId
)
{
List
<
Map
<
String
,
Object
>>
resultList
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
resultList
=
new
ArrayList
<>();
if
(
StringUtils
.
isNotEmpty
(
dataType
)
&&
dataType
.
equals
(
"person"
))
{
if
(
StringUtils
.
isNotEmpty
(
dataType
)
&&
dataType
.
equals
(
"person"
))
{
resultList
=
personBasicMapper
.
getPersonYardStatistics
(
parentCode
);
resultList
=
personBasicMapper
.
getPersonYardStatistics
(
parentCode
,
areaCode
,
platformStationId
);
}
else
if
(
StringUtils
.
isNotEmpty
(
dataType
)
&&
dataType
.
equals
(
"equip"
))
{
}
else
if
(
StringUtils
.
isNotEmpty
(
dataType
)
&&
dataType
.
equals
(
"equip"
))
{
resultList
=
sjglZsjZsbtzMapper
.
getEquipYardStatistics
(
parentCode
);
resultList
=
sjglZsjZsbtzMapper
.
getEquipYardStatistics
(
parentCode
);
}
else
if
(
StringUtils
.
isNotEmpty
(
dataType
)
&&
dataType
.
equals
(
"job"
))
{
}
else
if
(
StringUtils
.
isNotEmpty
(
dataType
)
&&
dataType
.
equals
(
"job"
))
{
...
@@ -104,11 +106,13 @@ public class PersonQrCodeController extends BaseController {
...
@@ -104,11 +106,13 @@ public class PersonQrCodeController extends BaseController {
@RequestParam
(
value
=
"size"
)
Integer
size
,
@RequestParam
(
value
=
"size"
)
Integer
size
,
@RequestParam
(
required
=
false
,
value
=
"dataType"
)
String
dataType
,
@RequestParam
(
required
=
false
,
value
=
"dataType"
)
String
dataType
,
@RequestParam
(
required
=
false
)
String
date
,
@RequestParam
(
required
=
false
)
String
date
,
@RequestParam
(
required
=
false
)
String
qrCodeColor
)
{
@RequestParam
(
required
=
false
)
String
qrCodeColor
,
@RequestParam
(
value
=
"areaCode"
,
required
=
false
)
String
areaCode
,
@RequestParam
(
value
=
"platformStationId"
,
required
=
false
)
String
platformStationId
)
{
Page
<
Map
<
String
,
Object
>>
resultList
=
new
Page
<>();
Page
<
Map
<
String
,
Object
>>
resultList
=
new
Page
<>();
if
(
"person"
.
equals
(
dataType
))
{
if
(
"person"
.
equals
(
dataType
))
{
resultList
=
personBasicServiceImpl
.
getPersonYardByPage
(
parentCode
,
current
,
size
,
date
,
qrCodeColor
,
null
,
null
);
resultList
=
personBasicServiceImpl
.
getPersonYardByPage
(
parentCode
,
current
,
size
,
date
,
qrCodeColor
,
null
,
null
,
areaCode
,
platformStationId
);
}
else
if
(
"equip"
.
equals
(
dataType
))
{
}
else
if
(
"equip"
.
equals
(
dataType
))
{
List
<
Map
<
String
,
Object
>>
equipYardByPage
=
sjglZsjZsbtzMapper
.
getEquipYardByPage
((
current
-
1
)
*
size
,
size
,
parentCode
,
date
,
qrCodeColor
,
null
);
List
<
Map
<
String
,
Object
>>
equipYardByPage
=
sjglZsjZsbtzMapper
.
getEquipYardByPage
((
current
-
1
)
*
size
,
size
,
parentCode
,
date
,
qrCodeColor
,
null
);
Integer
equipYardByPageCount
=
sjglZsjZsbtzMapper
.
getEquipYardByPageCount
(
parentCode
,
date
,
qrCodeColor
,
null
);
Integer
equipYardByPageCount
=
sjglZsjZsbtzMapper
.
getEquipYardByPageCount
(
parentCode
,
date
,
qrCodeColor
,
null
);
...
@@ -144,7 +148,9 @@ public class PersonQrCodeController extends BaseController {
...
@@ -144,7 +148,9 @@ public class PersonQrCodeController extends BaseController {
@GetMapping
(
value
=
"/getQrCodeCount"
)
@GetMapping
(
value
=
"/getQrCodeCount"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"评估大屏 - 人员赋码数量等统计"
,
notes
=
"评估大屏 - 人员赋码数量等统计"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"评估大屏 - 人员赋码数量等统计"
,
notes
=
"评估大屏 - 人员赋码数量等统计"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getQrCodeCount
(
@RequestParam
(
required
=
false
,
value
=
"parentCode"
)
String
parentCode
,
public
ResponseModel
<
Map
<
String
,
Object
>>
getQrCodeCount
(
@RequestParam
(
required
=
false
,
value
=
"parentCode"
)
String
parentCode
,
@RequestParam
(
required
=
false
,
value
=
"dataType"
)
String
dataType
)
{
@RequestParam
(
required
=
false
,
value
=
"dataType"
)
String
dataType
,
@RequestParam
(
value
=
"areaCode"
,
required
=
false
)
String
areaCode
,
@RequestParam
(
value
=
"platformStationId"
,
required
=
false
)
String
platformStationId
)
{
FeignClientResult
<
Map
<
String
,
Object
>>
sevenEntity
=
null
;
FeignClientResult
<
Map
<
String
,
Object
>>
sevenEntity
=
null
;
try
{
try
{
...
@@ -160,7 +166,7 @@ public class PersonQrCodeController extends BaseController {
...
@@ -160,7 +166,7 @@ public class PersonQrCodeController extends BaseController {
String
yellowToGreen
=
result
.
get
(
"yellowToGreen"
).
toString
();
String
yellowToGreen
=
result
.
get
(
"yellowToGreen"
).
toString
();
Integer
countAll
=
0
;
Integer
countAll
=
0
;
if
(
"RYFM"
.
equals
(
dataType
)
||
"person"
.
equals
(
dataType
))
{
if
(
"RYFM"
.
equals
(
dataType
)
||
"person"
.
equals
(
dataType
))
{
countAll
=
personBasicMapper
.
getPersonYardByPageCount
(
parentCode
,
null
,
null
,
null
);
countAll
=
personBasicMapper
.
getPersonYardByPageCount
(
parentCode
,
null
,
null
,
null
,
areaCode
,
platformStationId
);
}
else
if
(
"equip"
.
equals
(
dataType
))
{
}
else
if
(
"equip"
.
equals
(
dataType
))
{
countAll
=
sjglZsjZsbtzMapper
.
getEquipYardByPageCount
(
parentCode
,
null
,
null
,
null
);
countAll
=
sjglZsjZsbtzMapper
.
getEquipYardByPageCount
(
parentCode
,
null
,
null
,
null
);
}
else
if
(
"job"
.
equals
(
dataType
))
{
}
else
if
(
"job"
.
equals
(
dataType
))
{
...
@@ -186,7 +192,7 @@ public class PersonQrCodeController extends BaseController {
...
@@ -186,7 +192,7 @@ public class PersonQrCodeController extends BaseController {
@GetMapping
(
value
=
"/getQrCodeCountByStation"
)
@GetMapping
(
value
=
"/getQrCodeCountByStation"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"评估大屏 - 场站 人员赋码数量等统计 【折线图】"
,
notes
=
"评估大屏 - 场站 人员赋码数量等统计 【折线图】"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"评估大屏 - 场站 人员赋码数量等统计 【折线图】"
,
notes
=
"评估大屏 - 场站 人员赋码数量等统计 【折线图】"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getQrCodeCountByStation
(
@RequestParam
(
required
=
false
,
value
=
"parentCode"
)
String
parentCode
,
public
ResponseModel
<
Map
<
String
,
Object
>>
getQrCodeCountByStation
(
@RequestParam
(
required
=
false
,
value
=
"parentCode"
)
String
parentCode
,
@RequestParam
(
required
=
false
,
value
=
"dataType"
)
String
dataType
)
{
@RequestParam
(
required
=
false
,
value
=
"dataType"
)
String
dataType
)
{
List
<
Map
<
String
,
Object
>>
qrCodeCountByStation
=
stationQrCodeStatisticsMapper
.
getQrCodeCountByStation
(
parentCode
,
dataType
);
List
<
Map
<
String
,
Object
>>
qrCodeCountByStation
=
stationQrCodeStatisticsMapper
.
getQrCodeCountByStation
(
parentCode
,
dataType
);
List
<
Object
>
redNum
=
qrCodeCountByStation
.
stream
().
map
(
t
->
t
.
get
(
"redNum"
)).
collect
(
Collectors
.
toList
());
List
<
Object
>
redNum
=
qrCodeCountByStation
.
stream
().
map
(
t
->
t
.
get
(
"redNum"
)).
collect
(
Collectors
.
toList
());
...
@@ -273,10 +279,12 @@ public class PersonQrCodeController extends BaseController {
...
@@ -273,10 +279,12 @@ public class PersonQrCodeController extends BaseController {
@RequestParam
(
required
=
false
,
value
=
"score"
)
BigDecimal
score
,
@RequestParam
(
required
=
false
,
value
=
"score"
)
BigDecimal
score
,
@RequestParam
(
value
=
"current"
)
Integer
current
,
@RequestParam
(
value
=
"current"
)
Integer
current
,
@RequestParam
(
value
=
"size"
)
Integer
size
,
@RequestParam
(
value
=
"size"
)
Integer
size
,
@RequestParam
(
required
=
false
,
value
=
"date"
)
String
date
)
{
@RequestParam
(
required
=
false
,
value
=
"date"
)
String
date
,
@RequestParam
(
value
=
"areaCode"
,
required
=
false
)
String
areaCode
,
@RequestParam
(
value
=
"platformStationId"
,
required
=
false
)
String
platformStationId
)
{
Page
<
Map
<
String
,
Object
>>
resultList
=
new
Page
<>();
Page
<
Map
<
String
,
Object
>>
resultList
=
new
Page
<>();
if
(
"V1"
.
equals
(
column
))
{
if
(
"V1"
.
equals
(
column
))
{
resultList
=
personBasicServiceImpl
.
getPersonYardByPage
(
parentCode
,
current
,
size
,
date
,
null
,
"green"
,
score
);
resultList
=
personBasicServiceImpl
.
getPersonYardByPage
(
parentCode
,
current
,
size
,
date
,
null
,
"green"
,
score
,
areaCode
,
platformStationId
);
}
else
if
(
"S1"
.
equals
(
column
))
{
}
else
if
(
"S1"
.
equals
(
column
))
{
List
<
Map
<
String
,
Object
>>
equipYardByPage
=
sjglZsjZsbtzMapper
.
getEquipYardByPage
((
current
-
1
)
*
size
,
size
,
parentCode
,
date
,
null
,
"green"
);
List
<
Map
<
String
,
Object
>>
equipYardByPage
=
sjglZsjZsbtzMapper
.
getEquipYardByPage
((
current
-
1
)
*
size
,
size
,
parentCode
,
date
,
null
,
"green"
);
Integer
equipYardByPageCount
=
sjglZsjZsbtzMapper
.
getEquipYardByPageCount
(
parentCode
,
date
,
null
,
"green"
);
Integer
equipYardByPageCount
=
sjglZsjZsbtzMapper
.
getEquipYardByPageCount
(
parentCode
,
date
,
null
,
"green"
);
...
@@ -330,8 +338,8 @@ public class PersonQrCodeController extends BaseController {
...
@@ -330,8 +338,8 @@ public class PersonQrCodeController extends BaseController {
if
(
"V1"
.
equals
(
column
))
{
if
(
"V1"
.
equals
(
column
))
{
resultMap
=
personBasicServiceImpl
.
getPersonDetailInfoByObjectId
(
objectId
);
resultMap
=
personBasicServiceImpl
.
getPersonDetailInfoByObjectId
(
objectId
);
if
(
resultMap
.
get
(
"recDate"
).
equals
(
""
)){
if
(
resultMap
.
get
(
"recDate"
).
equals
(
""
))
{
resultMap
.
put
(
"recDate"
,
resultMap
.
get
(
"qrcodeDate"
));
resultMap
.
put
(
"recDate"
,
resultMap
.
get
(
"qrcodeDate"
));
}
}
}
else
if
(
"S1"
.
equals
(
column
))
{
}
else
if
(
"S1"
.
equals
(
column
))
{
resultMap
=
sjglZsjZsbtzMapper
.
getEquipDetailInfoByObjectId
(
objectId
);
resultMap
=
sjglZsjZsbtzMapper
.
getEquipDetailInfoByObjectId
(
objectId
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/dto/StationCacheInfoDto.java
View file @
15a6f2c1
...
@@ -9,6 +9,8 @@ public class StationCacheInfoDto implements Serializable {
...
@@ -9,6 +9,8 @@ public class StationCacheInfoDto implements Serializable {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
//场站id
//场站id
private
String
stationId
;
private
String
stationId
;
//平台场站id
private
String
platformStationId
;
//场站名称
//场站名称
private
String
stationName
;
private
String
stationName
;
//场站类型
//场站类型
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/MonitorService.java
View file @
15a6f2c1
...
@@ -15,11 +15,11 @@ import java.util.Map;
...
@@ -15,11 +15,11 @@ import java.util.Map;
public
interface
MonitorService
{
public
interface
MonitorService
{
/**
/**
* @param areaCode 区域编码
* @param areaCode 区域编码
* @param
s
tationId 场站id
* @param
platformS
tationId 场站id
* @return 全国运维数据
* @return 全国运维数据
* @Description 根据区域编码动态运维数据
* @Description 根据区域编码动态运维数据
*/
*/
IPage
<
Map
<
String
,
Object
>>
operationData
(
String
areaCode
,
String
s
tationId
);
IPage
<
Map
<
String
,
Object
>>
operationData
(
String
areaCode
,
String
platformS
tationId
);
/**
/**
* @return Map<String, Object>
* @return Map<String, Object>
...
@@ -123,8 +123,8 @@ public interface MonitorService {
...
@@ -123,8 +123,8 @@ public interface MonitorService {
/**
/**
* 获取接入情况
* 获取接入情况
* @param areaCode
* @param areaCode
* @param
s
tationId
* @param
platformS
tationId
* @return
* @return
*/
*/
Map
<
String
,
Object
>
getAccessSituation
(
String
areaCode
,
String
s
tationId
);
Map
<
String
,
Object
>
getAccessSituation
(
String
areaCode
,
String
platformS
tationId
);
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorServiceImpl.java
View file @
15a6f2c1
...
@@ -61,13 +61,13 @@ public class MonitorServiceImpl implements MonitorService {
...
@@ -61,13 +61,13 @@ public class MonitorServiceImpl implements MonitorService {
private
Resource
overviewGF
;
private
Resource
overviewGF
;
@Override
@Override
public
IPage
<
Map
<
String
,
Object
>>
operationData
(
String
areaCode
,
String
s
tationId
)
{
public
IPage
<
Map
<
String
,
Object
>>
operationData
(
String
areaCode
,
String
platformS
tationId
)
{
List
<
StationCacheInfoDto
>
list
=
getListStationCacheInfoDto
();
List
<
StationCacheInfoDto
>
list
=
getListStationCacheInfoDto
();
if
(
null
!=
areaCode
)
{
if
(
null
!=
areaCode
)
{
list
=
list
.
stream
().
filter
(
e
->
e
.
getAreaCode
().
toUpperCase
(
Locale
.
ROOT
).
equals
(
areaCode
.
toUpperCase
(
Locale
.
ROOT
))).
collect
(
Collectors
.
toList
());
list
=
list
.
stream
().
filter
(
e
->
e
.
getAreaCode
().
toUpperCase
(
Locale
.
ROOT
).
equals
(
areaCode
.
toUpperCase
(
Locale
.
ROOT
))).
collect
(
Collectors
.
toList
());
}
}
if
(!
StringUtils
.
isEmpty
(
s
tationId
))
{
if
(!
StringUtils
.
isEmpty
(
platformS
tationId
))
{
list
=
list
.
stream
().
filter
(
e
->
e
.
get
StationId
().
toUpperCase
(
Locale
.
ROOT
).
equals
(
s
tationId
.
toUpperCase
(
Locale
.
ROOT
))).
collect
(
Collectors
.
toList
());
list
=
list
.
stream
().
filter
(
e
->
e
.
get
PlatformStationId
().
toUpperCase
(
Locale
.
ROOT
).
equals
(
platformS
tationId
.
toUpperCase
(
Locale
.
ROOT
))).
collect
(
Collectors
.
toList
());
}
}
List
<
Map
<
String
,
Object
>>
mapList
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
mapList
=
new
ArrayList
<>();
Map
<
String
,
List
<
StationCacheInfoDto
>>
listMap
=
list
.
stream
().
collect
(
Collectors
.
groupingBy
(
StationCacheInfoDto:
:
getStationType
,
Collectors
.
toList
()));
Map
<
String
,
List
<
StationCacheInfoDto
>>
listMap
=
list
.
stream
().
collect
(
Collectors
.
groupingBy
(
StationCacheInfoDto:
:
getStationType
,
Collectors
.
toList
()));
...
@@ -160,6 +160,7 @@ public class MonitorServiceImpl implements MonitorService {
...
@@ -160,6 +160,7 @@ public class MonitorServiceImpl implements MonitorService {
stationCacheInfoDto
.
setBoosterGatewayId
(
stationBasic
.
getBoosterGatewayId
());
stationCacheInfoDto
.
setBoosterGatewayId
(
stationBasic
.
getBoosterGatewayId
());
stationCacheInfoDto
.
setBoosterCoreName
(
stationBasic
.
getBoosterCoreName
());
stationCacheInfoDto
.
setBoosterCoreName
(
stationBasic
.
getBoosterCoreName
());
stationCacheInfoDto
.
setStationCoreName
(
stationBasic
.
getStationCoreName
());
stationCacheInfoDto
.
setStationCoreName
(
stationBasic
.
getStationCoreName
());
stationCacheInfoDto
.
setPlatformStationId
(
stationBasic
.
getPlatformStationId
());
stationCacheInfoDtos
.
add
(
stationCacheInfoDto
);
stationCacheInfoDtos
.
add
(
stationCacheInfoDto
);
}
}
...
@@ -948,8 +949,8 @@ public class MonitorServiceImpl implements MonitorService {
...
@@ -948,8 +949,8 @@ public class MonitorServiceImpl implements MonitorService {
}
}
@Override
@Override
public
Map
<
String
,
Object
>
getAccessSituation
(
String
areaCode
,
String
s
tationId
)
{
public
Map
<
String
,
Object
>
getAccessSituation
(
String
areaCode
,
String
platformS
tationId
)
{
IPage
<
Map
<
String
,
Object
>>
page
=
operationData
(
areaCode
,
s
tationId
);
IPage
<
Map
<
String
,
Object
>>
page
=
operationData
(
areaCode
,
platformS
tationId
);
List
<
Map
<
String
,
Object
>>
records
=
page
.
getRecords
();
List
<
Map
<
String
,
Object
>>
records
=
page
.
getRecords
();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
if
(!
CollectionUtils
.
isEmpty
(
records
))
{
if
(!
CollectionUtils
.
isEmpty
(
records
))
{
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
View file @
15a6f2c1
...
@@ -124,9 +124,11 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto, PersonBa
...
@@ -124,9 +124,11 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto, PersonBa
String
date
,
String
date
,
String
qrCodeColor
,
String
qrCodeColor
,
String
ne
,
String
ne
,
BigDecimal
score
)
{
BigDecimal
score
,
List
<
Map
<
String
,
Object
>>
resultList
=
personBasicMapper
.
getPersonYardByPage
((
current
-
1
)
*
size
,
size
,
parentCode
,
date
,
qrCodeColor
,
ne
);
String
areaCode
,
Integer
count
=
personBasicMapper
.
getPersonYardByPageCount
(
parentCode
,
date
,
qrCodeColor
,
ne
);
String
platformStationId
)
{
List
<
Map
<
String
,
Object
>>
resultList
=
personBasicMapper
.
getPersonYardByPage
((
current
-
1
)
*
size
,
size
,
parentCode
,
date
,
qrCodeColor
,
ne
,
areaCode
,
platformStationId
);
Integer
count
=
personBasicMapper
.
getPersonYardByPageCount
(
parentCode
,
date
,
qrCodeColor
,
ne
,
areaCode
,
platformStationId
);
resultList
.
forEach
(
item
->
{
resultList
.
forEach
(
item
->
{
String
name
=
QrcodeColorEnum
.
getName
(
String
.
valueOf
(
item
.
get
(
"qrCodeColor"
)));
String
name
=
QrcodeColorEnum
.
getName
(
String
.
valueOf
(
item
.
get
(
"qrCodeColor"
)));
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
View file @
15a6f2c1
This diff is collapsed.
Click to expand it.
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