HANDLE, SITE, RESOURCE_BO, RESRCE, RESRCE_DESCRIPTION, USER_ID, USER_DESCRIPTION, TEMPORARY_USER, STATUS, CREATED_USER, CREATED_DATE_TIME, MODIFIED_USER, MODIFIED_DATE_TIME
INSERT INTO Z_USER_RESOURCE
HANDLE,
SITE,RESOURCE_BO,RESRCE,RESRCE_DESCRIPTION,USER_ID,USER_DESCRIPTION,TEMPORARY_USER,STATUS,CREATED_USER,CREATED_DATE_TIME,MODIFIED_USER,MODIFIED_DATE_TIME, VALUES
#{handle},
#{site},#{resourceBo},#{resrce},#{resrceDescription},#{userId},#{userDescription},#{temporaryUser},#{status},#{createdUser},#{createdDateTime},#{modifiedUser},#{modifiedDateTime},
INSERT INTO Z_USER_RESOURCE
VALUES
#{handle},
#{site},
#{resourceBo},
#{resrce},
#{resrceDescription},
#{userId},
#{userDescription},
#{temporaryUser},
#{status},
#{createdUser},
#{createdDateTime},
#{modifiedUser},
#{modifiedDateTime},
UPDATE Z_USER_RESOURCE SITE=#{et.site},RESOURCE_BO=#{et.resourceBo},RESRCE=#{et.resrce},RESRCE_DESCRIPTION=#{et.resrceDescription},USER_ID=#{et.userId},USER_DESCRIPTION=#{et.userDescription},TEMPORARY_USER=#{et.temporaryUser},STATUS=#{et.status},CREATED_USER=#{et.createdUser},CREATED_DATE_TIME=#{et.createdDateTime},MODIFIED_USER=#{et.modifiedUser},MODIFIED_DATE_TIME=#{et.modifiedDateTime}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}
UPDATE Z_USER_RESOURCE
SITE=#{et.site},
RESOURCE_BO=#{et.resourceBo},
RESRCE=#{et.resrce},
RESRCE_DESCRIPTION=#{et.resrceDescription},
USER_ID=#{et.userId},
USER_DESCRIPTION=#{et.userDescription},
TEMPORARY_USER=#{et.temporaryUser},
STATUS=#{et.status},
CREATED_USER=#{et.createdUser},
CREATED_DATE_TIME=#{et.createdDateTime},
MODIFIED_USER=#{et.modifiedUser},
MODIFIED_DATE_TIME=#{et.modifiedDateTime},
WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}
UPDATE Z_USER_RESOURCE SITE=#{et.site},RESOURCE_BO=#{et.resourceBo},RESRCE=#{et.resrce},RESRCE_DESCRIPTION=#{et.resrceDescription},USER_ID=#{et.userId},USER_DESCRIPTION=#{et.userDescription},TEMPORARY_USER=#{et.temporaryUser},STATUS=#{et.status},CREATED_USER=#{et.createdUser},CREATED_DATE_TIME=#{et.createdDateTime},MODIFIED_USER=#{et.modifiedUser},MODIFIED_DATE_TIME=#{et.modifiedDateTime},
HANDLE=#{ew.entity.handle}
AND SITE=#{ew.entity.site} AND RESOURCE_BO=#{ew.entity.resourceBo} AND RESRCE=#{ew.entity.resrce} AND RESRCE_DESCRIPTION=#{ew.entity.resrceDescription} AND USER_ID=#{ew.entity.userId} AND USER_DESCRIPTION=#{ew.entity.userDescription} AND TEMPORARY_USER=#{ew.entity.temporaryUser} AND STATUS=#{ew.entity.status} AND CREATED_USER=#{ew.entity.createdUser} AND CREATED_DATE_TIME=#{ew.entity.createdDateTime} AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
${ew.sqlSegment}
${ew.sqlSegment}
DELETE FROM Z_USER_RESOURCE WHERE HANDLE=#{handle}
DELETE FROM Z_USER_RESOURCE
${k} = #{cm[${k}]}
DELETE FROM Z_USER_RESOURCE
HANDLE=#{ew.entity.handle}
AND SITE=#{ew.entity.site} AND RESOURCE_BO=#{ew.entity.resourceBo} AND RESRCE=#{ew.entity.resrce} AND RESRCE_DESCRIPTION=#{ew.entity.resrceDescription} AND USER_ID=#{ew.entity.userId} AND USER_DESCRIPTION=#{ew.entity.userDescription} AND TEMPORARY_USER=#{ew.entity.temporaryUser} AND STATUS=#{ew.entity.status} AND CREATED_USER=#{ew.entity.createdUser} AND CREATED_DATE_TIME=#{ew.entity.createdDateTime} AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
${ew.sqlSegment}
${ew.sqlSegment}
DELETE FROM Z_USER_RESOURCE WHERE HANDLE IN (
#{item}
)