1
This commit is contained in:
@@ -13,8 +13,8 @@ func GetBadCommentOrderId(jxStoreId int, startTime, endTime time.Time, foodNameL
|
|||||||
order_sku_financial WHERE jx_store_id = ? AND created_at >= ? AND created_at <= ? AND name IN (` + dao.GenQuestionMarks(len(foodNameList)) + `)" GROUP BY vendor_order_id LIMIT 0, 1000`
|
order_sku_financial WHERE jx_store_id = ? AND created_at >= ? AND created_at <= ? AND name IN (` + dao.GenQuestionMarks(len(foodNameList)) + `)" GROUP BY vendor_order_id LIMIT 0, 1000`
|
||||||
sqlParams = append(sqlParams, []interface{}{
|
sqlParams = append(sqlParams, []interface{}{
|
||||||
jxStoreId,
|
jxStoreId,
|
||||||
startTime,
|
|
||||||
endTime,
|
endTime,
|
||||||
|
startTime,
|
||||||
foodNameList,
|
foodNameList,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -99,7 +99,9 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
vendorOrderID, _ := dao.GetBadCommentOrderId(storeDetail.ID, startTime, endTime, foodNameList)
|
vendorOrderID, _ := dao.GetBadCommentOrderId(storeDetail.ID, startTime, endTime, foodNameList)
|
||||||
orderComment.VendorOrderID = fmt.Sprintf("%s:%s", vendorOrderID, orderComment.VendorOrderID)
|
if vendorOrderID != "" {
|
||||||
|
orderComment.VendorOrderID = fmt.Sprintf("%s:%s", vendorOrderID, orderComment.VendorOrderID)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
orderCommentList = append(orderCommentList, orderComment)
|
orderCommentList = append(orderCommentList, orderComment)
|
||||||
|
|||||||
Reference in New Issue
Block a user