优化
This commit is contained in:
@ -95,6 +95,9 @@ public class FbsProjectTask implements Serializable {
|
||||
@ApiModelProperty("任务图片")
|
||||
private String taskImg;
|
||||
|
||||
@ApiModelProperty("任务附件")
|
||||
private String taskAnnex;
|
||||
|
||||
/** 资质要求 */
|
||||
@Excel(name = "资质要求")
|
||||
@ApiModelProperty("资质要求")
|
||||
|
||||
@ -72,6 +72,9 @@ public class AppTaskDetailVO {
|
||||
@ApiModelProperty("任务图片")
|
||||
private String taskImg;
|
||||
|
||||
@ApiModelProperty("任务附件")
|
||||
private String taskAnnex;
|
||||
|
||||
/** 资质要求 */
|
||||
@ApiModelProperty("资质要求")
|
||||
private String qualification;
|
||||
|
||||
@ -214,8 +214,10 @@ public class FbsProjectTaskServiceImpl extends ServicePlusImpl<FbsProjectTaskMap
|
||||
//计算到岗率
|
||||
if(totalNum!=0 && CollectionUtil.isNotEmpty(bgtDayAttendanceCountVOS)){
|
||||
BgtDayAttendanceCountVO bgtDayAttendanceCountVO = bgtDayAttendanceCountVOS.get(bgtDayAttendanceCountVOS.size() - 1);
|
||||
|
||||
int rate = new BigDecimal(bgtDayAttendanceCountVO.getReportToDutyNum()).divide(new BigDecimal(totalNum), 2, RoundingMode.HALF_UP)
|
||||
.multiply(new BigDecimal(100)).intValue();
|
||||
appTaskDetailVO.setReportToDutyNum(bgtDayAttendanceCountVO.getReportToDutyNum());
|
||||
appTaskDetailVO.setReportToDutyRate(rate);
|
||||
}
|
||||
return appTaskDetailVO;
|
||||
|
||||
Reference in New Issue
Block a user