| | |
| | | <result column="fix_time" property="fixTime"/> |
| | | <result column="remarks" property="remarks"/> |
| | | <result column="type" property="type"/> |
| | | <result column="discount_price" property="discountPrice"/> |
| | | |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | |
| | | end_time, |
| | | fix_time, |
| | | remarks, |
| | | discount_price, |
| | | type |
| | | </sql> |
| | | |
| | |
| | | <if test='null != type'> |
| | | type |
| | | </if> |
| | | <if test='null != discountPrice'> |
| | | discount_price |
| | | </if> |
| | | |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test='null != userId'> |
| | |
| | | <if test='null != type'> |
| | | #{type} |
| | | </if> |
| | | <if test='null != discountPrice'> |
| | | #{discountPrice} |
| | | </if> |
| | | |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test='null != fixTime'>fix_time = #{fixTime},</if> |
| | | <if test='null != remarks'>remarks = #{remarks}</if> |
| | | <if test='null != type'>type = #{type}</if> |
| | | <if test='null != discountPrice'>type = #{discountPrice}</if> |
| | | </set> |
| | | WHERE id = #{id} |
| | | </update> |