|
@@ -15,6 +15,7 @@
|
|
|
<result column="pay_time_" property="payTime" />
|
|
|
<result column="update_time_" property="updateTime" />
|
|
|
<result column="create_time_" property="createTime" />
|
|
|
+ <result column="open_" property="open" />
|
|
|
<association property="sysUser" javaType="com.ym.mec.auth.api.entity.SysUser">
|
|
|
<result column="username_" property="username" />
|
|
|
</association>
|
|
@@ -40,16 +41,17 @@
|
|
|
<!-- <selectKey resultClass="int" keyProperty="id" > SELECT SEQ_WSDEFINITION_ID.nextval
|
|
|
AS ID FROM DUAL </selectKey> -->
|
|
|
INSERT INTO music_group_payment_calender_detail
|
|
|
- (id_,music_group_payment_calender_id_,user_id_,expect_amount_,actual_amount_,payment_status_,user_status_,pay_time_,update_time_,create_time_)
|
|
|
- VALUES(#{id},#{musicGroupPaymentCalenderId},#{userId},#{expectAmount},#{actualAmount},#{paymentStatus},#{userStatus},#{payTime},#{updateTime},#{createTime})
|
|
|
+ (id_,music_group_payment_calender_id_,user_id_,expect_amount_,actual_amount_,payment_status_,user_status_,pay_time_,update_time_,create_time_,open_)
|
|
|
+ VALUES(#{id},#{musicGroupPaymentCalenderId},#{userId},#{expectAmount},#{actualAmount},#{paymentStatus},#{userStatus},#{payTime},#{updateTime},#{createTime},#{open})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="batchInsert" parameterType="com.ym.mec.biz.dal.entity.MusicGroupPaymentCalenderDetail">
|
|
|
INSERT INTO music_group_payment_calender_detail
|
|
|
- (id_,music_group_payment_calender_id_,user_id_,expect_amount_,actual_amount_,payment_status_,user_status_,pay_time_,update_time_,create_time_)
|
|
|
+ (id_,music_group_payment_calender_id_,user_id_,expect_amount_,actual_amount_,payment_status_,user_status_,pay_time_,update_time_,create_time_,open_)
|
|
|
VALUES
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.id},#{item.musicGroupPaymentCalenderId},#{item.userId},#{item.expectAmount},#{item.actualAmount},#{item.paymentStatus},#{item.userStatus},#{item.payTime},#{item.updateTime},#{item.createTime})
|
|
|
+ (#{item.id},#{item.musicGroupPaymentCalenderId},#{item.userId},#{item.expectAmount},
|
|
|
+ #{item.actualAmount},#{item.paymentStatus},#{item.userStatus},#{item.payTime},#{item.updateTime},#{item.createTime},#{item.open})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
@@ -58,6 +60,9 @@
|
|
|
parameterType="com.ym.mec.biz.dal.entity.MusicGroupPaymentCalenderDetail">
|
|
|
UPDATE music_group_payment_calender_detail
|
|
|
<set>
|
|
|
+ <if test="open != null">
|
|
|
+ open_ = #{open},
|
|
|
+ </if>
|
|
|
<if test="userId != null">
|
|
|
user_id_ = #{userId},
|
|
|
</if>
|
|
@@ -67,9 +72,6 @@
|
|
|
<if test="paymentStatus != null">
|
|
|
payment_status_ = #{paymentStatus},
|
|
|
</if>
|
|
|
- <if test="id != null">
|
|
|
- id_ = #{id},
|
|
|
- </if>
|
|
|
<if test="expectAmount != null">
|
|
|
expect_amount_ = #{expectAmount},
|
|
|
</if>
|
|
@@ -85,9 +87,6 @@
|
|
|
<if test="payTime != null">
|
|
|
pay_time_ = #{payTime},
|
|
|
</if>
|
|
|
- <if test="createTime != null">
|
|
|
- create_time_ = #{createTime},
|
|
|
- </if>
|
|
|
</set>
|
|
|
WHERE id_ = #{id}
|
|
|
</update>
|
|
@@ -95,6 +94,9 @@
|
|
|
<foreach collection="calenderDetails" item="item" index="index" open="" close="" separator=";">
|
|
|
UPDATE music_group_payment_calender_detail
|
|
|
<set>
|
|
|
+ <if test="item.open != null">
|
|
|
+ open_ = #{item.open},
|
|
|
+ </if>
|
|
|
<if test="item.userId != null">
|
|
|
user_id_ = #{item.userId},
|
|
|
</if>
|
|
@@ -162,7 +164,7 @@
|
|
|
LEFT JOIN `subject` st ON FIND_IN_SET(st.id_,s.subject_id_list_)
|
|
|
<where>
|
|
|
<if test="userId != null">
|
|
|
- user_id_ = #{userId}
|
|
|
+ mgpc.user_id_ = #{userId}
|
|
|
</if>
|
|
|
<if test="id != null">
|
|
|
mgpc.music_group_payment_calender_id_ = #{id}
|
|
@@ -171,7 +173,7 @@
|
|
|
FIND_IN_SET(#{subjectId},s.subject_id_list_)
|
|
|
</if>
|
|
|
<if test="paymentStatus != null">
|
|
|
- payment_status_ = #{paymentStatus,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
+ mgpc.payment_status_ = #{paymentStatus,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|