- don't mark sync status when directly deleted in CopyStoreSkus

This commit is contained in:
gazebo
2018-10-31 19:23:18 +08:00
parent fdd50744f0
commit c0d5fc60b0
4 changed files with 24 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ func (p *PurchaseHandler) SyncStoreSkus(ctx *jxcontext.Context, parentTask tasks
SELECT t1.*, t2.price_percentage, t2.vendor_store_id
FROM store_sku_bind t1
JOIN store_map t2 ON t1.store_id = t2.store_id AND t2.vendor_id = ? AND t2.deleted_at = ?
` + sqlWhere
` + sqlWhere + " ORDER BY t1.updated_at"
var storeSkus []*tStoreSkuBindExt
sqlParams := []interface{}{
model.VendorIDJD,