提交修改
This commit is contained in:
commit
c3378a8021
@ -69,7 +69,7 @@ public class ShiroConfig {
|
|||||||
filterMap.put("/dtlg/jump", "anon");
|
filterMap.put("/dtlg/jump", "anon");
|
||||||
filterMap.put("/luck/getLuckById", "anon");
|
filterMap.put("/luck/getLuckById", "anon");
|
||||||
filterMap.put("/luck/updateLuck", "anon");
|
filterMap.put("/luck/updateLuck", "anon");
|
||||||
filterMap.put("/**", "anon");
|
filterMap.put("/**", "oauth2");
|
||||||
shiroFilter.setFilterChainDefinitionMap(filterMap);
|
shiroFilter.setFilterChainDefinitionMap(filterMap);
|
||||||
|
|
||||||
return shiroFilter;
|
return shiroFilter;
|
||||||
|
|||||||
@ -215,6 +215,7 @@ public class FlowStartServiceImpl extends ServiceImpl<FlowStartMapper, FlowStart
|
|||||||
flowStart1.setGroupIds(ids1.stream().collect(Collectors.joining(",")));//把新的组信息加入
|
flowStart1.setGroupIds(ids1.stream().collect(Collectors.joining(",")));//把新的组信息加入
|
||||||
updateById(flowStart1);//更新组信息到记录里面
|
updateById(flowStart1);//更新组信息到记录里面
|
||||||
|
|
||||||
|
flowStart.setGroupIds(ids.stream().collect(Collectors.joining(",")));//过滤后的考核组
|
||||||
flowStart.setId(flowStart1.getId());
|
flowStart.setId(flowStart1.getId());
|
||||||
flowStart.setIsDelete(flowStart1.getIsDelete());
|
flowStart.setIsDelete(flowStart1.getIsDelete());
|
||||||
}
|
}
|
||||||
|
|||||||
@ -43,8 +43,7 @@ public class ChartController extends AbstractController{
|
|||||||
public R chartResult(@RequestParam(required = false) @ApiParam(name = "startId",value = "考核周期标识id") Long startId){
|
public R chartResult(@RequestParam(required = false) @ApiParam(name = "startId",value = "考核周期标识id") Long startId){
|
||||||
List<ChartStatisticalRes> chartStatisticalRes = null;
|
List<ChartStatisticalRes> chartStatisticalRes = null;
|
||||||
try {
|
try {
|
||||||
//Long userId = getUserId();
|
Long userId = getUserId();
|
||||||
Long userId = 313L;
|
|
||||||
chartStatisticalRes = chartResultService.chartReport(startId,userId);
|
chartStatisticalRes = chartResultService.chartReport(startId,userId);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("获取绩效报表统计异常" ,e);
|
log.error("获取绩效报表统计异常" ,e);
|
||||||
|
|||||||
@ -33,8 +33,8 @@ public class UserTaskController extends AbstractController{
|
|||||||
public R list(@RequestBody @ApiParam(name = "body",value = "body请求体",required = true) AssessTaskReq req){
|
public R list(@RequestBody @ApiParam(name = "body",value = "body请求体",required = true) AssessTaskReq req){
|
||||||
PageUtils pageUtils = null;
|
PageUtils pageUtils = null;
|
||||||
try {
|
try {
|
||||||
//Long userId = getUserId();
|
Long userId = getUserId();
|
||||||
pageUtils = assessService.userTaskList(req, 313L);
|
pageUtils = assessService.userTaskList(req, userId);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("获取用户事项异常 userId:" ,e);
|
log.error("获取用户事项异常 userId:" ,e);
|
||||||
return R.error();
|
return R.error();
|
||||||
|
|||||||
@ -105,8 +105,7 @@ public class AssessManagerServiceImpl implements AssessManagerService {
|
|||||||
log.info("未找到考核发起数据");
|
log.info("未找到考核发起数据");
|
||||||
return pageUtils;
|
return pageUtils;
|
||||||
}
|
}
|
||||||
//List<String> mandepartmentIds = assessService.roleDepartments(req.getLoginUserId());
|
List<String> mandepartmentIds = assessService.roleDepartments(req.getLoginUserId());
|
||||||
List<String> mandepartmentIds = Collections.EMPTY_LIST;
|
|
||||||
list.forEach(flowStart -> {
|
list.forEach(flowStart -> {
|
||||||
AssessManagerListRes res = new AssessManagerListRes();
|
AssessManagerListRes res = new AssessManagerListRes();
|
||||||
String name = flowStart.getName();
|
String name = flowStart.getName();
|
||||||
|
|||||||
@ -88,8 +88,7 @@ public class ChartResultServiceImpl implements ChartResultService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//自己管理的部门
|
//自己管理的部门
|
||||||
//List<String> mandepartmentIds = assessService.roleDepartments(staffId);
|
List<String> mandepartmentIds = assessService.roleDepartments(staffId);
|
||||||
List<String> mandepartmentIds = Collections.EMPTY_LIST;
|
|
||||||
List<ChartStatisticalRes> data = new ArrayList<>();
|
List<ChartStatisticalRes> data = new ArrayList<>();
|
||||||
ChartStatisticalRes res;
|
ChartStatisticalRes res;
|
||||||
|
|
||||||
@ -183,8 +182,7 @@ public class ChartResultServiceImpl implements ChartResultService {
|
|||||||
List<String> allDeparmentIds = staffService.selectAllDeparmentIdsByDepartmentParentId(req.getDepartmentId());
|
List<String> allDeparmentIds = staffService.selectAllDeparmentIdsByDepartmentParentId(req.getDepartmentId());
|
||||||
//自己管理的和所有的部门交集
|
//自己管理的和所有的部门交集
|
||||||
log.info("selectChartDetailList 管理部门:" + JSON.toJSONString(allDeparmentIds));
|
log.info("selectChartDetailList 管理部门:" + JSON.toJSONString(allDeparmentIds));
|
||||||
//List<String> mandepartmentIds = assessService.roleDepartments(req.getLoginUserId());
|
List<String> mandepartmentIds = assessService.roleDepartments(req.getLoginUserId());
|
||||||
List<String> mandepartmentIds = Collections.EMPTY_LIST;
|
|
||||||
log.info("selectChartDetailList 管理部门:" + JSON.toJSONString(mandepartmentIds));
|
log.info("selectChartDetailList 管理部门:" + JSON.toJSONString(mandepartmentIds));
|
||||||
mandepartmentIds.retainAll(allDeparmentIds);
|
mandepartmentIds.retainAll(allDeparmentIds);
|
||||||
log.info("selectChartDetailList 交集部门:" + JSON.toJSONString(mandepartmentIds));
|
log.info("selectChartDetailList 交集部门:" + JSON.toJSONString(mandepartmentIds));
|
||||||
@ -225,8 +223,7 @@ public class ChartResultServiceImpl implements ChartResultService {
|
|||||||
public List<ChartStatistical> countAssessNumByFlowProcess(AssessDetailReq req) {
|
public List<ChartStatistical> countAssessNumByFlowProcess(AssessDetailReq req) {
|
||||||
List<ChartStatistical> process = resultRecordMapper.countAssessNumByFlowProcess(req);
|
List<ChartStatistical> process = resultRecordMapper.countAssessNumByFlowProcess(req);
|
||||||
//获取自己管理的部门
|
//获取自己管理的部门
|
||||||
//List<String> mandepartmentIds = assessService.roleDepartments(req.getLoginUserId());
|
List<String> mandepartmentIds = assessService.roleDepartments(req.getLoginUserId());
|
||||||
List<String> mandepartmentIds = Collections.EMPTY_LIST;
|
|
||||||
List<ChartStatistical> data = buildProcess(process, req.getStartId(),mandepartmentIds);
|
List<ChartStatistical> data = buildProcess(process, req.getStartId(),mandepartmentIds);
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user