|
@@ -66,6 +66,15 @@ public class StockWaitServiceImpl extends ServiceImpl<StockWaitMapper, StockWait
|
|
|
wrapper.eq("sw", StockWait::getCompanyId, dto.getCompanyId());
|
|
|
}
|
|
|
|
|
|
+ //状态过滤
|
|
|
+ Integer status = dto.getStatus();
|
|
|
+ if (ObjectUtil.isEmpty(status)) {
|
|
|
+ //默认不显示以完成的数据
|
|
|
+ wrapper.ne("sw", StockWait::getStatus, 2);
|
|
|
+ } else {
|
|
|
+ wrapper.eq("sw", StockWait::getStatus, status);
|
|
|
+ }
|
|
|
+
|
|
|
//过滤入库/出库
|
|
|
wrapper.eq(StockWait::getType, dto.getType());
|
|
|
wrapper.eq("sw", StockWait::getBusinessType, dto.getBusinessType());
|