This commit is contained in:
苏尹岚
2020-12-14 15:26:10 +08:00
parent 3a098b1a42
commit 0601ba4473

View File

@@ -267,8 +267,8 @@ func getStoresSql(ctx *jxcontext.Context, keyword string, params map[string]inte
}
}
sqlFrom += "\nLEFT JOIN " + tableName + " " + tableAlias + " ON " + tableAlias + ".vendor_id = ? AND " +
tableAlias + ".store_id = t1.id AND " + tableAlias + ".deleted_at = ? AND " +
tableAlias + ".is_sync <> 0 "
tableAlias + ".store_id = t1.id AND " + tableAlias + ".deleted_at = ? AND "
// +tableAlias + ".is_sync <> 0 "
sqlFromParams = append(sqlFromParams, vendor, utils.DefaultTimeValue)
if cond == "1" {
sqlVendorStoreCond += " " + mapCond + " " + tableAlias + ".id IS NOT NULL"