lizijie
2021-05-26 c39c2270fcd63bf2700120cb9d2115027e0b57d2
因子上下限空字符串判断
1 files modified
14 ■■■■ changed files
screen-manage/src/main/resources/mapper/SensorMapper.xml 14 ●●●● patch | view | raw | blame | history
screen-manage/src/main/resources/mapper/SensorMapper.xml
@@ -85,10 +85,20 @@
                code = #{code},
            </if>
            <if test="upper != null">
                upper = #{upper},
                <if test="upper == ''">
                    upper = null,
                </if>
                <if test="upper != ''">
                    upper = #{upper},
                </if>
            </if>
            <if test="lower != null">
                lower = #{lower},
                <if test="lower == ''">
                    lower = null,
                </if>
                <if test="lower != ''">
                    lower = #{lower},
                </if>
            </if>
            <if test="default_unit_key != null">
                default_unit_key = #{default_unit_key},