提交修改
This commit is contained in:
parent
f0020edfe7
commit
3c8547c3bc
@ -53,6 +53,7 @@ public class ShiroConfig {
|
||||
filterMap.put("/webjars/**", "anon");
|
||||
filterMap.put("/file/**", "anon");
|
||||
filterMap.put("/user/lzstaffrole/role/**", "anon");
|
||||
filterMap.put("/user/lzresultrecord/**", "anon");
|
||||
filterMap.put("/test/**", "anon");
|
||||
filterMap.put("/druid/**", "anon");
|
||||
filterMap.put("/app/**", "anon");
|
||||
|
||||
@ -824,6 +824,7 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
||||
@Override
|
||||
////1 提交审批,审批通过,2 撤回,3 催办,4 跳过,5 驳回,6 申述,7 流程终止,8 转交
|
||||
public R newApproval(ApprovalDto approvalDto) throws Exception{
|
||||
log.info("newApproval args :" + JSON.toJSONString(approvalDto));
|
||||
if(approvalDto.getResultRecordId() == null){
|
||||
throw new RRException("resultRecordId 不能为空");
|
||||
}
|
||||
@ -923,6 +924,7 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
||||
}
|
||||
|
||||
private R newSubmit(ApprovalDto approvalDto,Integer finishedStatus) {
|
||||
|
||||
ResultRecord resultRecord = resultRecordMapper.selectResultRecordById(approvalDto.getResultRecordId());
|
||||
if(approvalDto.getLoginUserId() == null){
|
||||
approvalDto.setLoginUserId(resultRecord.getCurrentApprovalStaffId());
|
||||
@ -1133,15 +1135,16 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
||||
auth.put("showScore",1);
|
||||
auth.put("showResult",1);
|
||||
List<FlowRecord> currentResultRecords = flowRecordService.selectFlowRecordByRecordIdStatus(recordDetailDto.getResultRecordId(),2);
|
||||
log.info("当前用户登陆用户 id :" + recordDetailDto.getLoginUserId());
|
||||
if(currentResultRecords !=null && currentResultRecords.size() > 0 ){
|
||||
FlowRecord currentResultRecord = null;
|
||||
for(FlowRecord flowRecord:currentResultRecords){
|
||||
if(flowRecord.getApprovalStaffId().equals(recordDetailDto.getLoginUserId())){
|
||||
currentResultRecord = flowRecord;
|
||||
log.info("当前审批用户 id id :" + currentResultRecord.getApprovalStaffId());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(currentResultRecord !=null){
|
||||
if(StringUtil.isNotBlank(currentResultRecord.getFlowStaffIdRole())){
|
||||
Map<String,Object> map = JSONObject.parseObject(currentResultRecord.getFlowStaffIdRole(),Map.class);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user