浏览代码

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


正在加载...
取消
保存