任务表查询排序
This commit is contained in:
@@ -53,6 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="priority != null ">and priority = #{priority}</if>
|
<if test="priority != null ">and priority = #{priority}</if>
|
||||||
<if test="executionPhase != null and executionPhase != ''">and execution_phase = #{executionPhase}</if>
|
<if test="executionPhase != null and executionPhase != ''">and execution_phase = #{executionPhase}</if>
|
||||||
<if test="inOrOut != null and inOrOut != ''">and in_or_out = #{inOrOut}</if>
|
<if test="inOrOut != null and inOrOut != ''">and in_or_out = #{inOrOut}</if>
|
||||||
|
<if test="createTime != null and createTime != ''">and create_time = #{createTime}</if>
|
||||||
<if test="startTime != null and startTime != ''">and start_time = #{startTime}</if>
|
<if test="startTime != null and startTime != ''">and start_time = #{startTime}</if>
|
||||||
<if test="finishTime != null and finishTime != ''">and finish_time = #{finishTime}</if>
|
<if test="finishTime != null and finishTime != ''">and finish_time = #{finishTime}</if>
|
||||||
<if test="entranceId != null and entranceId != ''">and entrance_id = #{entranceId}</if>
|
<if test="entranceId != null and entranceId != ''">and entrance_id = #{entranceId}</if>
|
||||||
@@ -70,7 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</if>
|
</if>
|
||||||
<if test="wmsTaskNo != null and wmsTaskNo != ''">and wms_task_no = #{wmsTaskNo}</if>
|
<if test="wmsTaskNo != null and wmsTaskNo != ''">and wms_task_no = #{wmsTaskNo}</if>
|
||||||
</where>
|
</where>
|
||||||
order by start_time desc
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectMydoJobByJobId" parameterType="String" resultMap="MydoJobResult">
|
<select id="selectMydoJobByJobId" parameterType="String" resultMap="MydoJobResult">
|
||||||
@@ -301,6 +302,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="priority != null and priority != '' "> and priority = #{priority}</if>
|
<if test="priority != null and priority != '' "> and priority = #{priority}</if>
|
||||||
<if test="executionPhase != null and executionPhase != ''"> and execution_phase = #{executionPhase}</if>
|
<if test="executionPhase != null and executionPhase != ''"> and execution_phase = #{executionPhase}</if>
|
||||||
<if test="inOrOut != null and inOrOut != ''"> and in_or_out = #{inOrOut}</if>
|
<if test="inOrOut != null and inOrOut != ''"> and in_or_out = #{inOrOut}</if>
|
||||||
|
<if test="createTime != null and createTime != ''">and create_time = #{createTime}</if>
|
||||||
<if test="startTime != null and startTime != ''"> and start_time = #{startTime}</if>
|
<if test="startTime != null and startTime != ''"> and start_time = #{startTime}</if>
|
||||||
<if test="finishTime != null and finishTime != ''"> and finish_time = #{finishTime}</if>
|
<if test="finishTime != null and finishTime != ''"> and finish_time = #{finishTime}</if>
|
||||||
<if test="entranceId != null and entranceId != ''"> and entrance_id = #{entranceId}</if>
|
<if test="entranceId != null and entranceId != ''"> and entrance_id = #{entranceId}</if>
|
||||||
@@ -312,7 +314,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="traySize != null and traySize != ''"> and tray_size = #{traySize}</if>
|
<if test="traySize != null and traySize != ''"> and tray_size = #{traySize}</if>
|
||||||
<if test="wmsTaskNo != null and wmsTaskNo != ''">and wms_task_no = #{wmsTaskNo}</if>
|
<if test="wmsTaskNo != null and wmsTaskNo != ''">and wms_task_no = #{wmsTaskNo}</if>
|
||||||
</where>
|
</where>
|
||||||
order by start_time desc
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
<select id="selectRunningMydoJobByExitList" resultMap="MydoJobResult">
|
<select id="selectRunningMydoJobByExitList" resultMap="MydoJobResult">
|
||||||
select TOP 1 job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag,flag,tray_size,tray_code from mydo_job_wcs
|
select TOP 1 job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag,flag,tray_size,tray_code from mydo_job_wcs
|
||||||
|
|||||||
Reference in New Issue
Block a user