学院修改班级

This commit is contained in:
zhy
2025-09-18 19:08:26 +08:00
parent 5f0e0f4851
commit cc4f70ec04
2 changed files with 23 additions and 0 deletions

View File

@@ -10,10 +10,13 @@ import com.srs.comprehensive.domain.Vo.SrsClassInfo;
import com.srs.comprehensive.domain.Vo.CphSearch; import com.srs.comprehensive.domain.Vo.CphSearch;
import com.srs.comprehensive.service.ICascaderDataStudentService; import com.srs.comprehensive.service.ICascaderDataStudentService;
import com.srs.comprehensive.service.ISrsClassService; import com.srs.comprehensive.service.ISrsClassService;
import com.srs.system.domain.SysDeptMap;
import com.srs.system.service.ISysDeptMapService;
import com.srs.system.service.ISysPostService; import com.srs.system.service.ISysPostService;
import com.srs.web.controller.common.RoleBool; import com.srs.web.controller.common.RoleBool;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
@@ -46,6 +49,25 @@ public class SrsClassController extends BaseController {
@Autowired @Autowired
ISysPostService _postService; ISysPostService _postService;
@Autowired
ISysDeptMapService _deptMap;
@PreAuthorize("@ss.hasPermi('system:class:xw')")
@ApiOperation("列出学院班级")
@GetMapping("/listDeptClass")
public TableDataInfo listDeptClass(SrsClass param){
Long oldId = getDeptId();
SysDeptMap dept = _deptMap.getOldDeptByNewId(oldId);
Long deptId = null;
if (dept != null) {
deptId = dept.getOldDeptId();
}
param.setDeptId(deptId);
startPage();
List<SrsClass> list = srsClassService.selectSrsClassList(param);
return getDataTable(list);
}
@ApiOperation("列出在校班级") @ApiOperation("列出在校班级")
@GetMapping("/listInSchoolClass") @GetMapping("/listInSchoolClass")

View File

@@ -241,6 +241,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join sys_dept as d on c.college_id = d.dept_id left join sys_dept as d on c.college_id = d.dept_id
<where> <where>
<if test="tNo != null and tNo != ''"> and b.employee_id = #{tNo}</if> <if test="tNo != null and tNo != ''"> and b.employee_id = #{tNo}</if>
<if test="deptId != null"> and c.college_id = #{deptId}</if>
</where> </where>
order by a.class_id desc order by a.class_id desc
</select> </select>