完善数据排序规则

This commit is contained in:
liumingxiy 2024-11-13 15:48:03 +08:00
parent a284ef3fa3
commit a121273c6b
4 changed files with 4 additions and 1 deletions

View File

@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null and updateBy != ''"> and UPDATE_BY = #{updateBy}</if>
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
</where>
order by bom_version desc
ORDER BY MD_ITEM_ID ASC, IS_DEFAULT DESC, BOM_VERSION DESC, CREATE_TIME DESC
</select>
<select id="selectBomRouteByBomRouteId" parameterType="Long" resultMap="BomRouteMbbProduBomResult">

View File

@ -79,6 +79,7 @@
#{standardQuantity}
</if>
</where>
ORDER BY WMS_OUT_PLAN_DETAIL_ID DESC, CREATE_TIME DESC
</select>
<select id="selectWmsOutPlanDetailEntityByWmsOutPlanDetailEntityId" parameterType="Long"

View File

@ -129,6 +129,7 @@
and UPDATE_TIME = #{updateTime}
</if>
</where>
ORDER BY CREATE_TIME DESC
</select>
<select id="selectWmsOutPlanByWmsOutPlanId" parameterType="Long" resultMap="WmsOutPlanWmsOutPlanDetailResult">

View File

@ -60,6 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null and updateBy != ''"> and UPDATE_BY = #{updateBy}</if>
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
</where>
ORDER BY WMS_OUT_PLAN_ID DESC, WMS_OUT_PLAN_DETAIL_ID DESC, CREATE_TIME DESC
</select>
<select id="selectWmsOutTaskByWmsOutTaskId" parameterType="Long" resultMap="WmsOutTaskResult">