专责审批和汇总审批增加红色小点
This commit is contained in:
parent
3742c50a85
commit
c411d90373
|
|
@ -3,9 +3,11 @@ package com.bonus.gs.sub.evaluate.manager.controller;
|
|||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import com.bonus.gs.sub.evaluate.evaluate.beans.EvalSummaryBean;
|
||||
import com.bonus.gs.sub.evaluate.evaluate.beans.OutSourceBean;
|
||||
import com.bonus.gs.sub.evaluate.evaluate.beans.TeamEvaluateBean;
|
||||
import com.bonus.gs.sub.evaluate.evaluate.dao.OutsourcerEvaluateDao;
|
||||
import com.bonus.gs.sub.evaluate.evaluate.service.EvalSummaryService;
|
||||
import com.bonus.gs.sub.evaluate.evaluate.service.OutsourcerEvaluateService;
|
||||
import com.bonus.gs.sub.evaluate.evaluate.service.TeamEvaluateService;
|
||||
import com.bonus.gs.sub.evaluate.manager.annotation.LogAnnotation;
|
||||
|
|
@ -56,6 +58,8 @@ public class PermissionController {
|
|||
private OutsourcerEvaluateService outsourcerEvaluateService;
|
||||
@Resource
|
||||
private OutsourcerEvaluateDao outsourcerEvaluateDao;
|
||||
@Resource
|
||||
private EvalSummaryService evalSummaryService;
|
||||
|
||||
@Autowired
|
||||
private TeamEvaluateService service;
|
||||
|
|
@ -77,10 +81,17 @@ public class PermissionController {
|
|||
setChild(p, permissions);
|
||||
});
|
||||
|
||||
// 外包商审核
|
||||
List<OutSourceBean> outSourceBeans = checkExamine(new OutSourceBean());
|
||||
// 专责审批
|
||||
List<OutSourceBean> outSourceBeanList = evalSummaryService.dedicatedEvalSummaryList(new EvalSummaryBean());
|
||||
// 汇总审批
|
||||
List<OutSourceBean> evalSummaryList = evalSummaryService.getEvalSummaryList(new EvalSummaryBean());
|
||||
// 退场班组评价审核
|
||||
List<TeamEvaluateBean> teamEvaluateBeans = TeamEvaluateBean(new TeamEvaluateBean());
|
||||
for (Permission permission : firstLevel) {
|
||||
permission.getChild().forEach(c -> {
|
||||
// 外包商审核
|
||||
if (c.getHref().equals("pages/evaluate/outsourceAudit/outsourceAuditList.html")) {
|
||||
for (OutSourceBean outSourceBean : outSourceBeans) {
|
||||
if ((Integer.parseInt(outSourceBean.getEvaluateNum())) > 0 && (Integer.parseInt(outSourceBean.getIsApprove())) == 0 && org.apache.commons.lang3.StringUtils.isBlank(outSourceBean.getRejectReason())) {
|
||||
|
|
@ -89,6 +100,23 @@ public class PermissionController {
|
|||
}
|
||||
}
|
||||
});
|
||||
// 专责审批
|
||||
if (permission.getHref().equals("pages/evaluate/responsibleApproval/responsibleForApproval.html")) {
|
||||
for (OutSourceBean outSourceBean : outSourceBeanList) {
|
||||
if ((Integer.parseInt(outSourceBean.getIsAudit())) == 1) {
|
||||
permission.setIsCheck(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
// 汇总审批
|
||||
if (permission.getHref().equals("pages/evaluate/summaryAudit/summaryAudit.html")) {
|
||||
for (OutSourceBean outSourceBean : evalSummaryList) {
|
||||
if ((Integer.parseInt(outSourceBean.getIsAudit())) == 1) {
|
||||
permission.setIsCheck(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
// 退场班组评价审核
|
||||
permission.getChild().forEach(cc -> {
|
||||
cc.getChild().forEach(c -> {
|
||||
if (c.getHref().equals("pages/evaluate/team/evaluateCheckList.html")) {
|
||||
|
|
@ -133,6 +161,7 @@ public class PermissionController {
|
|||
}
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
private List<TeamEvaluateBean> TeamEvaluateBean(TeamEvaluateBean o) {
|
||||
List<TeamEvaluateBean> list = service.getTeamEvaluateList(o);
|
||||
for (TeamEvaluateBean bean : list) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue