This commit is contained in:
邹宗楠
2024-08-20 18:15:56 +08:00
parent 0bdb3b6629
commit b85dc4d5c2
3 changed files with 6 additions and 1 deletions

View File

@@ -1401,6 +1401,7 @@ func (c *OrderManager) AmendMissingOrders(ctx *jxcontext.Context, vendorIDs []in
VendorOrgCode string
VendorStoreID string
}
globals.SugarLogger.Debugf("--------------dateVendorList := %s", utils.Format4Output(dateVendorList, false))
if len(dateVendorList) > 0 {
var missingOrderList []*tOrderVendorPair
var updateOrderStatusList []*model.GoodsOrder

View File

@@ -793,6 +793,10 @@ func (c *PurchaseHandler) ListOrders(ctx *jxcontext.Context, vendorOrgCode strin
//}
tmpOrderIDs, _ := getAPI(vendorOrgCode, 0, vendorStoreID).EcommerceGetOrderIdByPage(vendorStoreID, queryDate, endData)
globals.SugarLogger.Debugf("-------------------tmpOrderIDs := %s", utils.Format4Output(tmpOrderIDs, false))
globals.SugarLogger.Debugf("-------------------queryDate := %s", utils.Format4Output(queryDate, false))
globals.SugarLogger.Debugf("-------------------endData := %s", utils.Format4Output(endData, false))
globals.SugarLogger.Debugf("-------------------vendorStoreID := %s", utils.Format4Output(vendorStoreID, false))
if len(tmpOrderIDs) > 0 {
for _, v := range tmpOrderIDs {
orderIDs = append(orderIDs, utils.Int64ToStr(v))

View File

@@ -83,7 +83,7 @@ func (c *OrderController) SelfDelivered() {
bills, _ := dao.GetWaybills(dao.GetDB(), params.VendorOrderID, nil)
for _, b := range bills {
if b.WaybillVendorID == model.VendorJXFakeWL && b.Status < model.OrderStatusDelivering {
return nil, "", fmt.Errorf("物流单正在同步回传率,请稍后再点击送达")
return nil, "-1", fmt.Errorf("物流单正在同步回传率,请稍后再点击送达")
}
}