- GetMissingStoreSkuFromOrder的fromTime是强制参数
This commit is contained in:
@@ -394,9 +394,9 @@ func GetStoresSkusInfo(db *DaoDB, storeIDs, skuIDs []int) (storeSkuList []*model
|
||||
}
|
||||
|
||||
func GetMissingStoreSkuFromOrder(db *DaoDB, storeIDs []int, fromTime time.Time) (storeSkuList []*MissingStoreSkuInfo, err error) {
|
||||
// if time.Now().Sub(fromTime) > 24*time.Hour*60 {
|
||||
// return nil, fmt.Errorf("GetMissingStoreSkuFromOrder,时间超过60天")
|
||||
// }
|
||||
if time.Now().Sub(fromTime) > 24*time.Hour*60 {
|
||||
return nil, fmt.Errorf("GetMissingStoreSkuFromOrder,时间超过60天")
|
||||
}
|
||||
sql := `
|
||||
SELECT IF(t2.jx_store_id <> 0, t2.jx_store_id, t2.store_id) store_id, t4.name_id, t1.sku_id,
|
||||
t4.spec_quality, t4.spec_unit, t5.unit,
|
||||
|
||||
Reference in New Issue
Block a user