瀏覽代碼

班级学生关系表加乐团编号

周箭河 5 年之前
父節點
當前提交
b65d354aa1

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

@@ -643,7 +643,7 @@
     <select id="findClassGroupByMusicGroupIdAndType" resultMap="ClassGroup">
         SELECT * FROM class_group  WHERE music_group_id_=#{musicGroupId}
         <if test="type !=null and type!=''">
-           AND type_=#{type}
+           AND type_=#{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
         </if>
          AND del_flag_='0'
     </select>

+ 2 - 2
mec-web/src/main/java/com/ym/mec/web/controller/ClassGroupController.java

@@ -229,7 +229,7 @@ public class ClassGroupController extends BaseController {
     }
 
     @ApiOperation(value = "小班报名详情")
-    @PostMapping("/highClassGroups")
+    @GetMapping("/highClassGroups")
     @PreAuthorize("@pcs.hasPermissions('classGroup/highClassGroups')")
     @ApiImplicitParams({@ApiImplicitParam(name = "musicGroupId", value = "乐团id", required = true, dataType = "String")})
     public HttpResponseResult highClassGroups(String musicGroupId) throws Exception {
@@ -237,7 +237,7 @@ public class ClassGroupController extends BaseController {
     }
 
     @ApiOperation(value = "合奏子班列表(班级调整)")
-    @PostMapping("/classGroupAndTeacher")
+    @GetMapping("/classGroupAndTeacher")
     @PreAuthorize("@pcs.hasPermissions('classGroup/classGroupAndTeacher')")
     @ApiImplicitParams({@ApiImplicitParam(name = "classGroupId", value = "班级id", required = true, dataType = "int")})
     public HttpResponseResult classGroupAndTeacher(int classGroupId) throws Exception {