lxw
2020-07-11 9db52f2f2dd3665fe9da1ae5657e0167c3a34d40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.fgkj.services.Ld9;
 
import java.util.List;
 
import com.fgkj.dao.BaseDAO;
import com.fgkj.dao.BaseDAOFactory;
import com.fgkj.dao.impl.Ld9.Ld9testdataImpl;
import com.fgkj.dto.ServiceModel;
 
public class Ld9testdataService {
    private BaseDAO dao;
    private ServiceModel model;
    
    public Ld9testdataService() {
        super();
        this.dao =BaseDAOFactory.getBaseDAO(BaseDAO.LD9TESTDATA);
        this.model = new ServiceModel();
    }
    //历史监测
    public ServiceModel serchByCondition(Object obj) {
        List list=dao.serchByCondition(obj);
        if(list!=null&&list.size()>0){
            model.setCode(1);
            model.setData(list);
            model.setMsg("查询成功!");
        }else{
            model.setCode(0);
            model.setMsg("查询失败!");
        }
        return model;
    }
    //查询某次测试下电池组节数放电情况
    public ServiceModel serchByInfo(Object obj){
        List list=dao.serchByInfo(obj);
        if(list!=null&&list.size()>0){
            model.setCode(1);
            model.setData(list);
            model.setMsg("查询成功!");
        }else{
            model.setCode(0);
            model.setMsg("查询失败!");
        }
        return model;
    }
}