提交修改

This commit is contained in:
quyixiao 2020-11-06 16:17:32 +08:00
parent 069de498f7
commit c9ec84d314
2 changed files with 9 additions and 0 deletions

View File

@ -9,5 +9,6 @@ public class FlowDetailResp {
private Long flowRecordId;
private String departName;
private String avatar;
private int status ;
}

View File

@ -1182,6 +1182,14 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
flowDetailResp.setCurrentStaffId(flowRecord.getApprovalStaffId());
flowDetailResp.setStaffName(flowRecord.getApprovalStaffName());
flowDetailResp.setFlowRecordId(flowRecord.getId());
int status = flowRecord.getStatus();
if (flowRecord.getStatus() == 3) {
status = 0;
}
if (flowRecord.getStatus() == 2) {
status = 1;
}
flowDetailResp.setStatus(status);
StaffEntity staffEntity = staffService.selectStaffById(flowRecord.getApprovalStaffId());
DepartmentsStaffRelateEntity departmentsStaffRelateEntity = departmentsStaffRelateService.selectLastDepartmentByStaffId(flowRecord.getApprovalStaffId());
flowDetailResp.setAvatar(staffEntity.getAvatar());