|
|
|
@ -66,9 +66,25 @@ public class IndicatorsServiceImpl extends BaseServiceImpl<IndicatorsMapper, Ind
|
|
|
|
|
String deptName = deptClient.findNameById(deptId); |
|
|
|
|
record.setCreateDeptName(deptName); |
|
|
|
|
Long createUser = record.getCreateUser(); |
|
|
|
|
Long assessUserId = record.getAssessUserId(); |
|
|
|
|
Long assessDept = record.getAssessDept(); |
|
|
|
|
if(userId.equals(createUser)){ |
|
|
|
|
record.setIsEdit(1); |
|
|
|
|
}else{ |
|
|
|
|
if(Objects.isNull(assessUserId)){ |
|
|
|
|
Long deptId1 = Long.parseLong(AuthUtil.getDeptId()); |
|
|
|
|
if(deptId1.equals(assessDept)){ |
|
|
|
|
record.setIsEdit(2); |
|
|
|
|
}else{ |
|
|
|
|
record.setIsEdit(0); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
if(assessUserId.equals(userId)){ |
|
|
|
|
record.setIsEdit(2); |
|
|
|
|
}else{ |
|
|
|
|
record.setIsEdit(0); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
record.setIsEdit(0); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|