| | |
| | | import com.whyc.dto.result.AlarmRes; |
| | | import com.whyc.mapper.BattalarmDataHistoryMapper; |
| | | import com.whyc.pojo.BattalarmDataHistory; |
| | | import com.whyc.pojo.PwrdevAlarmHistory; |
| | | import com.whyc.pojo.UserInf; |
| | | import com.whyc.pojo.UserLog; |
| | | import com.whyc.util.ActionUtil; |
| | | import com.whyc.util.MessageUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Calendar; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | for (AlarmRes a : list) { |
| | | List<BattalarmDataHistory> l = a.getAdataHs(); |
| | | for (BattalarmDataHistory adataH : l) { |
| | | adataH.setAlmSignalIdName(AlarmDaoFactory.getAlarmName(adataH.getAlmSignalId())); |
| | | adataH.setAlmLevelName(AlarmDaoFactory.getAlarmType(adataH.getAlmLevel())); |
| | | adataH.setAlmSignalIdName(MessageUtils.getMessage(AlarmDaoFactory.getAlarmName(adataH.getAlmSignalId()))); |
| | | adataH.setAlmLevelName(MessageUtils.getMessage(AlarmDaoFactory.getAlarmType(adataH.getAlmLevel()))); |
| | | } |
| | | } |
| | | PageInfo<AlarmRes> pinfo = new PageInfo<AlarmRes>(list); |