|
@@ -2,9 +2,13 @@ package com.ims.eval.component;
|
|
|
|
|
|
import com.ims.eval.entity.DeptAssessmentDeclaration;
|
|
|
import com.ims.eval.service.IDeptAssessmentDeclarationService;
|
|
|
+import com.ims.idms.modules.sys.entity.SysUser;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* @author hlf
|
|
|
* @date 2023/8/9 9:28
|
|
@@ -17,26 +21,36 @@ public class NextApproverImpl {
|
|
|
private IDeptAssessmentDeclarationService deptAssessmentDeclarationService;
|
|
|
|
|
|
/**
|
|
|
- * 申报等级有变化
|
|
|
+ * 获取流程审批人员
|
|
|
*
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- public boolean submitTask1(String a1, String a2, String a3) {
|
|
|
+ public List<SysUser> submitTask1(String a1, String a2, String a3) {
|
|
|
System.out.println("进入方法submitTask1----------------->" + "a1:" + a1 + "-----------a2:" + a2 + "-----------a3:" + a3);
|
|
|
DeptAssessmentDeclaration deptAssessmentDeclaration = deptAssessmentDeclarationService.getById(a1);
|
|
|
- boolean flag = !deptAssessmentDeclaration.getDeclarationLevel().equals(deptAssessmentDeclaration.getRatingGrade());
|
|
|
- return flag;
|
|
|
+ List<SysUser> userList = new ArrayList<>();
|
|
|
+ SysUser user = new SysUser();
|
|
|
+ user.setId(deptAssessmentDeclaration.getDeptLeaderId());
|
|
|
+ user.setNo(deptAssessmentDeclaration.getDeptLeaderNo());
|
|
|
+ user.setName(deptAssessmentDeclaration.getDeptLeaderName());
|
|
|
+ userList.add(user);
|
|
|
+ return userList;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 申报等级无变化
|
|
|
+ * 获取流程复批人员
|
|
|
*
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- public boolean submitTask2(String a1, String a2, String a3) {
|
|
|
- System.out.println("进入方法submitTask2----------------->" + "a1:" + a1 + "-----------a2:" + a2 + "-----------a3:" + a3);
|
|
|
+ public List<SysUser> submitTask2(String a1, String a2, String a3) {
|
|
|
+ System.out.println("进入方法submitTask1----------------->" + "a1:" + a1 + "-----------a2:" + a2 + "-----------a3:" + a3);
|
|
|
DeptAssessmentDeclaration deptAssessmentDeclaration = deptAssessmentDeclarationService.getById(a1);
|
|
|
- boolean flag = deptAssessmentDeclaration.getDeclarationLevel().equals(deptAssessmentDeclaration.getRatingGrade());
|
|
|
- return flag;
|
|
|
+ List<SysUser> userList = new ArrayList<>();
|
|
|
+ SysUser user = new SysUser();
|
|
|
+ user.setId(deptAssessmentDeclaration.getSeconderId());
|
|
|
+ user.setNo(deptAssessmentDeclaration.getSeconderNo());
|
|
|
+ user.setName(deptAssessmentDeclaration.getSeconderName());
|
|
|
+ userList.add(user);
|
|
|
+ return userList;
|
|
|
}
|
|
|
}
|