Merge branch 'version_performance_2.0' of http://gitlab.ldxinyong.com/enterpriseManagement/lz_management into version_performance_2.0
This commit is contained in:
commit
e8c604b22a
@ -202,18 +202,9 @@ public class ResultTaskServiceImpl extends ServiceImpl<ResultTaskMapper, ResultT
|
||||
}
|
||||
int size = resultTaskDtos.size();
|
||||
Double rate = 0d;
|
||||
int cout = 0;
|
||||
for(ResultTaskDto dto:resultTaskDtos){
|
||||
if(1 == dto.getProcessRate()){
|
||||
cout++;
|
||||
continue;
|
||||
}
|
||||
rate = BigDecimalUtil.add(rate,dto.getProcessRate());
|
||||
}
|
||||
size = size - cout;
|
||||
if(size < 1){
|
||||
return 1d;
|
||||
}
|
||||
double result = BigDecimalUtil.div(rate, size, 4);
|
||||
return result;
|
||||
|
||||
|
||||
@ -1074,7 +1074,8 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
||||
}
|
||||
String comment = StringUtil.isNotBlank(resultComment.getComment()) ? resultComment.getComment() + "_" : "";
|
||||
String optDesc = StringUtil.isNotBlank(resultComment.getOptDesc()) ? resultComment.getOptDesc() + "_" : "";
|
||||
resultComment.setComment(comment + approvalDto.getComment());
|
||||
String newComment = StringUtil.isNotBlank(approvalDto.getComment()) ? approvalDto.getComment() : "";
|
||||
resultComment.setComment(comment + newComment);
|
||||
resultComment.setStaffName(staffEntity.getName());
|
||||
resultComment.setStaffId(staffEntity.getId());
|
||||
resultComment.setRecordId(approvalDto.getResultRecordId());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user