| | |
| | | import com.whyc.pojo.db_user.UserInf; |
| | | import com.whyc.util.ActionUtil; |
| | | import com.whyc.util.SubTablePageInfoUtil; |
| | | import com.whyc.util.ThreadLocalUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | public Response getDAlmHis(DalmDto dto) throws ParseException { |
| | | UserInf uinf= ActionUtil.getUser(); |
| | | dto.setUid(uinf.getUid()); |
| | | if(dto.getStartTime()==null){ |
| | | dto.setStartTime(ThreadLocalUtil.parse("2024-01-01 00:00:00",1)); |
| | | } |
| | | if(dto.getEndTime()==null){ |
| | | dto.setEndTime(new Date()); |
| | | } |
| | | PageInfo pageInfo=service.getPageInfo(dto.getPageNum(),dto.getPageSize(),dto.getStartTime(),dto.getEndTime() |
| | | ,"db_alarm", "tb_devalarm_data", dto); |
| | | return new Response().setII(1,pageInfo!=null,pageInfo,"获取设备告警信息"); |