学院修改班级
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user