|
@@ -9,6 +9,7 @@ import com.baomidou.dynamic.datasource.annotation.DSTransactional;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.fjhx.common.constant.SourceConstant;
|
|
import com.fjhx.common.constant.SourceConstant;
|
|
|
|
+import com.fjhx.common.utils.Assert;
|
|
import com.fjhx.item.entity.product.po.ProductInfo;
|
|
import com.fjhx.item.entity.product.po.ProductInfo;
|
|
import com.fjhx.item.service.product.ProductInfoService;
|
|
import com.fjhx.item.service.product.ProductInfoService;
|
|
import com.fjhx.wms.entity.arrival.po.ArrivalStockRecords;
|
|
import com.fjhx.wms.entity.arrival.po.ArrivalStockRecords;
|
|
@@ -108,8 +109,8 @@ public class StockWaitServiceImpl extends ServiceImpl<StockWaitMapper, StockWait
|
|
wrapper.eq(StockWait::getStatus, dto.getStatus());
|
|
wrapper.eq(StockWait::getStatus, dto.getStatus());
|
|
wrapper.eq("sw", StockWait::getBusinessType, dto.getBusinessType());
|
|
wrapper.eq("sw", StockWait::getBusinessType, dto.getBusinessType());
|
|
|
|
|
|
- //过滤掉待入库待出库已完成数据
|
|
|
|
- wrapper.ne("sw", StockWait::getStatus, 2);
|
|
|
|
|
|
+ //过滤掉待出入库 已完成/手动结束 的数据
|
|
|
|
+ wrapper.notIn("sw", StockWait::getStatus, 2, 3);
|
|
|
|
|
|
Page<StockWaitVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
|
|
Page<StockWaitVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
|
|
|
|
|
|
@@ -351,4 +352,17 @@ public class StockWaitServiceImpl extends ServiceImpl<StockWaitMapper, StockWait
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 结束入库
|
|
|
|
+ */
|
|
|
|
+ @DSTransactional
|
|
|
|
+ @Override
|
|
|
|
+ public void endInStock(Long id) {
|
|
|
|
+ StockWait stockWait = getById(id);
|
|
|
|
+ Assert.notEmpty(stockWait, "无法查询到待入库信息");
|
|
|
|
+ stockWait.setStatus(3);//设置状态为结束
|
|
|
|
+ updateById(stockWait);
|
|
|
|
+ wmsService.addEndInStockAbnormal(stockWait.getId(), stockWait.getBusinessCode());
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|