工人效率分析

This commit is contained in:
cwchen 2025-07-24 17:22:07 +08:00
parent fd4d0e649e
commit 837774b1b5
3 changed files with 15 additions and 23 deletions

View File

@ -14,15 +14,18 @@ public class WorkerEfficiencyVo {
private Long id;
private String bidCode;
/**工程名称*/
private String proName;
/**班组长*/
private String userName;
/**班组名称*/
private String teamName;
private String postName;
private int attDay;
private String sgType;
private String completeWorkload;
private double unitTimeOutput;
private String standardTimeOutput;
private String unit;
private String unitTimeOutputUnit;
/**计划天数*/
private int planDay;
/**实际天数*/
private int actualDay;
/**工序*/
private String gxName;
/**工作标准*/
private String workStandard;
}

View File

@ -34,14 +34,6 @@ public class WorkerEfficiencyServiceImpl implements IWorkerEfficiencyService {
try {
List<WorkerEfficiencyVo> list = Optional.ofNullable(mapper.getList(dto)).orElse(new ArrayList<>());
for (WorkerEfficiencyVo vo : list) {
if(StringUtils.isNotBlank(vo.getCompleteWorkload())){
BigDecimal a = new BigDecimal(vo.getCompleteWorkload());
BigDecimal b = new BigDecimal(vo.getAttDay());
BigDecimal result = a.divide(b, 3, RoundingMode.HALF_UP);
vo.setUnitTimeOutput(result.doubleValue());
}
}
return list;
} catch (Exception e) {
log.info(e.toString(), e);

View File

@ -10,13 +10,10 @@
pro_name AS proName,
user_name AS userName,
team_name AS teamName,
post_name AS postName,
att_day AS attDay,
sg_type AS sgType,
complete_workload AS completeWorkload,
standard_time_output AS standardTimeOutput,
unit,
unit_time_output_unit AS unitTimeOutputUnit
plan_day AS planDay,
actual_day AS actualDay,
gx_name AS gxName,
work_standard AS workStandard
FROM tb_worker_efficiency
<where>
<if test="userName != null and userName != ''">