|  |  |  | 
|---|
|  |  |  | <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"/> | 
|---|
|  |  |  | <result property="companyId" column="company_id" /> | 
|---|
|  |  |  | <!--扩展属性  --> | 
|---|
|  |  |  | <!-- <association property="article" javaType="Article" | 
|---|
|  |  |  | column="{type_id=id}" select="com.matrix.system.hive.dao.ArticleDao.selectById" /> --> | 
|---|
|  |  |  | 
|---|
|  |  |  | url, | 
|---|
|  |  |  | icon, | 
|---|
|  |  |  | type, | 
|---|
|  |  |  | shop_id | 
|---|
|  |  |  | shop_id, | 
|---|
|  |  |  | company_id, | 
|---|
|  |  |  | parent_ids | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | VALUES ( | 
|---|
|  |  |  | #{id}, | 
|---|
|  |  |  | 
|---|
|  |  |  | #{url}, | 
|---|
|  |  |  | #{icon}, | 
|---|
|  |  |  | #{type}, | 
|---|
|  |  |  | #{shopId} | 
|---|
|  |  |  | #{shopId}, | 
|---|
|  |  |  | #{companyId}, | 
|---|
|  |  |  | #{parentIds} | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | </insert> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | </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> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="record.articleTypeName != null and record.articleTypeName !='' "> | 
|---|
|  |  |  | and article_type_name = #{record.articleTypeName} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="record.parentId != null and record.parentId !='' "> | 
|---|
|  |  |  | <if test="record.parentId != null or record.parentId ==0 "> | 
|---|
|  |  |  | and parent_id = #{record.parentId} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="record.sort != null and record.sort !='' "> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="record.shopId != null and record.shopId !='' "> | 
|---|
|  |  |  | and shop_id = #{record.shopId} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="record.companyId != null and record.companyId !='' "> | 
|---|
|  |  |  | and company_id = #{record.companyId} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | </mapper> | 
|---|