From 83be430710bd0269cfc781ab241ff2aba93106f0 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Wed, 06 Jan 2021 16:06:43 +0800
Subject: [PATCH] modify
---
zq-erp/src/main/resources/mybatis/mapper/hive/ArticleTypeDao.xml | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/ArticleTypeDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/ArticleTypeDao.xml
index c45c853..65db100 100644
--- a/zq-erp/src/main/resources/mybatis/mapper/hive/ArticleTypeDao.xml
+++ b/zq-erp/src/main/resources/mybatis/mapper/hive/ArticleTypeDao.xml
@@ -12,7 +12,8 @@
<result property="description" column="description" />
<result property="url" column="url" />
<result property="icon" column="icon" />
- <result property="type" column="type" />
+ <result property="type" column="type" />
+ <result property="parentIds" column="parent_ids" />
<result property="shopId" column="shop_id"/>
<!--扩展属性 -->
<!-- <association property="article" javaType="Article"
@@ -30,7 +31,8 @@
url,
icon,
type,
- shop_id
+ shop_id,
+ parent_ids
)
VALUES (
#{id},
@@ -41,7 +43,8 @@
#{url},
#{icon},
#{type},
- #{shopId}
+ #{shopId},
+ #{parentIds}
)
</insert>
@@ -70,7 +73,10 @@
</if>
<if test="type != null and type !='' ">
type = #{type},
- </if>
+ </if>
+ <if test="parentIds != null and parentIds !='' ">
+ parent_ids = #{parentIds},
+ </if>
</set>
WHERE id=#{id}
</update>
--
Gitblit v1.9.1