fix(mill): 修复换辊记录查询逻辑
- 修正了MesRollChangeMapper.xml中的查询条件,添加del_flag = 0过滤已删除记录 - 修改了排序规则,从change_id改为change_time优先排序,确保获取最新的换辊记录 - 注释掉了服务层中统计信息的相关代码,避免不必要的数据加载和计算 - 确保查询能够返回正确的最新换辊记录,提高数据准确性
This commit is contained in:
@@ -149,12 +149,12 @@ public class MesRollChangeServiceImpl implements IMesRollChangeService
|
||||
if (rec != null) {
|
||||
cell.put("rollNo", getRollNoByPos(rec, posType));
|
||||
cell.put("onlineTime", rec.getChangeTime());
|
||||
Map<String, Object> stats = mesRollChangeMapper.selectCoilStats(rec.getChangeTime(), null);
|
||||
MesRollChangeVo tmp = new MesRollChangeVo();
|
||||
fillStatsToVo(tmp, stats);
|
||||
cell.put("workLength", tmp.getWorkLength());
|
||||
cell.put("coilCount", tmp.getCoilCount());
|
||||
cell.put("totalWeight", tmp.getTotalWeight());
|
||||
// Map<String, Object> stats = mesRollChangeMapper.selectCoilStats(rec.getChangeTime(), null);
|
||||
// MesRollChangeVo tmp = new MesRollChangeVo();
|
||||
// fillStatsToVo(tmp, stats);
|
||||
// cell.put("workLength", tmp.getWorkLength());
|
||||
// cell.put("coilCount", tmp.getCoilCount());
|
||||
// cell.put("totalWeight", tmp.getTotalWeight());
|
||||
}
|
||||
byStand.put(standNo, cell);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user