فهرست منبع

学员小课导出

zouxuan 3 سال پیش
والد
کامیت
e364d5b8c2
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      mec-biz/src/main/resources/config/mybatis/StudentStatisticsMapper.xml

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

@@ -312,6 +312,9 @@
 		<if test="endDate != null and endDate != ''">
 			AND month_ &lt;= #{endDate}
 		</if>
+		<if test="organId != null and organId != ''">
+			AND FIND_IN_SET(organ_id_,#{organId})
+		</if>
 		GROUP BY extend_info_
 		HAVING SUM(total_num_) > 1)a
 	</select>
@@ -338,7 +341,7 @@
 			AND month_ >= #{startDate}
 		</if>
 		<if test="endDate != null and endDate != ''">
-			AND month_ &lt;= #{startDate}
+			AND month_ &lt;= #{endDate}
 		</if>
 		<if test="organId != null and organId != ''">
 			AND FIND_IN_SET(organ_id_,#{organId})