Bläddra i källkod

学员小课统计

zouxuan 3 år sedan
förälder
incheckning
17efc235ac

+ 3 - 0
mec-biz/src/main/resources/config/mybatis/StudentStatisticsMapper.xml

@@ -226,6 +226,9 @@
 			<if test="groupType != null and groupType != ''">
 				AND ss.group_type_ = #{groupType}
 			</if>
+			<if test="organId != null and organId != ''">
+				AND FIND_IN_SET(sbi.organ_id_,#{organId})
+			</if>
 		</where>
 	</sql>
 	<select id="countStatistics" resultType="java.lang.Integer">

+ 1 - 0
mec-web/src/main/java/com/ym/mec/web/controller/StudentStatisticsController.java

@@ -51,6 +51,7 @@ public class StudentStatisticsController extends BaseController {
     @PostMapping("/queryPage")
     @PreAuthorize("@pcs.hasPermissions('studentStatistics/queryPage')")
     public HttpResponseResult<PageInfo<StudentStatisticsDto>> queryPage(StudentStatisticsQueryInfo queryInfo) {
+        queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
         return succeed(studentStatisticsService.queryStatisticsPage(queryInfo));
     }