Bladeren bron

会员拆分

zouxuan 7 maanden geleden
bovenliggende
commit
1d824f6a22
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      mec-biz/src/main/resources/config/mybatis/CloudTeacherOrderMapper.xml

+ 2 - 2
mec-biz/src/main/resources/config/mybatis/CloudTeacherOrderMapper.xml

@@ -189,8 +189,8 @@
         SELECT COUNT(cto.id_)
         FROM cloud_teacher_order cto LEFT JOIN student_payment_order spo on cto.order_id_ = spo.id_
         where spo.type_ = 'MEMBER'
-        <if test="status != null">
-        	and cto.status_ = #{status}
+        <if test="status != null and status != ''">
+            and FIND_IN_SET(cto.status_,#{status})
         </if>
         <if test="studentId != null">
         	and cto.student_id_ = #{studentId}