From 3f6229dcb3e1aa75c7882729c04e45bfc382e08a Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期四, 29 八月 2024 16:43:22 +0800
Subject: [PATCH] 优化查询任务计划列表接口(id以string格式传给前端)
---
pms-parent/pms-global/src/main/resources/mapper/PltProductUnqualifiedReasonMapper.xml | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/pms-parent/pms-global/src/main/resources/mapper/PltProductUnqualifiedReasonMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PltProductUnqualifiedReasonMapper.xml
index 27ff399..1c45f70 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/PltProductUnqualifiedReasonMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/PltProductUnqualifiedReasonMapper.xml
@@ -29,36 +29,36 @@
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPlt.PltProductUnqualifiedReason" useGeneratedKeys="true">
insert into plt_product_unqualified_reason
<trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null and id !=''">id,</if>
+ <if test="id != null">id,</if>
<if test="reason != null and reason !=''">reason,</if>
- <if test="proId != null and proId !=''">pro_id,</if>
- <if test="sort != null and sort !=''">sort,</if>
- <if test="deleted != null and deleted !=''">deleted,</if>
+ <if test="proId != null">pro_id,</if>
+ <if test="sort != null">sort,</if>
+ <if test="deleted != null">deleted,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null and id !=''">#{id,jdbcType=BIGINT},</if>
+ <if test="id != null">#{id,jdbcType=BIGINT},</if>
<if test="reason != null and reason !=''">#{reason,jdbcType=VARCHAR},</if>
- <if test="proId != null and proId !=''">#{proId,jdbcType=VARCHAR},</if>
- <if test="sort != null and sort !=''">#{sort,jdbcType=VARCHAR},</if>
- <if test="deleted != null and deleted !=''">#{deleted,jdbcType=TINYINT},</if>
+ <if test="proId != null">#{proId,jdbcType=VARCHAR},</if>
+ <if test="sort != null">#{sort,jdbcType=VARCHAR},</if>
+ <if test="deleted != null">#{deleted,jdbcType=TINYINT},</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.dy.pmsGlobal.pojoPlt.PltProductUnqualifiedReason">
update plt_product_unqualified_reason
<set>
- <if test="disabled != null and disabled !=''">
+ <if test="disabled != null">
disabled = #{disabled,jdbcType=TINYINT},
</if>
<if test="reason != null and reason !=''">
reason = #{reason,jdbcType=VARCHAR},
</if>
- <if test="proId != null and proId !=''">
+ <if test="proId != null">
pro_id = #{proId,jdbcType=VARCHAR},
</if>
- <if test="sort != null and sort !=''">
+ <if test="sort != null">
sort = #{sort,jdbcType=VARCHAR},
</if>
- <if test="deleted != null and deleted !=''">
+ <if test="deleted != null">
deleted = #{deleted,jdbcType=TINYINT},
</if>
</set>
--
Gitblit v1.8.0