|
@@ -47,12 +47,12 @@ public class BizInboundOrderController extends BaseController {
|
|
|
}
|
|
|
// 根据托盘编码获取入库单列表
|
|
|
List<BizInboundOrder> list = bizInboundOrderService.query().eq("transfer_code", bizInboundOrder.getPalletCode()).eq("is_all_inbound", 0).list();
|
|
|
- List<BizInboundOrderDetail> detailList = bizInboundOrderDetailService.query().in("inbound_order_id", list.stream().map(BizInboundOrder::getId).collect(Collectors.toList())).list();
|
|
|
- List<BizCertificate> bizCertificateList = bizCertificateService.query().in("id", detailList.stream().map(BizInboundOrderDetail::getCertificateId).collect(Collectors.toList())).list();
|
|
|
-
|
|
|
if (list.isEmpty()) {
|
|
|
return error("没有找到托盘码对应入库单");
|
|
|
}
|
|
|
+ List<BizInboundOrderDetail> detailList = bizInboundOrderDetailService.query().in("inbound_order_id", list.stream().map(BizInboundOrder::getId).collect(Collectors.toList())).list();
|
|
|
+ List<BizCertificate> bizCertificateList = bizCertificateService.query().in("id", detailList.stream().map(BizInboundOrderDetail::getCertificateId).collect(Collectors.toList())).list();
|
|
|
+
|
|
|
List<Map<String, Object>> inboundList = new ArrayList<>();
|
|
|
list.forEach(l -> {
|
|
|
Map<String, Object> map = new HashMap<>();
|