HANDLE, SITE, INVENTORY_ID, RESRCE, ITEM, ACTION_CODE, QTY_ON_HAND, LOAD_QTY, CREATE_USER, CREATED_DATE_TIME
INSERT INTO Z_LOAD_INVENTORY_LOG
HANDLE,
SITE,
INVENTORY_ID,
RESRCE,
ITEM,
ACTION_CODE,
QTY_ON_HAND,
LOAD_QTY,
CREATE_USER,
CREATED_DATE_TIME,
VALUES
#{handle},
#{site},
#{inventoryId},
#{resrce},
#{item},
#{actionCode},
#{qtyOnHand},
#{loadQty},
#{createUser},
#{createdDateTime},
INSERT INTO Z_LOAD_INVENTORY_LOG
VALUES
#{handle},
#{site},
#{inventoryId},
#{resrce},
#{item},
#{actionCode},
#{qtyOnHand},
#{loadQty},
#{createUser},
#{createdDateTime},
UPDATE Z_LOAD_INVENTORY_LOG
SITE=#{et.site},
INVENTORY_ID=#{et.inventoryId},
RESRCE=#{et.resrce},
ITEM=#{et.item},
ACTION_CODE=#{et.actionCode},
QTY_ON_HAND=#{et.qtyOnHand},
LOAD_QTY=#{et.loadQty},
CREATE_USER=#{et.createUser},
CREATED_DATE_TIME=#{et.createdDateTime},
WHERE HANDLE=#{et.handle}
and
${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}
UPDATE Z_LOAD_INVENTORY_LOG
SITE=#{et.site},
INVENTORY_ID=#{et.inventoryId},
RESRCE=#{et.resrce},
ITEM=#{et.item},
ACTION_CODE=#{et.actionCode},
QTY_ON_HAND=#{et.qtyOnHand},
LOAD_QTY=#{et.loadQty},
CREATE_USER=#{et.createUser},
CREATED_DATE_TIME=#{et.createdDateTime},
WHERE HANDLE=#{et.handle}
and
${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}
UPDATE Z_LOAD_INVENTORY_LOG
SITE=#{et.site},
INVENTORY_ID=#{et.inventoryId},
RESRCE=#{et.resrce},
ITEM=#{et.item},
ACTION_CODE=#{et.actionCode},
QTY_ON_HAND=#{et.qtyOnHand},
LOAD_QTY=#{et.loadQty},
CREATE_USER=#{et.createUser},
CREATED_DATE_TIME=#{et.createdDateTime},
HANDLE=#{ew.entity.handle}
AND SITE=#{ew.entity.site}
AND INVENTORY_ID=#{ew.entity.inventoryId}
AND RESRCE=#{ew.entity.resrce}
AND ITEM=#{ew.entity.item}
AND ACTION_CODE=#{ew.entity.actionCode}
AND QTY_ON_HAND=#{ew.entity.qtyOnHand}
AND LOAD_QTY=#{ew.entity.loadQty}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
${ew.sqlSegment}
${ew.sqlSegment}
DELETE FROM Z_LOAD_INVENTORY_LOG WHERE HANDLE=#{handle}
DELETE FROM Z_LOAD_INVENTORY_LOG
${k} = #{cm[${k}]}
DELETE FROM Z_LOAD_INVENTORY_LOG
HANDLE=#{ew.entity.handle}
AND SITE=#{ew.entity.site}
AND INVENTORY_ID=#{ew.entity.inventoryId}
AND RESRCE=#{ew.entity.resrce}
AND ITEM=#{ew.entity.item}
AND ACTION_CODE=#{ew.entity.actionCode}
AND QTY_ON_HAND=#{ew.entity.qtyOnHand}
AND LOAD_QTY=#{ew.entity.loadQty}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
${ew.sqlSegment}
${ew.sqlSegment}
DELETE FROM Z_LOAD_INVENTORY_LOG WHERE HANDLE IN (
#{item}
)