Преглед на файлове

实习生录用申请归档后变为试用

jzh преди 11 месеца
родител
ревизия
5abd14bba4
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8 0
      zjugis-business/src/main/java/com/zjugis/business/flow/intern/event/InternEvent.java

+ 8 - 0
zjugis-business/src/main/java/com/zjugis/business/flow/intern/event/InternEvent.java

@@ -9,6 +9,7 @@ import com.zjugis.framework.workflow.model.BaseController;
 import com.zjugis.framework.workflow.rpc.remote.WorkflowClient;
 import com.zjugis.framework.workflow.spring.resovler.ParamModel;
 import com.zjugis.module.adm.api.staff.StaffApi;
+import com.zjugis.module.adm.api.staff.dto.StaffStateDTO;
 import com.zjugis.module.system.api.dept.DeptApi;
 import com.zjugis.module.system.api.dept.DeptLeaderApi;
 import com.zjugis.module.system.api.dept.dto.DeptLeaderRespDTO;
@@ -98,6 +99,13 @@ public class InternEvent extends BaseController {
                 entity.setFlowFinishtime(LocalDateTime.now());
                 entity.setReport("0");
                 internService.update(entity);
+                //归档后把员工状态改为试用
+                StaffStateDTO dto=new StaffStateDTO();
+                dto.setUserId(entity.getUserId());
+                dto.setNickname(entity.getNickname());
+                dto.setState(2);
+                staffApi.updateStaffState(dto);
+
                 return ok("true");
             } else {
                 throw new BusinessException("执行事件出错,请联系管理员!");