专责审批和汇总审批增加红色小点
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.*;
|
||||||
import java.util.stream.Collectors;
|
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.OutSourceBean;
|
||||||
import com.bonus.gs.sub.evaluate.evaluate.beans.TeamEvaluateBean;
|
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.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.OutsourcerEvaluateService;
|
||||||
import com.bonus.gs.sub.evaluate.evaluate.service.TeamEvaluateService;
|
import com.bonus.gs.sub.evaluate.evaluate.service.TeamEvaluateService;
|
||||||
import com.bonus.gs.sub.evaluate.manager.annotation.LogAnnotation;
|
import com.bonus.gs.sub.evaluate.manager.annotation.LogAnnotation;
|
||||||
|
|
@ -56,6 +58,8 @@ public class PermissionController {
|
||||||
private OutsourcerEvaluateService outsourcerEvaluateService;
|
private OutsourcerEvaluateService outsourcerEvaluateService;
|
||||||
@Resource
|
@Resource
|
||||||
private OutsourcerEvaluateDao outsourcerEvaluateDao;
|
private OutsourcerEvaluateDao outsourcerEvaluateDao;
|
||||||
|
@Resource
|
||||||
|
private EvalSummaryService evalSummaryService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private TeamEvaluateService service;
|
private TeamEvaluateService service;
|
||||||
|
|
@ -77,18 +81,42 @@ public class PermissionController {
|
||||||
setChild(p, permissions);
|
setChild(p, permissions);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 外包商审核
|
||||||
List<OutSourceBean> outSourceBeans = checkExamine(new OutSourceBean());
|
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());
|
List<TeamEvaluateBean> teamEvaluateBeans = TeamEvaluateBean(new TeamEvaluateBean());
|
||||||
for (Permission permission : firstLevel) {
|
for (Permission permission : firstLevel) {
|
||||||
permission.getChild().forEach(c -> {
|
permission.getChild().forEach(c -> {
|
||||||
|
// 外包商审核
|
||||||
if (c.getHref().equals("pages/evaluate/outsourceAudit/outsourceAuditList.html")) {
|
if (c.getHref().equals("pages/evaluate/outsourceAudit/outsourceAuditList.html")) {
|
||||||
for (OutSourceBean outSourceBean : outSourceBeans) {
|
for (OutSourceBean outSourceBean : outSourceBeans) {
|
||||||
if ((Integer.parseInt(outSourceBean.getEvaluateNum())) > 0 && (Integer.parseInt(outSourceBean.getIsApprove())) == 0 && org.apache.commons.lang3.StringUtils.isBlank(outSourceBean.getRejectReason())){
|
if ((Integer.parseInt(outSourceBean.getEvaluateNum())) > 0 && (Integer.parseInt(outSourceBean.getIsApprove())) == 0 && org.apache.commons.lang3.StringUtils.isBlank(outSourceBean.getRejectReason())) {
|
||||||
c.setIsCheck(1);
|
c.setIsCheck(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// 专责审批
|
||||||
|
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 -> {
|
permission.getChild().forEach(cc -> {
|
||||||
cc.getChild().forEach(c -> {
|
cc.getChild().forEach(c -> {
|
||||||
if (c.getHref().equals("pages/evaluate/team/evaluateCheckList.html")) {
|
if (c.getHref().equals("pages/evaluate/team/evaluateCheckList.html")) {
|
||||||
|
|
@ -133,6 +161,7 @@ public class PermissionController {
|
||||||
}
|
}
|
||||||
return new ArrayList<>();
|
return new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<TeamEvaluateBean> TeamEvaluateBean(TeamEvaluateBean o) {
|
private List<TeamEvaluateBean> TeamEvaluateBean(TeamEvaluateBean o) {
|
||||||
List<TeamEvaluateBean> list = service.getTeamEvaluateList(o);
|
List<TeamEvaluateBean> list = service.getTeamEvaluateList(o);
|
||||||
for (TeamEvaluateBean bean : list) {
|
for (TeamEvaluateBean bean : list) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue