|
|
|
@ -23,6 +23,7 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
|
import com.logpm.distribution.dto.FindParamterDTO; |
|
|
|
|
import com.logpm.distribution.dto.OrderPackageDTO; |
|
|
|
|
import com.logpm.distribution.entity.DistributionParcelListEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionStockArticleEntity; |
|
|
|
@ -36,7 +37,10 @@ import org.springblade.core.mp.support.Condition;
|
|
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
import springfox.documentation.annotations.ApiIgnore; |
|
|
|
|
|
|
|
|
|
import java.util.*; |
|
|
|
@ -423,25 +427,25 @@ public class DistributionParcelListClient implements IDistributionParcelListClie
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<DistributionParcelListEntity> findListByOrderCodesAndWarehouseId(Set<String> orderCodeSet, Long warehouseId) { |
|
|
|
|
public List<DistributionParcelListEntity> findListByOrderCodesAndWarehouseId(FindParamterDTO findParamterDTO) { |
|
|
|
|
QueryWrapper<DistributionParcelListEntity> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
queryWrapper.in("order_code", orderCodeSet) |
|
|
|
|
.eq("warehouse_id", warehouseId); |
|
|
|
|
queryWrapper.in("order_code", findParamterDTO.getOrderCodeSet()) |
|
|
|
|
.eq("warehouse_id", findParamterDTO.getWarehouseId()); |
|
|
|
|
|
|
|
|
|
return distributionParcelListService.list(queryWrapper); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<DistributionParcelListEntity> findListByOrderPackageCodeList(List<String> orderPackageCodeList, Long warehouseId) { |
|
|
|
|
public List<DistributionParcelListEntity> findListByOrderPackageCodeList(FindParamterDTO findParamterDTO) { |
|
|
|
|
QueryWrapper<DistributionParcelListEntity> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
queryWrapper.in("order_package_code", orderPackageCodeList) |
|
|
|
|
.eq("warehouse_id", warehouseId); |
|
|
|
|
queryWrapper.in("order_package_code", findParamterDTO.getOrderPackageCodeList()) |
|
|
|
|
.eq("warehouse_id", findParamterDTO.getWarehouseId()); |
|
|
|
|
|
|
|
|
|
return distributionParcelListService.list(queryWrapper); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<DistributionParcelListEntity> findALLNoUpShelfPackageByOrderCodeList(List<String> orderCodeList, Long warehouseId) { |
|
|
|
|
return distributionParcelListService.findALLNoUpShelfPackageByOrderCodeList(orderCodeList,warehouseId); |
|
|
|
|
public List<DistributionParcelListEntity> findALLNoUpShelfPackageByOrderCodeList(FindParamterDTO findParamterDTO) { |
|
|
|
|
return distributionParcelListService.findALLNoUpShelfPackageByOrderCodeList(findParamterDTO.getOrderCodeList(),findParamterDTO.getWarehouseId()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|