## 未合单添加非在售商品查询;

This commit is contained in:
cabbage 2025-08-11 14:03:11 +08:00
parent 19c9b45bd2
commit efc60578ec
3 changed files with 21 additions and 6 deletions

View File

@ -98,6 +98,8 @@ public class SaDeliverUnhandledController extends BaseController {
// 未合单目前查询状态已付款 // 未合单目前查询状态已付款
param.setOrderStatusList(Collections.singletonList(EOrderStatus.PAY.getValue())); param.setOrderStatusList(Collections.singletonList(EOrderStatus.PAY.getValue()));
// 查询语句已经写死查询在售此处可以直接赋空
param.setPreSaleStatus(null);
// 获取管理员权限角色地区范围体系列表团队列表 // 获取管理员权限角色地区范围体系列表团队列表
UserAuthorityDTO userAuthorityDTO = iUserServiceApi.getUserAuthority(SecurityUtils.getUserId()).getData(); UserAuthorityDTO userAuthorityDTO = iUserServiceApi.getUserAuthority(SecurityUtils.getUserId()).getData();
@ -139,6 +141,8 @@ public class SaDeliverUnhandledController extends BaseController {
// 未合单目前查询状态已付款 // 未合单目前查询状态已付款
param.setOrderStatusList(Collections.singletonList(EOrderStatus.PAY.getValue())); param.setOrderStatusList(Collections.singletonList(EOrderStatus.PAY.getValue()));
// 查询语句已经写死查询在售此处可以直接赋空
param.setPreSaleStatus(null);
// 获取管理员权限角色地区范围体系列表团队列表 // 获取管理员权限角色地区范围体系列表团队列表
UserAuthorityDTO userAuthorityDTO = iUserServiceApi.getUserAuthority(SecurityUtils.getUserId()).getData(); UserAuthorityDTO userAuthorityDTO = iUserServiceApi.getUserAuthority(SecurityUtils.getUserId()).getData();

View File

@ -168,4 +168,9 @@ public class DeliverUnhandledParam extends BaseAuthorityEntity {
*/ */
private Integer systemType; private Integer systemType;
/**
* 非售商品列表
*/
private List<Integer> pkWaresList;
} }

View File

@ -103,12 +103,15 @@
#{subItem} #{subItem}
</if> </if>
</foreach> </foreach>
<if test="param.productIdList != null and param.productIdList.size > 0"> <!-- 在售 -->
and soi.pk_product in and (bwe.pre_sale_status = 0
<foreach collection="param.productIdList" item="item" separator="," open="(" close=")"> <if test="param.pkWaresList != null and param.pkWaresList.size > 0">
or soi.pk_wares in
<foreach collection="param.pkWaresList" item="item" separator="," open="(" close=")">
#{item} #{item}
</foreach> </foreach>
</if> </if>
)
<!-- 地区权限处理 --> <!-- 地区权限处理 -->
<if test="param.areaScopeList != null and param.areaScopeList.size > 0"> <if test="param.areaScopeList != null and param.areaScopeList.size > 0">
and so.rec_province in and so.rec_province in
@ -196,12 +199,15 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="param.productIdList != null and param.productIdList.size > 0"> <!-- 在售 -->
and soi.pk_product in and (bwe.pre_sale_status = 0
<foreach collection="param.productIdList" item="item" separator="," open="(" close=")"> <if test="param.pkWaresList != null and param.pkWaresList.size > 0">
or soi.pk_wares in
<foreach collection="param.pkWaresList" item="item" separator="," open="(" close=")">
#{item} #{item}
</foreach> </foreach>
</if> </if>
)
<!-- 地区权限处理 --> <!-- 地区权限处理 -->
<if test="param.areaScopeList != null and param.areaScopeList.size > 0"> <if test="param.areaScopeList != null and param.areaScopeList.size > 0">
and so.rec_province in and so.rec_province in