zouxuan 5 年之前
父节点
当前提交
ec260c5803
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      mec-biz/src/main/resources/config/mybatis/MusicGroupPaymentCalenderDetailMapper.xml

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

@@ -172,10 +172,10 @@
 			<if test="id != null">
 				AND mgpcd.music_group_payment_calender_id_ = #{id}
 			</if>
-			<if test="paymentStatus != null">
+			<if test="paymentStatus != null and paymentStatus != ''">
 				AND mgpcd.payment_status_ = #{paymentStatus}
 			</if>
-			<if test="musicGroupStatus != null">
+			<if test="musicGroupStatus != null and musicGroupStatus != ''">
 				AND sr.music_group_status_ = #{musicGroupStatus}
 			</if>
 			<if test="subjectId != null">
@@ -202,10 +202,10 @@
 			<if test="subjectId != null">
 				AND #{subjectId} = sr.actual_subject_id_
 			</if>
-			<if test="paymentStatus != null">
+			<if test="paymentStatus != null and paymentStatus != ''">
 				AND mgpcd.payment_status_ = #{paymentStatus}
 			</if>
-			<if test="musicGroupStatus != null">
+			<if test="musicGroupStatus != null and musicGroupStatus != ''">
 				AND sr.music_group_status_ = #{musicGroupStatus}
 			</if>
 		</where>