优化
This commit is contained in:
@ -94,6 +94,9 @@ public class AppTaskDetailVO {
|
||||
@ApiModelProperty("任务进度")
|
||||
private Integer progress;
|
||||
|
||||
@ApiModelProperty("任务进度")
|
||||
private Double progressDouble;
|
||||
|
||||
//结算情况
|
||||
@ApiModelProperty("任务收款金额")
|
||||
private Integer taskReceiveAmount;
|
||||
|
||||
@ -60,5 +60,5 @@ public class AppTaskVO {
|
||||
private Integer applyNum;
|
||||
|
||||
@ApiModelProperty("任务收款金额")
|
||||
private Integer taskReceiveAmount;
|
||||
private Integer taskReceiveAmount = 0;
|
||||
}
|
||||
|
||||
@ -62,6 +62,9 @@ public interface IFbsProjectTaskService extends IServicePlus<FbsProjectTask> {
|
||||
*/
|
||||
TableDataInfo<AppTaskVO> appQueryPageList(AppTaskDTO dto);
|
||||
|
||||
/**
|
||||
* App包工头任务列表(不分页)
|
||||
*/
|
||||
List<AppTaskVO> appQueryList();
|
||||
|
||||
/**
|
||||
|
||||
@ -156,7 +156,7 @@ public class FbsProjectTaskServiceImpl extends ServicePlusImpl<FbsProjectTaskMap
|
||||
Page<AppTaskVO> appTaskVOPage = baseMapper.appQueryPageList(appTaskDTOPage, dto);
|
||||
if(dto.getMyTask() && ProjectTaskStatus.APPLY.getCode().equals(dto.getStatus())
|
||||
&&CollectionUtil.isEmpty(taskIds)){
|
||||
appTaskVOPage.setRecords(new ArrayList<AppTaskVO>());
|
||||
appTaskVOPage.setRecords(new ArrayList<>());
|
||||
appTaskVOPage.setTotal(0);
|
||||
}
|
||||
return PageUtils.buildDataInfo(appTaskVOPage);
|
||||
@ -183,8 +183,10 @@ public class FbsProjectTaskServiceImpl extends ServicePlusImpl<FbsProjectTaskMap
|
||||
if(ProjectTaskStatus.PROGRESS.getCode().equals(byId.getStatus())
|
||||
|| ProjectTaskStatus.COMPLETE.getCode().equals(byId.getStatus())){
|
||||
//任务进度
|
||||
appTaskDetailVO.setProgress(progressService.getLastProgress(id));
|
||||
|
||||
Integer lastProgress = progressService.getLastProgress(id);
|
||||
appTaskDetailVO.setProgress(lastProgress);
|
||||
BigDecimal bd = new BigDecimal(lastProgress).divide(new BigDecimal(100), 2, RoundingMode.HALF_UP);
|
||||
appTaskDetailVO.setProgressDouble(bd.doubleValue());
|
||||
//结算情况
|
||||
//收款申请列表
|
||||
BgtWageApplicationQueryDTO wageDTO = new BgtWageApplicationQueryDTO();
|
||||
|
||||
Reference in New Issue
Block a user