u
This commit is contained in:
@@ -174,37 +174,37 @@ WHERE a.sku = @sku
|
||||
|
||||
export const UPDATE_WEIGHT = `
|
||||
UPDATE article
|
||||
SET weight = @weight
|
||||
SET weight = @weight, updated_at = SYSUTCDATETIME()
|
||||
WHERE id = @articleId
|
||||
`;
|
||||
|
||||
export const UPDATE_TRACK_STOCK = `
|
||||
UPDATE article
|
||||
SET track_stock = @trackStock
|
||||
SET track_stock = @trackStock, updated_at = SYSUTCDATETIME()
|
||||
WHERE id = @articleId
|
||||
`;
|
||||
|
||||
export const UPDATE_BRAND = `
|
||||
UPDATE article
|
||||
SET brand_id = @brandId
|
||||
SET brand_id = @brandId, updated_at = SYSUTCDATETIME()
|
||||
WHERE id = @articleId
|
||||
`;
|
||||
|
||||
export const UPDATE_UNIT = `
|
||||
UPDATE article
|
||||
SET unit_id = @unitId
|
||||
SET unit_id = @unitId, updated_at = SYSUTCDATETIME()
|
||||
WHERE id = @articleId
|
||||
`;
|
||||
|
||||
export const UPDATE_UNITAMOUNT = `
|
||||
UPDATE article
|
||||
SET unitamount = @unitamount
|
||||
SET unitamount = @unitamount, updated_at = SYSUTCDATETIME()
|
||||
WHERE id = @articleId
|
||||
`;
|
||||
|
||||
export const UPDATE_UNIT_AND_AMOUNT = `
|
||||
UPDATE article
|
||||
SET unit_id = @unitId, unitamount = @unitamount
|
||||
SET unit_id = @unitId, unitamount = @unitamount, updated_at = SYSUTCDATETIME()
|
||||
WHERE id = @articleId
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user