|
@@ -1,6 +1,8 @@
|
|
|
package com.fjhx.wms.service.stock.impl;
|
|
|
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.fjhx.item.service.product.ProductInfoService;
|
|
|
+import com.fjhx.wms.entity.stock.po.StockWait;
|
|
|
import com.fjhx.wms.entity.stock.po.StockWaitDetails;
|
|
|
import com.fjhx.wms.mapper.stock.StockWaitDetailsMapper;
|
|
|
import com.fjhx.wms.service.stock.StockWaitDetailsService;
|
|
@@ -35,6 +37,11 @@ public class StockWaitDetailsServiceImpl extends ServiceImpl<StockWaitDetailsMap
|
|
|
public Page<StockWaitDetailsVo> getPage(StockWaitDetailsSelectDto dto) {
|
|
|
IWrapper<StockWaitDetails> wrapper = getWrapper();
|
|
|
wrapper.orderByDesc("swd", StockWaitDetails::getId);
|
|
|
+ wrapper.eq("sw", StockWait::getType,dto.getType());
|
|
|
+ if(ObjectUtil.isNotEmpty(dto.getKeyword())){
|
|
|
+ wrapper.and(q->q.like(StockWaitDetails::getQuantity,dto.getKeyword()).or().like(StockWaitDetailsVo::getBusinessCode,dto.getKeyword()));
|
|
|
+ }
|
|
|
+ wrapper.eq("sw", StockWait::getBusinessType,dto.getBusinessType());
|
|
|
Page<StockWaitDetailsVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
|
|
|
List<StockWaitDetailsVo> records = page.getRecords();
|
|
|
// 赋值产品属性
|