feat(roll report): 添加磨削报表产线维度分析与多维度趋势展示
1. 新增lineId字段到磨削VO及查询SQL,支持产线数据统计 2. 增加按天/周/月切换的磨削趋势图表,自动适配时间区间 3. 新增月度产线汇总表格,支持按产线统计磨削次数与总量 4. 新增汇总数据导出Excel功能
This commit is contained in:
@@ -13,6 +13,7 @@ import java.util.Date;
|
||||
public class MesRollGrindVo {
|
||||
|
||||
private Long grindId;
|
||||
private Long lineId;
|
||||
private Long rollId;
|
||||
private String rollNo;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<mapper namespace="com.klp.mes.roll.mapper.MesRollGrindMapper">
|
||||
|
||||
<select id="selectByRollId" resultType="com.klp.mes.roll.domain.vo.MesRollGrindVo">
|
||||
SELECT grind_id, roll_id, roll_no, grind_time, team,
|
||||
SELECT grind_id, line_id, roll_id, roll_no, grind_time, team,
|
||||
dia_before, dia_after, grind_amount, roll_shape,
|
||||
flaw_result,
|
||||
CASE WHEN hardness = '未倒角' THEN 0 ELSE CAST(hardness AS DECIMAL(10,1)) END AS hardness,
|
||||
@@ -14,7 +14,7 @@
|
||||
</select>
|
||||
|
||||
<select id="selectList" resultType="com.klp.mes.roll.domain.vo.MesRollGrindVo">
|
||||
SELECT g.grind_id, g.roll_id, g.roll_no, g.grind_time, g.team,
|
||||
SELECT g.grind_id, g.line_id, g.roll_id, g.roll_no, g.grind_time, g.team,
|
||||
g.dia_before, g.dia_after, g.grind_amount, g.roll_shape,
|
||||
g.flaw_result,
|
||||
CASE WHEN g.hardness = '未倒角' THEN 0 ELSE CAST(g.hardness AS DECIMAL(10,1)) END AS hardness,
|
||||
|
||||
Reference in New Issue
Block a user