采购单同步

20230922-ljl-fixBug
wangchaoxu 1 year ago
parent 78e33de73f
commit 22af68a24f

@ -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<>();

@ -402,7 +402,7 @@
<include refid="Base_Column_List" />
from op_order
where order_id in
<foreach collection="orderIds" item="orderId" index="index" open="(" close=")" separator=",">
<foreach collection="list" item="orderId" index="index" open="(" close=")" separator=",">
#{orderId}
</foreach>
</select>

Loading…
Cancel
Save