fix(mes/roll): 修正磨削记录查询排序逻辑
1. 将磨削记录列表的默认排序由升序改为降序,确保最新记录优先展示 2. 移除冗余的grind_id排序条件,简化排序规则
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
operator, remark, create_time
|
||||
FROM mes_roll_grind
|
||||
WHERE del_flag = 0 AND roll_id = #{rollId}
|
||||
ORDER BY grind_time ASC, grind_id ASC
|
||||
ORDER BY grind_time Desc
|
||||
</select>
|
||||
|
||||
<select id="selectList" resultType="com.klp.mes.roll.domain.vo.MesRollGrindVo">
|
||||
@@ -29,7 +29,7 @@
|
||||
<if test="endTime != null and endTime != ''">AND g.grind_time <= #{endTime}</if>
|
||||
<if test="team != null and team != ''">AND g.team = #{team}</if>
|
||||
<if test="rollType != null and rollType != ''">AND ri.roll_type = #{rollType}</if>
|
||||
ORDER BY g.grind_time DESC, g.grind_id ASC
|
||||
ORDER BY g.grind_time DESC
|
||||
</select>
|
||||
|
||||
<select id="selectMonthlyStats" resultType="map">
|
||||
|
||||
Reference in New Issue
Block a user