|
@@ -85,6 +85,45 @@
|
|
|
</set>
|
|
|
WHERE id_ = #{id}
|
|
|
</update>
|
|
|
+
|
|
|
+ <update id="batchUpdate" parameterType="com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender">
|
|
|
+ <foreach collection="list" item="item" index="index" open="" close="" separator=";">
|
|
|
+ UPDATE music_group_payment_calender
|
|
|
+ <set>
|
|
|
+ <if test="item.type != null">
|
|
|
+ type_ = #{item.type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
+ <if test="item.deadlinePaymentDate != null">
|
|
|
+ deadline_payment_date_ = #{item.deadlinePaymentDate},
|
|
|
+ </if>
|
|
|
+ <if test="item.paymentStatus != null">
|
|
|
+ payment_status_ = #{item.paymentStatus,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
+ <if test="item.expectNum != null">
|
|
|
+ expect_num_ = #{item.expectNum},
|
|
|
+ </if>
|
|
|
+ <if test="item.actualNum != null">
|
|
|
+ actual_num_ = #{item.actualNum},
|
|
|
+ </if>
|
|
|
+ <if test="item.memo != null">
|
|
|
+ memo_ = #{item.memo},
|
|
|
+ </if>
|
|
|
+ <if test="item.startPaymentDate != null">
|
|
|
+ start_payment_date_ = #{item.startPaymentDate},
|
|
|
+ </if>
|
|
|
+ <if test="item.paymentMonth != null">
|
|
|
+ payment_month_ = #{item.paymentMonth},
|
|
|
+ </if>
|
|
|
+ <if test="item.updateTime != null">
|
|
|
+ update_time_ = NOW(),
|
|
|
+ </if>
|
|
|
+ <if test="item.musicGroupId != null">
|
|
|
+ music_group_id_ = #{item.musicGroupId},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ WHERE id_ = #{item.id}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
|
|
|
<!-- 根据主键删除一条记录 -->
|
|
|
<delete id="delete">
|