| | |
| | | <result property="url" column="url" /> |
| | | <result property="icon" column="icon" /> |
| | | <result property="type" column="type" /> |
| | | <result property="parentIds" column="parent_ids" /> |
| | | <result property="shopId" column="shop_id"/> |
| | | <!--扩展属性 --> |
| | | <!-- <association property="article" javaType="Article" |
| | |
| | | url, |
| | | icon, |
| | | type, |
| | | shop_id |
| | | shop_id, |
| | | parent_ids |
| | | ) |
| | | VALUES ( |
| | | #{id}, |
| | |
| | | #{url}, |
| | | #{icon}, |
| | | #{type}, |
| | | #{shopId} |
| | | #{shopId}, |
| | | #{parentIds} |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | <if test="type != null and type !='' "> |
| | | type = #{type}, |
| | | </if> |
| | | <if test="parentIds != null and parentIds !='' "> |
| | | parent_ids = #{parentIds}, |
| | | </if> |
| | | </set> |
| | | WHERE id=#{id} |
| | | </update> |