工人效率分析
This commit is contained in:
parent
fd4d0e649e
commit
837774b1b5
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 != ''">
|
||||
|
|
|
|||
Loading…
Reference in New Issue