## 未合单添加非在售商品查询;
This commit is contained in:
parent
f1f356b279
commit
7bb2b0c01c
|
|
@ -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();
|
||||||
|
|
|
||||||
|
|
@ -168,4 +168,9 @@ public class DeliverUnhandledParam extends BaseAuthorityEntity {
|
||||||
*/
|
*/
|
||||||
private Integer systemType;
|
private Integer systemType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 非售商品列表
|
||||||
|
*/
|
||||||
|
private List<Integer> pkWaresList;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue