|
@@ -11,6 +11,8 @@
|
|
|
<result column="remark" property="remark"/>
|
|
|
<result column="sign" property="sign"/>
|
|
|
<result column="showPictures" property="showPictures"/>
|
|
|
+ <result column="iconName" property="iconName"/>
|
|
|
+ <result column="iconColor" property="iconColor"/>
|
|
|
<collection property="productList" ofType="com.bosshand.virgo.api.workark.model.Product" resultMap="com.bosshand.virgo.api.workark.dao.ProductDao.result" columnPrefix="product_"/>
|
|
|
</resultMap>
|
|
|
|
|
@@ -49,7 +51,7 @@
|
|
|
</select>
|
|
|
|
|
|
<insert id="save" parameterType="com.bosshand.virgo.api.workark.model.ProductLevel" useGeneratedKeys="true" keyProperty="id">
|
|
|
- INSERT into workark_product_level(name, parentId, remark, sign, showPictures) values(#{name}, #{parentId}, #{remark}, #{sign}, #{showPictures})
|
|
|
+ INSERT into workark_product_level(name, parentId, remark, sign, showPictures, iconName, iconColor) values(#{name}, #{parentId}, #{remark}, #{sign}, #{showPictures}, #{iconName}, #{iconColor})
|
|
|
</insert>
|
|
|
|
|
|
<update id="update" parameterType="com.bosshand.virgo.api.workark.model.ProductLevel">
|
|
@@ -59,6 +61,8 @@
|
|
|
<if test="remark!=null">remark=#{remark},</if>
|
|
|
<if test="sign!=null">sign=#{sign},</if>
|
|
|
<if test="showPictures!=null">showPictures=#{showPictures},</if>
|
|
|
+ <if test="iconName!=null">iconName=#{iconName},</if>
|
|
|
+ <if test="iconColor!=null">iconColor=#{iconColor},</if>
|
|
|
</trim>
|
|
|
WHERE id=#{id}
|
|
|
</update>
|