whyclxw
2024-01-17 71a7ca2daff23173fb6905ff562cf7a9830d5df0
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.whyc.mapper.CKPowerDevBattRtDataSetMapper" >
 
 
    <update id="updateBatch">
        <foreach collection="list" item="item" separator=";">
            update db_ckpwrdev_data_rt.tb_ckpowerdev_batt_rtdata_set
            <set>
                <if test="item.monVolFake !=null">
                    mon_vol_fake = #{item.monVolFake},
                </if>
                <if test="item.monVolSt !=null">
                    mon_vol_st = #{item.monVolSt},
                </if>
                <if test="item.monResFake !=null">
                    mon_res_fake = #{item.monResFake},
                </if>
                <if test="item.monResSt !=null">
                    mon_res_st = #{item.monResSt},
                </if>
                <if test="item.monTmpFake !=null">
                    mon_tmp_fake = #{item.monTmpFake},
                </if>
                <if test="item.monTmpSt !=null">
                    mon_tmp_st = #{item.monTmpSt},
                </if>
                <if test="item.monRestCapFake !=null">
                    mon_restcap_fake = #{item.monRestCapFake},
                </if>
                <if test="item.monRestCapSt !=null">
                    mon_restcap_st = #{item.monRestCapSt},
                </if>
                <if test="item.monJhCurrFake !=null">
                    mon_jhcurr_fake = #{item.monJhCurrFake},
                </if>
                <if test="item.monJhCurrSt !=null">
                    mon_jhcurr_st = #{item.monJhCurrSt},
                </if>
                <if test="item.testMonVolFake !=null">
                    test_mon_vol_fake = #{item.testMonVolFake},
                </if>
                <if test="item.testMonVolSt !=null">
                    test_mon_vol_st = #{item.testMonVolSt},
                </if>
                <if test="item.testMonTmpFake !=null">
                    test_mon_tmp_fake = #{item.testMonTmpFake},
                </if>
                <if test="item.testMonTmpSt !=null">
                    test_mon_tmp_st = #{item.testMonTmpSt},
                </if>
            </set>
            where batt_index = #{item.battIndex} and mon_num = #{item.monNum}
        </foreach>
    </update>
    <update id="updateBatchInRsAlarm">
        <foreach collection="list" item="item" separator=";">
            update db_ckpwrdev_data_rt.tb_ckpowerdev_batt_rtdata_set
            <set>
                <if test="item.monRestCapFake !=null">
                    mon_restcap_fake = #{item.monRestCapFake},
                </if>
                <if test="item.monRestCapSt !=null">
                    mon_restcap_st = #{item.monRestCapSt},
                </if>
                <if test="item.testMonVolFake !=null">
                    test_mon_vol_fake = #{item.testMonVolFake},
                </if>
                <if test="item.testMonVolSt !=null">
                    test_mon_vol_st = #{item.testMonVolSt},
                </if>
                <if test="item.testMonTmpFake !=null">
                    test_mon_tmp_fake = #{item.testMonTmpFake},
                </if>
                <if test="item.testMonTmpSt !=null">
                    test_mon_tmp_st = #{item.testMonTmpSt},
                </if>
            </set>
            where batt_index = 0 and mon_num = #{item.monNum}
        </foreach>
    </update>
</mapper>