|
|
|
@ -22,6 +22,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.OrderPackageDTO; |
|
|
|
|
import com.logpm.distribution.entity.DistributionParcelListEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionStockArticleEntity; |
|
|
|
|
import com.logpm.distribution.service.IDistributionParcelListService; |
|
|
|
@ -33,10 +34,7 @@ import org.springblade.core.mp.support.BladePage;
|
|
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
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 org.springframework.web.bind.annotation.*; |
|
|
|
|
import springfox.documentation.annotations.ApiIgnore; |
|
|
|
|
|
|
|
|
|
import java.util.*; |
|
|
|
@ -111,12 +109,12 @@ public class DistributionParcelListClient implements IDistributionParcelListClie
|
|
|
|
|
return distributionParcelListService.getOne(queryWrapper); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping(API_PREFIX+"/findByPacketBarCodesAndWarehouseId") |
|
|
|
|
@Override |
|
|
|
|
public List<DistributionParcelListEntity> findByPacketBarCodesAndWarehouseId(List<String> unitNos, Long warehouseId) { |
|
|
|
|
public List<DistributionParcelListEntity> findByPacketBarCodesAndWarehouseId( OrderPackageDTO orderPackageDTO) { |
|
|
|
|
QueryWrapper<DistributionParcelListEntity> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
queryWrapper.in("order_package_code",unitNos) |
|
|
|
|
.eq("warehouse_id",warehouseId); |
|
|
|
|
queryWrapper.in("order_package_code",orderPackageDTO.getStrings()) |
|
|
|
|
.eq("warehouse_id",orderPackageDTO.getWarehouseId()); |
|
|
|
|
return distributionParcelListService.list(queryWrapper); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|