whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
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
46
47
48
49
50
51
package com.fgkj.mapper.impl;
 
import java.util.List;
 
import com.fgkj.dto.Batt_param_low;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
 
public interface Batt_param_lowMapper{
 
    public boolean add(Object obj);
 
    @Update("update web_site.tb_batt_param_low set low_value=#{low_value},low_method=#{low_method} where low_type=#{low_type} and low_nametype=#{low_nametype}")
    public int update(Batt_param_low obj);
 
    //修改
    public boolean del(Object obj);
 
    @Select("select num,low_type,low_nametype,low_value,low_method  from web_site.tb_batt_param_low")
    public List<Batt_param_low> searchAll() ;
 
    public List serchByCondition(Object obj);
 
    //根据low_type,low_nametype查阈值
    public List serchByLow(Object obj);
 
    /*public static void main(String[] args) {
 
        Batt_param_lowImpl bpl=new Batt_param_lowImpl();
        Batt_param_low b=new Batt_param_low();
        b.setLow_nametype(1);
        b.setLow_type(1);
        *//*b.setNum(4);
        b.setLow_type(3);
        b.setLow_name("low4");
        b.setLow_value(0.75f);*//*
        *//*List<Batt_param_low> list=bpl.serchByCondition(b);
        for(Batt_param_low bb:list){
            System.out.println(bb);
        }*//*
 
        //System.out.println(bpl.add(b));
        //System.out.println(bpl.del(b));
        //System.out.println(bpl.update(b));
        List<Batt_param_low> list=bpl.serchByLow(b);
        for(Batt_param_low bb:list){
            System.out.println(bb);
        }
    }*/
}