From 7ae67ba965ea680407ae21fedbd035d43ce8c313 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期二, 30 一月 2024 14:45:07 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/SvyLibTopicMapper.xml | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/SvyLibTopicMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyLibTopicMapper.xml index edb061a..bfce5aa 100644 --- a/smartor/src/main/resources/mapper/smartor/SvyLibTopicMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/SvyLibTopicMapper.xml @@ -107,9 +107,9 @@ <if test="tag != null">tag,</if> <if test="svyTopicId != null">svy_topicid,</if> <if test="categoryid != null">categoryid,</if> - <if test="topicContent != null">topic_content,</if> - <if test="suitway != null">suitway,</if> - <if test="isavailable != null">isavailable,</if> + <if test="topicContent != null and topicContent != ''">topic_content,</if> + <if test="suitway != null and suitway != ''">suitway,</if> + <if test="isavailable != null and isavailable != ''">isavailable,</if> <if test="language != null and language!=''">language,</if> <if test="otherdata != null and otherdata!=''">otherdata,</if> </trim> @@ -133,11 +133,11 @@ <if test="tag != null">#{tag},</if> <if test="svyTopicId != null">#{svyTopicId},</if> <if test="categoryid != null">#{categoryid},</if> - <if test="topicContent != null">#{topicContent},</if> - <if test="suitway != null">#{suitway},</if> - <if test="isavailable != null">#{isavailable},</if> - <if test="language != null">#{language},</if> - <if test="otherdata != null">#{otherdata},</if> + <if test="topicContent != null and topicContent != ''">#{topicContent},</if> + <if test="suitway != null and suitway != ''">#{suitway},</if> + <if test="isavailable != null and isavailable != ''">#{isavailable},</if> + <if test="language != null and language!=''">#{language},</if> + <if test="otherdata != null and otherdata!=''">#{otherdata},</if> </trim> </insert> -- Gitblit v1.9.3