瀏覽代碼

会员拆分

zouxuan 7 月之前
父節點
當前提交
1d824f6a22
共有 1 個文件被更改,包括 2 次插入2 次删除
  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}