工人效率分析

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 Long id;
private String bidCode; private String bidCode;
/**工程名称*/
private String proName; private String proName;
/**班组长*/
private String userName; private String userName;
/**班组名称*/
private String teamName; private String teamName;
private String postName; /**计划天数*/
private int attDay; private int planDay;
private String sgType; /**实际天数*/
private String completeWorkload; private int actualDay;
private double unitTimeOutput; /**工序*/
private String standardTimeOutput; private String gxName;
private String unit; /**工作标准*/
private String unitTimeOutputUnit; private String workStandard;
} }

View File

@ -34,14 +34,6 @@ public class WorkerEfficiencyServiceImpl implements IWorkerEfficiencyService {
try { try {
List<WorkerEfficiencyVo> list = Optional.ofNullable(mapper.getList(dto)).orElse(new ArrayList<>()); 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; return list;
} catch (Exception e) { } catch (Exception e) {
log.info(e.toString(), e); log.info(e.toString(), e);

View File

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