瀏覽代碼

课外根据乐团查询

liujunchi 2 年之前
父節點
當前提交
4d3a54beae

+ 4 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentExtracurricularExercisesSituationServiceImpl.java

@@ -776,6 +776,10 @@ public class StudentExtracurricularExercisesSituationServiceImpl extends BaseSer
 
         Map<String, Object> params = new HashMap<>();
         MapUtil.populateMap(params, queryInfo);
+        if (StringUtils.isNotBlank(queryInfo.getMusicGroupId())) {
+            subjectIds.clear();
+            subjectIds.add(queryInfo.getMusicGroupId());
+        }
         params.put("subjectIds", subjectIds);
         params.put("versionTag","v2");
 

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

@@ -363,6 +363,9 @@
         <if test="versionTag != null">
             and version_tag_ = #{versionTag}
         </if>
+        <if test="musicGroupId != null">
+            and music_group_id_ = #{musicGroupId}
+        </if>
 	</sql>
 	<select id="countTeacherExtraHomeworkDetailV2" resultType="int">
         select count(1) from (