| | |
| | | package com.fgkj.services.ram; |
| | | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.dto.ram.Hard_dev_sms_state; |
| | | import com.fgkj.mapper.impl.ram.Hard_dev_sms_stateMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | public class Hard_dev_sms_stateService { |
| | | |
| | | private ServiceModel model; |
| | | ServiceModel model = new ServiceModel(); |
| | | |
| | | @Autowired |
| | | @Resource |
| | | private Hard_dev_sms_stateMapper mapper;; |
| | | |
| | | |
| | |
| | | } |
| | | //4.8查询所有的短信设备状态 |
| | | public ServiceModel searchAll(){ |
| | | List list=mapper.searchAll(); |
| | | // for (Object object : list) { |
| | | // System.out.println(object); |
| | | // } |
| | | //System.out.println(list); |
| | | List<Hard_dev_sms_state> list=mapper.searchAll(); |
| | | if(list!=null && list.size()>0){ |
| | | model.setCode(1); |
| | | model.setData(list); |