HANDLE, SITE, SFC_DISPATCH_BO, STATUS, INVENTORY_BO, ASSEMBLE_QTY, ITEM_BO, CREATED_DATE_TIME, CREATED_USER,
MODIFIED_DATE_TIME, MODIFY_USER, SEQ
INSERT INTO Z_SFC_DATA_ASSEMBLE
HANDLE,
SITE,
SFC_DISPATCH_BO,
STATUS,
INVENTORY_BO,
ASSEMBLE_QTY,
ITEM_BO,
CREATED_DATE_TIME,
CREATED_USER,
MODIFIED_DATE_TIME,
MODIFY_USER,
SEQ,
VALUES
#{handle},
#{site},
#{sfcDispatchBo},
#{status},
#{inventoryBo},
#{assembleQty},
#{itemBo},
#{createdDateTime},
#{createdUser},
#{modifiedDateTime},
#{modifyUser},
#{seq},
INSERT INTO Z_SFC_DATA_ASSEMBLE
VALUES
#{handle},
#{site},
#{sfcDispatchBo},
#{status},
#{inventoryBo},
#{assembleQty},
#{itemBo},
#{createdDateTime},
#{createdUser},
#{modifiedDateTime},
#{modifyUser},
#{seq},
UPDATE Z_SFC_DATA_ASSEMBLE
SITE=#{et.site},
SFC_DISPATCH_BO=#{et.sfcDispatchBo},
STATUS=#{et.status},
INVENTORY_BO=#{et.inventoryBo},
ASSEMBLE_QTY=#{et.assembleQty},
ITEM_BO=#{et.itemBo},
CREATED_DATE_TIME=#{et.createdDateTime},
CREATED_USER=#{et.createdUser},
MODIFIED_DATE_TIME=#{et.modifiedDateTime},
MODIFY_USER=#{et.modifyUser},
SEQ=#{et.seq},
WHERE HANDLE=#{et.handle}
and
${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}
UPDATE Z_SFC_DATA_ASSEMBLE
SITE=#{et.site},
SFC_DISPATCH_BO=#{et.sfcDispatchBo},
STATUS=#{et.status},
INVENTORY_BO=#{et.inventoryBo},
ASSEMBLE_QTY=#{et.assembleQty},
ITEM_BO=#{et.itemBo},
CREATED_DATE_TIME=#{et.createdDateTime},
CREATED_USER=#{et.createdUser},
MODIFIED_DATE_TIME=#{et.modifiedDateTime},
MODIFY_USER=#{et.modifyUser},
SEQ=#{et.seq},
WHERE HANDLE=#{et.handle}
and
${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}
UPDATE Z_SFC_DATA_ASSEMBLE
SITE=#{et.site},
SFC_DISPATCH_BO=#{et.sfcDispatchBo},
STATUS=#{et.status},
INVENTORY_BO=#{et.inventoryBo},
ASSEMBLE_QTY=#{et.assembleQty},
ITEM_BO=#{et.itemBo},
CREATED_DATE_TIME=#{et.createdDateTime},
CREATED_USER=#{et.createdUser},
MODIFIED_DATE_TIME=#{et.modifiedDateTime},
MODIFY_USER=#{et.modifyUser},
SEQ=#{et.seq},
HANDLE=#{ew.entity.handle}
AND SITE=#{ew.entity.site}
AND SFC_DISPATCH_BO=#{ew.entity.sfcDispatchBo}
AND STATUS=#{ew.entity.status}
AND INVENTORY_BO=#{ew.entity.inventoryBo}
AND ASSEMBLE_QTY=#{ew.entity.assembleQty}
AND ITEM_BO=#{ew.entity.itemBo}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND CREATED_USER=#{ew.entity.createdUser}
AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
AND MODIFY_USER=#{ew.entity.modifyUser}
AND SEQ=#{ew.entity.seq}
${ew.sqlSegment}
${ew.sqlSegment}
DELETE FROM Z_SFC_DATA_ASSEMBLE WHERE HANDLE=#{handle}
DELETE FROM Z_SFC_DATA_ASSEMBLE
${k} = #{cm[${k}]}
DELETE FROM Z_SFC_DATA_ASSEMBLE
HANDLE=#{ew.entity.handle}
AND SITE=#{ew.entity.site}
AND SFC_DISPATCH_BO=#{ew.entity.sfcDispatchBo}
AND STATUS=#{ew.entity.status}
AND INVENTORY_BO=#{ew.entity.inventoryBo}
AND ASSEMBLE_QTY=#{ew.entity.assembleQty}
AND ITEM_BO=#{ew.entity.itemBo}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND CREATED_USER=#{ew.entity.createdUser}
AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
AND MODIFY_USER=#{ew.entity.modifyUser}
AND SEQ=#{ew.entity.seq}
${ew.sqlSegment}
${ew.sqlSegment}
DELETE FROM Z_SFC_DATA_ASSEMBLE WHERE HANDLE IN (
#{item}
)