Prechádzať zdrojové kódy

修复场站新增/编辑保存失败: ConfigStationMapper insert/update中createTime/updateTime为Date字段, AuditFieldInterceptor会先填充非空Date, OGNL对非空Date执行!= ''比较抛invalid comparison, 去掉空串判断仅保留!= null

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
taosj 13 hodín pred
rodič
commit
e3de2f0a95

+ 6 - 6
forecast-backend-server/src/main/resources/mybatis/config/ConfigStationMapper.xml

@@ -119,9 +119,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="isFullPower != null and isFullPower != ''">is_full_power,</if>
             <if test="isDel != null and isDel != ''">is_del,</if>
             <if test="createBy != null">create_by,</if>
-            <if test="createTime != null and createTime != ''">create_time,</if>
+            <if test="createTime != null">create_time,</if>
             <if test="updateBy != null">update_by,</if>
-            <if test="updateTime != null and updateTime != ''">update_time,</if>
+            <if test="updateTime != null">update_time,</if>
             <if test="stationType != null">station_type,</if>
             <if test="systemPowerUuid != null">system_power_uuid,</if>
             <if test="areaId != null">area_id,</if>
@@ -153,9 +153,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="isFullPower != null and isFullPower != ''">#{isFullPower},</if>
             <if test="isDel != null and isDel != ''">#{isDel},</if>
             <if test="createBy != null">#{createBy},</if>
-            <if test="createTime != null and createTime != ''">#{createTime},</if>
+            <if test="createTime != null">#{createTime},</if>
             <if test="updateBy != null">#{updateBy},</if>
-            <if test="updateTime != null and updateTime != ''">#{updateTime},</if>
+            <if test="updateTime != null">#{updateTime},</if>
             <if test="stationType != null">#{stationType},</if>
             <if test="systemPowerUuid != null">#{systemPowerUuid},</if>
             <if test="areaId != null">#{areaId},</if>
@@ -190,9 +190,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="isFullPower != null and isFullPower != ''">is_full_power = #{isFullPower},</if>
             <if test="isDel != null and isDel != ''">is_del = #{isDel},</if>
             <if test="createBy != null">create_by = #{createBy},</if>
-            <if test="createTime != null and createTime != ''">create_time = #{createTime},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
             <if test="updateBy != null">update_by = #{updateBy},</if>
-            <if test="updateTime != null and updateTime != ''">update_time = #{updateTime},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
             <if test="stationType != null">station_type = #{stationType},</if>
             <if test="systemPowerUuid != null">system_power_uuid = #{systemPowerUuid},</if>
             <if test="areaId != null">area_id = #{areaId},</if>