From b8b9ba738ce614820a46c6700e5400984c4e5b58 Mon Sep 17 00:00:00 2001 From: wzy <wzy19931122ai@163.com> Date: Mon, 18 Jan 2021 00:21:59 +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