提交修改

This commit is contained in:
quyixiao 2020-09-29 14:23:21 +08:00
parent 4c131847c5
commit 176209f9cd

View File

@ -264,13 +264,16 @@ public class ResultRecordController extends AbstractController {
}
String superStaff = recordAuthService.selectByStaffId(resultRecord.getStaffId());
int fileCount = recordFileService.selectRecordFileCountByRecordId(resultRecord.getId());
//表示是自己查看详情
if(resultRecord.getStaffId().equals(getUserId())){
List<FlowRecord> flowRecords = flowRecordService.selectFlowRecordByResultRecordIdTypeStatus(req.getRecordResultId(),resultRecord.getType(),0);
if(flowRecords!=null && flowRecords.size() == 2) { // 表示可以撤回
List<FlowRecord> flowRecords = flowRecordService.selectFlowRecordByResultRecordIdTypeStatus(req.getRecordResultId(), resultRecord.getType(), 0);
if (flowRecords != null && flowRecords.size() == 2) { // 表示可以撤回
auth.setCancel(1);
}
if(flowRecords!=null && flowRecords.size() >= 2){
// 审批人是自己不提供催办按钮,流程结束不显示
if (flowRecords != null && flowRecords.size() >= 2 &&
!getUserId().equals(resultRecord.getCurrentApprovalStaffId()) &&
resultRecord.getCurrentApprovalStaffId() != null) {
auth.setSubmited(1);
}
}