| | |
| | | package com.panzhihua.service_jinhui_community.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.panzhihua.common.model.vos.jinhui.JinhuiCommunityServicesVO; |
| | | import com.panzhihua.common.model.vos.jinhui.JinhuiIndexInfoVO; |
| | | import com.panzhihua.common.model.vos.jinhui.JinhuiMerchantTypeVO; |
| | | import com.panzhihua.common.model.vos.jinhui.*; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_jinhui_community.dao.JinhuiLargeScreenDao; |
| | | import com.panzhihua.service_jinhui_community.service.JinhuiLargeScreenService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | |
| | | { |
| | | return baseMapper.getServiceTeam(communityId,type); |
| | | } |
| | | |
| | | @Override |
| | | public String getEarlyWarningNum(String disposeType, String communityId) { |
| | | return baseMapper.getEarlyWarningNum(disposeType,communityId); |
| | | } |
| | | |
| | | @Override |
| | | public List<JinhuiOldManVO> getEarlyWarningList(String disposeType, String communityId) { |
| | | return baseMapper.getEarlyWarningList(disposeType,communityId); |
| | | } |
| | | |
| | | @Override |
| | | public String getBraceletUser(String sex, String communityId) { |
| | | return baseMapper.getBraceletUser(sex,communityId); |
| | | } |
| | | |
| | | @Override |
| | | public List<JinhuiOldManBrokenLineVO> getEventAddPolylineData(String communityId) |
| | | { |
| | | List<JinhuiOldManBrokenLineVO> list=baseMapper.getEventAddPolylineData(communityId); |
| | | list.forEach(e -> { |
| | | String temp = baseMapper.getEventTotalPolylineDate(communityId, e.getFiled()); |
| | | e.setTotalNum(temp); |
| | | }); |
| | | |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public String getEventTotalPolylineDate(String communityId,String date) { |
| | | return baseMapper.getEventTotalPolylineDate(communityId,date); |
| | | } |
| | | |
| | | @Override |
| | | public List<JinhuiOldManUserDateVO> getOldManUserDate(String communityId) |
| | | { |
| | | List<JinhuiOldManUserDateVO> list=baseMapper.getOldManUserDate(communityId); |
| | | list.forEach(e -> { |
| | | //判断是否异常 |
| | | if(StringUtils.equals("1",e.getIsAbnormal())) |
| | | { |
| | | //是否正常 (0 正常 1异常 2 待服务) |
| | | String temp = baseMapper.getEarlyNewDate(communityId, e.getDeviceId()); |
| | | //处理状态(1 未处理 2 已处理 3处理中 4 忽略) |
| | | if(StringUtils.equals("3",temp)) |
| | | { |
| | | e.setIsAbnormal("2"); |
| | | } |
| | | else if(StringUtils.equals("2",temp) || StringUtils.equals("4",temp) ) |
| | | { |
| | | e.setIsAbnormal("0"); |
| | | } |
| | | } |
| | | |
| | | }); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public String getEarlyNewDate(String communityId, String equipmentNumber) { |
| | | return baseMapper.getEarlyNewDate(communityId,equipmentNumber); |
| | | } |
| | | |
| | | |
| | | } |