Helius
2020-12-30 86c486af90c6f6f4b00e0979f48992b38eb0ff6a
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>