|
|
|
@ -650,12 +650,14 @@ public class PurchaseOrderServiceImpl implements PurchaseOrderService {
|
|
|
|
|
return new HashMap<>();
|
|
|
|
|
}
|
|
|
|
|
StringBuilder where = new StringBuilder();
|
|
|
|
|
if (ObjectUtil.isNotEmpty(filter)) {
|
|
|
|
|
if (ObjectUtil.isNotEmpty(filter.getPurchaseStartTime())) {
|
|
|
|
|
where.append(String.format(" and purchase_order_start_time >= '%s'", DateUtil.formatDateTime(filter.getPurchaseStartTime())));
|
|
|
|
|
}
|
|
|
|
|
if (ObjectUtil.isNotEmpty(filter.getPurchaseEndTime())) {
|
|
|
|
|
where.append(String.format(" and purchase_order_start_time <= '%s'", DateUtil.formatDateTime(filter.getPurchaseEndTime())));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
List<PurchaseOrderBO> purchaseOrders = purchaseOrderMapper.selectPurchaseOrders(shopIds, orderIds, StatusConst.normal, where.toString());
|
|
|
|
|
if (ObjectUtil.isEmpty(purchaseOrders)) {
|
|
|
|
|
return new HashMap<>();
|
|
|
|
|