zouxuan пре 5 година
родитељ
комит
f4a58edb99

+ 4 - 4
mec-biz/src/main/resources/config/mybatis/MusicGroupPaymentCalenderDetailMapper.xml

@@ -151,16 +151,16 @@
 		LEFT JOIN `subject` st ON FIND_IN_SET(st.id_,s.subject_id_list_)
 		LEFT JOIN `subject` st ON FIND_IN_SET(st.id_,s.subject_id_list_)
 		<where>
 		<where>
 			<if test="userId != null">
 			<if test="userId != null">
-				mgpc.user_id_ = #{userId}
+				AND mgpc.user_id_ = #{userId}
 			</if>
 			</if>
 			<if test="id != null">
 			<if test="id != null">
-				mgpc.music_group_payment_calender_id_ = #{id}
+				AND mgpc.music_group_payment_calender_id_ = #{id}
 			</if>
 			</if>
 			<if test="paymentStatus != null">
 			<if test="paymentStatus != null">
-				mgpc.payment_status_ = #{paymentStatus,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
+				AND mgpc.payment_status_ = #{paymentStatus,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
 			</if>
 			</if>
 			<if test="subjectId != null">
 			<if test="subjectId != null">
-				FIND_IN_SET(#{subjectId},s.subject_id_list_)
+				AND FIND_IN_SET(#{subjectId},s.subject_id_list_)
 			</if>
 			</if>
 		</where>
 		</where>
 		ORDER BY mgpc.create_time_
 		ORDER BY mgpc.create_time_