whycxzp
2023-12-20 19b0055c49890ebdffc17be009e4b871bff380f8
更新
1个文件已修改
50 ■■■■■ 已修改文件
src/main/resources/mapper/CKPowerDevBattRtDataSetMapper.xml 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/CKPowerDevBattRtDataSetMapper.xml
@@ -4,7 +4,53 @@
    <update id="updateBatch">
        <!--TODO-->
        <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.monVolFake !=null">
                    mon_vol_st = #{item.monVolSt},
                </if>
                <if test="item.monVolFake !=null">
                    mon_res_fake = #{item.monResFake},
                </if>
                <if test="item.monVolFake !=null">
                    mon_res_st = #{item.monResSt},
                </if>
                <if test="item.monVolFake !=null">
                    mon_tmp_fake = #{item.monTmpFake},
                </if>
                <if test="item.monVolFake !=null">
                    mon_tmp_st = #{item.monTmpSt},
                </if>
                <if test="item.monVolFake !=null">
                    mon_restcap_fake = #{item.monRestCapFake},
                </if>
                <if test="item.monVolFake !=null">
                    mon_restcap_st = #{item.monRestCapSt},
                </if>
                <if test="item.monVolFake !=null">
                    mon_jhcurr_fake = #{item.monJhCurrFake},
                </if>
                <if test="item.monVolFake !=null">
                    mon_jhcurr_st = #{item.monJhCurrSt},
                </if>
                <if test="item.monVolFake !=null">
                    test_mon_vol_fake = #{item.testMonVolFake},
                </if>
                <if test="item.monVolFake !=null">
                    test_mon_vol_st = #{item.testMonVolSt},
                </if>
                <if test="item.monVolFake !=null">
                    test_mon_tmp_fake = #{item.testMonTmpFake},
                </if>
                <if test="item.monVolFake !=null">
                    test_mon_tmp_st = #{item.testMonTmpSt},
                </if>
            </set>
            where batt_index = #{item.battIndex} and mon_num = #{item.monNum}
        </foreach>
    </update>
</mapper>