|
@@ -1,5 +1,7 @@
|
|
|
package com.ym.mec.web.controller;
|
|
|
|
|
|
+import com.ym.mec.biz.dal.dao.TeacherDao;
|
|
|
+import com.ym.mec.common.exception.BizException;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
@@ -7,6 +9,7 @@ import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -44,6 +47,8 @@ public class EmployeeController extends BaseController {
|
|
|
@Autowired
|
|
|
private SysUserFeignService sysUserFeignService;
|
|
|
@Autowired
|
|
|
+ private TeacherDao teacherDao;
|
|
|
+ @Autowired
|
|
|
private StudentManageService studentManageService;
|
|
|
@Autowired
|
|
|
private OrganizationService organizationService;
|
|
@@ -117,8 +122,8 @@ public class EmployeeController extends BaseController {
|
|
|
@PostMapping("/simpleUpdate")
|
|
|
@PreAuthorize("@pcs.hasPermissions('employee/simpleUpdate')")
|
|
|
public Object simpleUpdate(@RequestBody Employee employee) {
|
|
|
- employee.setUpdateTime(new Date());
|
|
|
- employeeService.update(employee);
|
|
|
+
|
|
|
+ employeeService.simpleUpdate(employee);
|
|
|
return succeed();
|
|
|
}
|
|
|
|