Explorar o código

修改流程脚本事件

hlf hai 1 ano
pai
achega
ae76f80b69

+ 18 - 0
ims-service/ims-eval/src/main/java/com/ims/eval/component/NextApproverImpl.java

@@ -16,8 +16,26 @@ public class NextApproverImpl {
 	@Autowired
 	private IDeptAssessmentDeclarationService deptAssessmentDeclarationService;
 
+	/**
+	 * 申报等级有变化
+	 *
+	 * @param id 业务主键
+	 * @return 结果
+	 */
 	public boolean submitTask1(String id) {
 		DeptAssessmentDeclaration deptAssessmentDeclaration = deptAssessmentDeclarationService.getById(id);
+		boolean flag = !deptAssessmentDeclaration.getDeclarationLevel().equals(deptAssessmentDeclaration.getRatingGrade());
+		return flag;
+	}
+
+	/**
+	 * 申报等级无变化
+	 *
+	 * @param id 业务主键
+	 * @return 结果
+	 */
+	public boolean submitTask2(String id) {
+		DeptAssessmentDeclaration deptAssessmentDeclaration = deptAssessmentDeclarationService.getById(id);
 		boolean flag = deptAssessmentDeclaration.getDeclarationLevel().equals(deptAssessmentDeclaration.getRatingGrade());
 		return flag;
 	}