1
This commit is contained in:
@@ -1606,23 +1606,23 @@ func InsertIntoFreightTemplate(storeID int, vendorStoreID string, templateID, wa
|
||||
|
||||
if templateID != 0 {
|
||||
templateIDSql := ` a.template_id = ? `
|
||||
sqlParams = append(sqlParams, templateIDSql)
|
||||
sqlStr = append(sqlStr, sql)
|
||||
sqlParams = append(sqlParams, templateID)
|
||||
sqlStr = append(sqlStr, templateIDSql)
|
||||
}
|
||||
if warehouseID != 0 {
|
||||
warehouseIDSql := ` a.warehouse_id = ? `
|
||||
sqlParams = append(sqlParams, warehouseIDSql)
|
||||
sqlStr = append(sqlStr, sql)
|
||||
sqlParams = append(sqlParams, warehouseID)
|
||||
sqlStr = append(sqlStr, warehouseIDSql)
|
||||
}
|
||||
if fenceID != 0 {
|
||||
fenceIDSql := ` a.fence_id = ?`
|
||||
sqlParams = append(sqlParams, fenceIDSql)
|
||||
sqlStr = append(sqlStr, sql)
|
||||
sqlParams = append(sqlParams, fenceID)
|
||||
sqlStr = append(sqlStr, fenceIDSql)
|
||||
}
|
||||
if tradeLimitID != 0 {
|
||||
sql += ` a.fence_id = ? `
|
||||
sqlParams = append(sqlParams, templateID)
|
||||
sqlStr = append(sqlStr, sql)
|
||||
tradeLimitIDSql := ` a.fence_id = ? `
|
||||
sqlParams = append(sqlParams, tradeLimitID)
|
||||
sqlStr = append(sqlStr, tradeLimitIDSql)
|
||||
}
|
||||
tStr = "WHERE a.store_id = ? AND a.vendor_store_id = ?"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user