瀏覽代碼

feat:首页数据变更

Joburgess 4 年之前
父節點
當前提交
b1765a6d67
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      mec-biz/src/main/resources/config/mybatis/IndexBaseMonthDataMapper.xml

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

@@ -245,8 +245,9 @@
 			LEFT JOIN student_payment_order spo ON stu.user_id_=spo.user_id_ AND status_='SUCCESS' AND actual_amount_>0
 		WHERE
 			su.del_flag_=0
-		  AND su.organ_id_ IS NOT NULL
-		  AND su.user_type_ LIKE '%STUDENT%'
+			  AND su.organ_id_ IS NOT NULL
+			  AND su.user_type_ LIKE '%STUDENT%'
+			  AND DATE_FORMAT(spo.create_time_, '%Y-%m-%d')<=#{dayStr}
 		GROUP BY organ_id_
 		ORDER BY organ_id_;
 	</select>