优化
This commit is contained in:
		@ -61,6 +61,9 @@ public class BgtProjectTaskProgress implements Serializable {
 | 
			
		||||
	@ApiModelProperty("用工数量")
 | 
			
		||||
	private Integer taskStaffNum;
 | 
			
		||||
 | 
			
		||||
	@ApiModelProperty("任务地址")
 | 
			
		||||
	private String  taskAddress;
 | 
			
		||||
 | 
			
		||||
    /** 进度名称 */
 | 
			
		||||
    @Excel(name = "进度名称")
 | 
			
		||||
    @ApiModelProperty("进度名称")
 | 
			
		||||
 | 
			
		||||
@ -47,6 +47,8 @@ public class BgtProjectTaskProgressDTO {
 | 
			
		||||
    @ApiModelProperty("进度名称")
 | 
			
		||||
    private String progressName;
 | 
			
		||||
 | 
			
		||||
	@ApiModelProperty("任务地址")
 | 
			
		||||
	private String  taskAddress;
 | 
			
		||||
 | 
			
		||||
    @ApiModelProperty("负责人")
 | 
			
		||||
    private String director;
 | 
			
		||||
 | 
			
		||||
@ -198,8 +198,7 @@ public class BgtProjectRecruitApplyServiceImpl extends ServicePlusImpl<BgtProjec
 | 
			
		||||
			.setSubheading(map.get(SUBHEADING))
 | 
			
		||||
			.setTableId(recruitApply.getId())
 | 
			
		||||
			.setTableName(SqlHelper.table(BgtProjectRecruitApply.class).getTableName())
 | 
			
		||||
			.setMessageLargeType(LARGE_APPLY)
 | 
			
		||||
			.setMessageSmallType(SMALL_SYSTEM);
 | 
			
		||||
			.setMessageLargeType(LARGE_APPLY);
 | 
			
		||||
		iWgzMessageService.sendAMessage(wgzMessage);
 | 
			
		||||
		return updateById(recruitApply);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
@ -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();
 | 
			
		||||
 | 
			
		||||
@ -298,8 +298,7 @@ public class WgzPayCalculationServiceImpl extends ServicePlusImpl<WgzPayCalculat
 | 
			
		||||
			.setSubheading(map.get(SUBHEADING))
 | 
			
		||||
			.setTableId(payCalculation.getId())
 | 
			
		||||
			.setTableName(SqlHelper.table(WgzPayCalculation.class).getTableName())
 | 
			
		||||
			.setMessageLargeType(LARGE_SALARY)
 | 
			
		||||
			.setMessageSmallType(SMALL_SYSTEM);
 | 
			
		||||
			.setMessageLargeType(LARGE_SALARY);
 | 
			
		||||
		wgzMessageService.sendAMessage(wgzMessage);
 | 
			
		||||
		return updateById(payCalculation);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user