PDA端出库交接查询
This commit is contained in:
@@ -115,4 +115,7 @@ public class DeliveTaskDO extends BaseVOEntity {
|
|||||||
@ApiModelProperty("查询类型 1-指派给我的 2-任务")
|
@ApiModelProperty("查询类型 1-指派给我的 2-任务")
|
||||||
@Excel(name = "查询类型 1-指派给我的 2-任务")
|
@Excel(name = "查询类型 1-指派给我的 2-任务")
|
||||||
private Long tabType;
|
private Long tabType;
|
||||||
|
|
||||||
|
@ApiModelProperty("交接查询类型(taskType=7时生效): 1-列表(未交接) 2-历史(已交接),不传默认1")
|
||||||
|
private Integer handoverQueryType;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -115,4 +115,7 @@ public class DeliveTaskDTO extends BaseVOEntity {
|
|||||||
@ApiModelProperty("查询类型 1-指派给我的 2-任务")
|
@ApiModelProperty("查询类型 1-指派给我的 2-任务")
|
||||||
@Excel(name = "查询类型 1-指派给我的 2-任务")
|
@Excel(name = "查询类型 1-指派给我的 2-任务")
|
||||||
private Long tabType;
|
private Long tabType;
|
||||||
|
|
||||||
|
@ApiModelProperty("交接查询类型(taskType=7时生效): 1-列表(未交接) 2-历史(已交接),不传默认1")
|
||||||
|
private Integer handoverQueryType;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,6 +91,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="taskType != null and taskType != 0 ">
|
<if test="taskType != null and taskType != 0 ">
|
||||||
and task_type = #{taskType}
|
and task_type = #{taskType}
|
||||||
</if>
|
</if>
|
||||||
|
<!-- taskType=7 交接作业单时,按 handoverQueryType 过滤: 1-列表(未交接) 2-历史(已交接),不传默认1 -->
|
||||||
|
<if test="taskType != null and taskType == 7 and (handoverQueryType == null or handoverQueryType == 1)">
|
||||||
|
and EXISTS (SELECT 1 FROM handover_task_order hto WHERE hto.task_number = delive_task.tracking_number AND hto.del_flag = 1 AND hto.status = 1)
|
||||||
|
</if>
|
||||||
|
<if test="taskType != null and taskType == 7 and handoverQueryType == 2">
|
||||||
|
and EXISTS (SELECT 1 FROM handover_task_order hto WHERE hto.task_number = delive_task.tracking_number AND hto.del_flag = 1 AND hto.status = 2)
|
||||||
|
</if>
|
||||||
<if test="taskStatus != null ">
|
<if test="taskStatus != null ">
|
||||||
and task_status = #{taskStatus}
|
and task_status = #{taskStatus}
|
||||||
</if>
|
</if>
|
||||||
@@ -158,6 +165,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="taskType != null ">
|
<if test="taskType != null ">
|
||||||
and task_type = #{taskType}
|
and task_type = #{taskType}
|
||||||
</if>
|
</if>
|
||||||
|
<!-- taskType=7 交接作业单时,按 handoverQueryType 过滤: 1-列表(未交接) 2-历史(已交接),不传默认1 -->
|
||||||
|
<if test="taskType != null and taskType == 7 and (handoverQueryType == null or handoverQueryType == 1)">
|
||||||
|
and EXISTS (SELECT 1 FROM handover_task_order hto WHERE hto.task_number = delive_task.tracking_number AND hto.del_flag = 1 AND hto.status = 1)
|
||||||
|
</if>
|
||||||
|
<if test="taskType != null and taskType == 7 and handoverQueryType == 2">
|
||||||
|
and EXISTS (SELECT 1 FROM handover_task_order hto WHERE hto.task_number = delive_task.tracking_number AND hto.del_flag = 1 AND hto.status = 2)
|
||||||
|
</if>
|
||||||
<if test="taskStatus != null ">
|
<if test="taskStatus != null ">
|
||||||
and task_status = #{taskStatus}
|
and task_status = #{taskStatus}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user