瀏覽代碼

update

create_edit_user
cyril.tsui 2 月之前
父節點
當前提交
c235cb2f43
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      src/main/resources/db/changelog/changes/20250529_01_cyril/02_create_inventory_lot_line_trigger_for_insert.sql
  2. +1
    -1
      src/main/resources/db/changelog/changes/20250529_01_cyril/03_create_inventory_lot_line_trigger_for_update.sql

+ 1
- 1
src/main/resources/db/changelog/changes/20250529_01_cyril/02_create_inventory_lot_line_trigger_for_insert.sql 查看文件

@@ -83,7 +83,7 @@ begin
0 AS cpm,
ti.currencyName AS cpmUnit,
ti.uomId AS uomId,
if(coalesce(ti.qty, 0) > 0, 'Y', 'N') AS status
if(coalesce(ti.qty, 0) > 0, 'Available', 'Unavailable') AS status
from `temp_inventory` ti;
else
update `inventory` i


+ 1
- 1
src/main/resources/db/changelog/changes/20250529_01_cyril/03_create_inventory_lot_line_trigger_for_update.sql 查看文件

@@ -85,7 +85,7 @@ begin
0 as cpm,
ti.currencyName as cpmUnit,
ti.uomId as uomId,
if(coalesce(ti.currentQty, 0) > 0, 'Y', 'N') as status
if(coalesce(ti.currentQty, 0) > 0, 'available', 'unavailable') as status
from `temp_inventory` ti;
else
update `inventory` i


Loading…
取消
儲存