Merge remote-tracking branch 'origin/dev_WMS20260401' into dev_WMS20260401

This commit is contained in:
王奎兴
2026-05-28 08:47:31 +08:00
4 changed files with 9 additions and 4 deletions
@@ -48,10 +48,11 @@ public class DeliveTaskApplicationService {
applyPdaOrganizationScope(deliveTaskDO, loginUser); applyPdaOrganizationScope(deliveTaskDO, loginUser);
applyPdaWarehouseScope(deliveTaskDO, loginUser); applyPdaWarehouseScope(deliveTaskDO, loginUser);
Long tabType = deliveTaskDO.getTabType(); Long tabType = deliveTaskDO.getTabType();
boolean handoverList = deliveTaskDO.getTaskType() != null && deliveTaskDO.getTaskType() == 7;
if (tabType != null && tabType == 1L) { if (tabType != null && tabType == 1L) {
// 指派给我的:已接收(operators_by = 当前用户) // 指派给我的:已接收(operators_by = 当前用户)
deliveTaskDO.setOperatorsBy(loginUser.getUserid()); deliveTaskDO.setOperatorsBy(loginUser.getUserid());
} else if (tabType == null || tabType == 2L) { } else if (!handoverList && (tabType == null || tabType == 2L)) {
// 任务大厅:未领取任务池(含入库审核收货、出库生成拣货单等自动下发的任务),不按下发人过滤 // 任务大厅:未领取任务池(含入库审核收货、出库生成拣货单等自动下发的任务),不按下发人过滤
if (tabType == null) { if (tabType == null) {
deliveTaskDO.setTabType(2L); deliveTaskDO.setTabType(2L);
@@ -112,7 +112,7 @@ public class DeliveTaskDTO extends BaseVOEntity {
@ApiModelProperty(name = "权限菜单ID") @ApiModelProperty(name = "权限菜单ID")
private Long permissionMenuId; private Long permissionMenuId;
@ApiModelProperty("查询类型 1-指派给我的 2-任务") @ApiModelProperty("查询类型 1-指派给我的 2-任务大厅;taskType=7 出库交接可不传 tabType,不会按未领取过滤")
@Excel(name = "查询类型 1-指派给我的 2-任务") @Excel(name = "查询类型 1-指派给我的 2-任务")
private Long tabType; private Long tabType;
@@ -33,7 +33,8 @@ public class DeliveTaskAppApi extends BaseController {
/** /**
* 分页查询下发任务列表。条件:del_flag=1、当前用户 organization_id、绑定仓库(未传 warehouseId 时取用户仓库绑定)、 * 分页查询下发任务列表。条件:del_flag=1、当前用户 organization_id、绑定仓库(未传 warehouseId 时取用户仓库绑定)、
* {@code tabType=2} 任务大厅(operators_name 为空,含收货/上架/拣货等自动下发任务)、 * {@code tabType=2} 任务大厅(operators_name 为空,含收货/上架/拣货等自动下发任务)、
* {@code tabType=1} 指派给我的(operators_by=当前用户);不按 task_status 默认过滤。 * {@code tabType=1} 指派给我的(operators_by=当前用户);
* {@code taskType=7} 出库交接列表(按 handoverQueryType 过滤,不限制 operators_name 为空);不按 task_status 默认过滤。
*/ */
@ApiOperation("查询下发任务列表") @ApiOperation("查询下发任务列表")
@GetMapping("/list") @GetMapping("/list")
@@ -210,9 +210,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="tabType != null and tabType==1"> <if test="tabType != null and tabType==1">
and operators_by = #{operatorsBy} and operators_by = #{operatorsBy}
</if> </if>
<!-- 任务大厅 tabType=2:未领取;出库交接 taskType=7 不按 operators_name 过滤 -->
<if test="tabType != null and tabType==2"> <if test="tabType != null and tabType==2">
<if test="taskType == null or taskType != 7">
<include refid="deliveTaskHallUnassignedFilter"/> <include refid="deliveTaskHallUnassignedFilter"/>
</if> </if>
</if>
<if test="operatorsName != null and operatorsName != ''"> <if test="operatorsName != null and operatorsName != ''">
and operators_name like concat('%', #{operatorsName}, '%') and operators_name like concat('%', #{operatorsName}, '%')
</if> </if>