|
|
|
@ -40,7 +40,6 @@ import com.logpm.distribution.vo.app.DistributionMerchantStockListVO;
|
|
|
|
|
import com.logpm.distribution.vo.app.StockMallVO; |
|
|
|
|
import com.logpm.warehouse.entity.WarehouseTrayGoodsEntity; |
|
|
|
|
import com.logpm.warehouse.feign.IWarehouseTrayGoodsClient; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.common.constant.DictBizConstant; |
|
|
|
|
import org.springblade.common.constant.printTemplate.PrintTemplateStatusConstant; |
|
|
|
@ -465,7 +464,20 @@ public class DistributionStockListServiceImpl extends BaseServiceImpl<Distributi
|
|
|
|
|
@Override |
|
|
|
|
public IPage<DistributionStockListAllocationVO> listAllocation(IPage<Object> page, Map<String, Object> distributionStockList) { |
|
|
|
|
DistributionStockListEntity distributionStockListEntity = JSONObject.parseObject(JSONObject.toJSONString(distributionStockList), DistributionStockListEntity.class); |
|
|
|
|
return baseMapper.listAllocation(page,distributionStockListEntity); |
|
|
|
|
IPage<DistributionStockListAllocationVO> pageList = null; |
|
|
|
|
|
|
|
|
|
if(Objects.isNull(distributionStockListEntity)){ |
|
|
|
|
log.warn("##################listAllocation: 库存品信息不存在"); |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
String sourceType = distributionStockListEntity.getSourceType(); |
|
|
|
|
if("1".equals(sourceType)){ |
|
|
|
|
pageList = baseMapper.listAllocationOrder(page,distributionStockListEntity); |
|
|
|
|
}else{ |
|
|
|
|
pageList = baseMapper.listAllocation(page,distributionStockListEntity); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return pageList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|