|
@@ -3,6 +3,7 @@ package com.ym.mec.web.controller;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.ym.mec.biz.dal.dao.TeacherDao;
|
|
|
import com.ym.mec.common.exception.BizException;
|
|
|
+import com.ym.mec.common.tenant.TenantContextHolder;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
@@ -112,6 +113,7 @@ public class EmployeeController extends BaseController {
|
|
|
@PostMapping("/update")
|
|
|
@PreAuthorize("@pcs.hasPermissions('employee/update')")
|
|
|
public Object update(@RequestBody Employee employee) {
|
|
|
+ TenantContextHolder.setTenantId(employee.getTenantId());
|
|
|
employee.setUpdateTime(new Date());
|
|
|
employeeService.updateEmployee(employee);
|
|
|
return succeed();
|