package com.fgkj.services.ram;
|
|
import com.fgkj.dto.JhState;
|
import com.fgkj.dto.ServiceModel;
|
import com.fgkj.mapper.impl.ram.JhStateMapper;
|
import org.springframework.stereotype.Service;
|
|
import javax.annotation.Resource;
|
import java.util.List;
|
|
/**
|
* @author 81041
|
*/
|
@Service
|
public class JhStateService {
|
|
@Resource
|
private JhStateMapper mapper;;
|
|
//根据设备id查询设备均衡供电模块的信息
|
public ServiceModel serchByCondition(JhState jh) {
|
ServiceModel model = new ServiceModel();
|
List<JhState> list=mapper.serchByCondition(jh);
|
if(list!=null&&list.size()>0){
|
model.setCode(1);
|
model.setData(list);
|
model.setMsg("查询成功");
|
}else{
|
model.setCode(0);
|
model.setMsg("查询失败");
|
}
|
return model;
|
}
|
|
}
|