From ad82e755b335e38e29a5d722f7e8abe67b35a4c8 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期六, 20 七月 2024 16:40:15 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/SvyCategoryMapper.xml | 22 +++++++++++++++++-----
1 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/SvyCategoryMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyCategoryMapper.xml
index 63e8534..4b1a2da 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyCategoryMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SvyCategoryMapper.xml
@@ -15,6 +15,8 @@
<result property="createTime" column="create_time"/>
<result property="isupload" column="isupload"/>
<result property="uploadTime" column="upload_time"/>
+ <result property="pid" column="pid"/>
+ <result property="guid" column="guid"/>
</resultMap>
<sql id="selectSvyCategoryVo">
@@ -27,6 +29,8 @@
create_by,
create_time,
isupload,
+ pid,
+ guid,
upload_time
from svy_category
</sql>
@@ -60,7 +64,7 @@
and categoryname = #{categoryname}
</if>
</where>
- group by a.categoryname
+ group by a.categoryname
</select>
<insert id="insertSvyCategory" parameterType="com.smartor.domain.SvyCategory" useGeneratedKeys="true"
@@ -76,6 +80,8 @@
<if test="createTime != null">create_time,</if>
<if test="isupload != null">isupload,</if>
<if test="uploadTime != null">upload_time,</if>
+ <if test="pid != null">pid,</if>
+ <if test="guid != null">guid,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="categoryname != null">#{categoryname},</if>
@@ -87,6 +93,8 @@
<if test="createTime != null">#{createTime},</if>
<if test="isupload != null">#{isupload},</if>
<if test="uploadTime != null">#{uploadTime},</if>
+ <if test="pid != null">#{pid},</if>
+ <if test="guid != null">#{guid},</if>
</trim>
</insert>
@@ -102,15 +110,19 @@
<if test="createTime != null">create_time = #{createTime},</if>
<if test="isupload != null">isupload = #{isupload},</if>
<if test="uploadTime != null">upload_time = #{uploadTime},</if>
+ <if test="pid != null">pid = #{pid},</if>
+ <if test="guid != null">guid = #{guid},</if>
</trim>
where id = #{id}
</update>
- <delete id="deleteSvyCategoryById" parameterType="Long">
- delete
- from svy_category
+ <update id="deleteSvyCategoryById" parameterType="Long">
+ update svy_category
+ <trim prefix="SET" suffixOverrides=",">
+ <if test="delFlag != null and delFlag != ''">del_flag = 1</if>
+ </trim>
where id = #{id}
- </delete>
+ </update>
<delete id="deleteSvyCategoryByIds" parameterType="String">
delete from svy_category where id in
--
Gitblit v1.9.3