Ver Fonte

学员小课导出

zouxuan há 3 anos atrás
pai
commit
e364d5b8c2

+ 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})