HANDLE, SITE, CALL_ITEM_NO, SHOP_ORDER, SFC, DISPATCH_NO, OPERATION, STEP_ID, RESRCE, COMPONENT_BO, CALL_TYPE, REQUIRED_QTY, REQUIRED_DATE_TIME, STATUS, CALL_STATUS, SEND_STATUS, CREATE_USER_BO, CREATED_DATE_TIME, UPDATE_USER_BO, UPDATED_DATE_TIME
INSERT INTO Z_CALL_ITEM
HANDLE,
SITE,CALL_ITEM_NO,SHOP_ORDER,SFC,DISPATCH_NO,OPERATION,STEP_ID,RESRCE,COMPONENT_BO,CALL_TYPE,REQUIRED_QTY,REQUIRED_DATE_TIME,STATUS,CALL_STATUS,SEND_STATUS,CREATE_USER_BO,CREATED_DATE_TIME,UPDATE_USER_BO,UPDATED_DATE_TIME, VALUES
#{handle},
#{site},#{callItemNo},#{shopOrder},#{sfc},#{dispatchNo},#{operation},#{stepId},#{resrce},#{componentBo},#{callType},#{requiredQty},#{requiredDateTime},#{status},#{callStatus},#{sendStatus},#{createUserBo},#{createdDateTime},#{updateUserBo},#{updatedDateTime},
INSERT INTO Z_CALL_ITEM
VALUES
#{handle},
#{site},
#{callItemNo},
#{shopOrder},
#{sfc},
#{dispatchNo},
#{operation},
#{stepId},
#{resrce},
#{componentBo},
#{callType},
#{requiredQty},
#{requiredDateTime},
#{status},
#{callStatus},
#{sendStatus},
#{createUserBo},
#{createdDateTime},
#{updateUserBo},
#{updatedDateTime},
UPDATE Z_CALL_ITEM SITE=#{et.site},CALL_ITEM_NO=#{et.callItemNo},SHOP_ORDER=#{et.shopOrder},SFC=#{et.sfc},DISPATCH_NO=#{et.dispatchNo},OPERATION=#{et.operation},STEP_ID=#{et.stepId},RESRCE=#{et.resrce},COMPONENT_BO=#{et.componentBo},CALL_TYPE=#{et.callType},REQUIRED_QTY=#{et.requiredQty},REQUIRED_DATE_TIME=#{et.requiredDateTime},STATUS=#{et.status},CALL_STATUS=#{et.callStatus},SEND_STATUS=#{et.sendStatus},CREATE_USER_BO=#{et.createUserBo},CREATED_DATE_TIME=#{et.createdDateTime},UPDATE_USER_BO=#{et.updateUserBo},UPDATED_DATE_TIME=#{et.updatedDateTime}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}
UPDATE Z_CALL_ITEM
SITE=#{et.site},
CALL_ITEM_NO=#{et.callItemNo},
SHOP_ORDER=#{et.shopOrder},
SFC=#{et.sfc},
DISPATCH_NO=#{et.dispatchNo},
OPERATION=#{et.operation},
STEP_ID=#{et.stepId},
RESRCE=#{et.resrce},
COMPONENT_BO=#{et.componentBo},
CALL_TYPE=#{et.callType},
REQUIRED_QTY=#{et.requiredQty},
REQUIRED_DATE_TIME=#{et.requiredDateTime},
STATUS=#{et.status},
CALL_STATUS=#{et.callStatus},
SEND_STATUS=#{et.sendStatus},
CREATE_USER_BO=#{et.createUserBo},
CREATED_DATE_TIME=#{et.createdDateTime},
UPDATE_USER_BO=#{et.updateUserBo},
UPDATED_DATE_TIME=#{et.updatedDateTime},
WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}
UPDATE Z_CALL_ITEM SITE=#{et.site},CALL_ITEM_NO=#{et.callItemNo},SHOP_ORDER=#{et.shopOrder},SFC=#{et.sfc},DISPATCH_NO=#{et.dispatchNo},OPERATION=#{et.operation},STEP_ID=#{et.stepId},RESRCE=#{et.resrce},COMPONENT_BO=#{et.componentBo},CALL_TYPE=#{et.callType},REQUIRED_QTY=#{et.requiredQty},REQUIRED_DATE_TIME=#{et.requiredDateTime},STATUS=#{et.status},CALL_STATUS=#{et.callStatus},SEND_STATUS=#{et.sendStatus},CREATE_USER_BO=#{et.createUserBo},CREATED_DATE_TIME=#{et.createdDateTime},UPDATE_USER_BO=#{et.updateUserBo},UPDATED_DATE_TIME=#{et.updatedDateTime},
HANDLE=#{ew.entity.handle}
AND SITE=#{ew.entity.site} AND CALL_ITEM_NO=#{ew.entity.callItemNo} AND SHOP_ORDER=#{ew.entity.shopOrder} AND SFC=#{ew.entity.sfc} AND DISPATCH_NO=#{ew.entity.dispatchNo} AND OPERATION=#{ew.entity.operation} AND STEP_ID=#{ew.entity.stepId} AND RESRCE=#{ew.entity.resrce} AND COMPONENT_BO=#{ew.entity.componentBo} AND CALL_TYPE=#{ew.entity.callType} AND REQUIRED_QTY=#{ew.entity.requiredQty} AND REQUIRED_DATE_TIME=#{ew.entity.requiredDateTime} AND STATUS=#{ew.entity.status} AND CALL_STATUS=#{ew.entity.callStatus} AND SEND_STATUS=#{ew.entity.sendStatus} AND CREATE_USER_BO=#{ew.entity.createUserBo} AND CREATED_DATE_TIME=#{ew.entity.createdDateTime} AND UPDATE_USER_BO=#{ew.entity.updateUserBo} AND UPDATED_DATE_TIME=#{ew.entity.updatedDateTime}
${ew.sqlSegment}
${ew.sqlSegment}
DELETE FROM Z_CALL_ITEM WHERE HANDLE=#{handle}
DELETE FROM Z_CALL_ITEM
${k} = #{cm[${k}]}
DELETE FROM Z_CALL_ITEM
HANDLE=#{ew.entity.handle}
AND SITE=#{ew.entity.site} AND CALL_ITEM_NO=#{ew.entity.callItemNo} AND SHOP_ORDER=#{ew.entity.shopOrder} AND SFC=#{ew.entity.sfc} AND DISPATCH_NO=#{ew.entity.dispatchNo} AND OPERATION=#{ew.entity.operation} AND STEP_ID=#{ew.entity.stepId} AND RESRCE=#{ew.entity.resrce} AND COMPONENT_BO=#{ew.entity.componentBo} AND CALL_TYPE=#{ew.entity.callType} AND REQUIRED_QTY=#{ew.entity.requiredQty} AND REQUIRED_DATE_TIME=#{ew.entity.requiredDateTime} AND STATUS=#{ew.entity.status} AND CALL_STATUS=#{ew.entity.callStatus} AND SEND_STATUS=#{ew.entity.sendStatus} AND CREATE_USER_BO=#{ew.entity.createUserBo} AND CREATED_DATE_TIME=#{ew.entity.createdDateTime} AND UPDATE_USER_BO=#{ew.entity.updateUserBo} AND UPDATED_DATE_TIME=#{ew.entity.updatedDateTime}
${ew.sqlSegment}
${ew.sqlSegment}
DELETE FROM Z_CALL_ITEM WHERE HANDLE IN (
#{item}
)