履带吊调整
This commit is contained in:
parent
83a4998470
commit
3b58180a8f
@ -35,13 +35,13 @@ public class CrawlerCraneAlarmServiceImpl extends ServiceImpl<CrawlerCraneAlarmM
|
|||||||
public Map<String, Object> alarmStat(Map<String, Object> map) {
|
public Map<String, Object> alarmStat(Map<String, Object> map) {
|
||||||
QueryWrapper<CrawlerCraneAlarm> queryWrapper = QueryGenerator.initPageQueryWrapper(CrawlerCraneAlarm.class, map);
|
QueryWrapper<CrawlerCraneAlarm> queryWrapper = QueryGenerator.initPageQueryWrapper(CrawlerCraneAlarm.class, map);
|
||||||
List<CrawlerCraneAlarm> list = this.list(queryWrapper);
|
List<CrawlerCraneAlarm> list = this.list(queryWrapper);
|
||||||
int rotation = (int) list.stream().map(l -> l.getRotation() == 1).count();
|
int rotation = (int) list.stream().filter(l -> l.getRotation() == 1).count();
|
||||||
int mainWeight = (int) list.stream().map(l -> l.getMainWeight() == 1).count();
|
int mainWeight = (int) list.stream().filter(l -> l.getMainWeight() == 1).count();
|
||||||
int mainHeight = (int) list.stream().map(l -> l.getMainHeight() == 1).count();
|
int mainHeight = (int) list.stream().filter(l -> l.getMainHeight() == 1).count();
|
||||||
int auxiliaryWeight = (int) list.stream().map(l -> l.getAuxiliaryWeight() == 1).count();
|
int auxiliaryWeight = (int) list.stream().filter(l -> l.getAuxiliaryWeight() == 1).count();
|
||||||
int auxiliaryHeight = (int) list.stream().map(l -> l.getAuxiliaryHeight() == 1).count();
|
int auxiliaryHeight = (int) list.stream().filter(l -> l.getAuxiliaryHeight() == 1).count();
|
||||||
int rearTiltLimit = (int) list.stream().map(l -> l.getRearTiltLimit() == 1).count();
|
int rearTiltLimit = (int) list.stream().filter(l -> l.getRearTiltLimit() == 1).count();
|
||||||
int windSpeed = (int) list.stream().map(l -> l.getWindSpeed() == 1).count();
|
int windSpeed = (int) list.stream().filter(l -> l.getWindSpeed() == 1).count();
|
||||||
Map<String, Object> resultMap = new HashMap<>();
|
Map<String, Object> resultMap = new HashMap<>();
|
||||||
List<Map<String, Object>> alarmTypeList = new ArrayList<>();
|
List<Map<String, Object>> alarmTypeList = new ArrayList<>();
|
||||||
if (rotation > 0) {
|
if (rotation > 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user