HANDLE, SITE, PICTURE_PATH, PICTURE_ADDRESS, OBJECT_BO, NUM, TYPE, CREATED_USER, CREATED_DATE_TIME, MODIFIED_USER, MODIFIED_DATE_TIME, STATUS INSERT INTO Z_UPLOAD_PICTURES HANDLE, SITE, PICTURE_PATH, PICTURE_ADDRESS, OBJECT_BO, NUM, TYPE, CREATED_USER, CREATED_DATE_TIME, MODIFIED_USER, MODIFIED_DATE_TIME, STATUS, VALUES #{handle}, #{site}, #{picturePath}, #{pictureAddress}, #{objectBo}, #{num}, #{type}, #{createdUser}, #{createdDateTime}, #{modifiedUser}, #{modifiedDateTime}, #{status}, INSERT INTO Z_UPLOAD_PICTURES VALUES #{handle}, #{site}, #{picturePath}, #{pictureAddress}, #{objectBo}, #{num}, #{type}, #{createdUser}, #{createdDateTime}, #{modifiedUser}, #{modifiedDateTime}, #{status}, UPDATE Z_UPLOAD_PICTURES SITE=#{et.site}, PICTURE_PATH=#{et.picturePath}, PICTURE_ADDRESS=#{et.pictureAddress}, OBJECT_BO=#{et.objectBo}, NUM=#{et.num}, TYPE=#{et.type}, CREATED_USER=#{et.createdUser}, CREATED_DATE_TIME=#{et.createdDateTime}, MODIFIED_USER=#{et.modifiedUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, STATUS=#{et.status}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL} UPDATE Z_UPLOAD_PICTURES SITE=#{et.site}, PICTURE_PATH=#{et.picturePath}, PICTURE_ADDRESS=#{et.pictureAddress}, OBJECT_BO=#{et.objectBo}, NUM=#{et.num}, TYPE=#{et.type}, CREATED_USER=#{et.createdUser}, CREATED_DATE_TIME=#{et.createdDateTime}, MODIFIED_USER=#{et.modifiedUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, STATUS=#{et.status}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL} UPDATE Z_UPLOAD_PICTURES SITE=#{et.site}, PICTURE_PATH=#{et.picturePath}, PICTURE_ADDRESS=#{et.pictureAddress}, OBJECT_BO=#{et.objectBo}, NUM=#{et.num}, TYPE=#{et.type}, CREATED_USER=#{et.createdUser}, CREATED_DATE_TIME=#{et.createdDateTime}, MODIFIED_USER=#{et.modifiedUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, STATUS=#{et.status}, HANDLE=#{ew.entity.handle} AND SITE=#{ew.entity.site} AND PICTURE_PATH=#{ew.entity.picturePath} AND PICTURE_ADDRESS=#{ew.entity.pictureAddress} AND OBJECT_BO=#{ew.entity.objectBo} AND NUM=#{ew.entity.num} AND TYPE=#{ew.entity.type} 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} AND STATUS=#{ew.entity.status} ${ew.sqlSegment} ${ew.sqlSegment} DELETE FROM Z_UPLOAD_PICTURES WHERE HANDLE=#{handle} DELETE FROM Z_UPLOAD_PICTURES ${k} = #{cm[${k}]} DELETE FROM Z_UPLOAD_PICTURES HANDLE=#{ew.entity.handle} AND SITE=#{ew.entity.site} AND PICTURE_PATH=#{ew.entity.picturePath} AND PICTURE_ADDRESS=#{ew.entity.pictureAddress} AND OBJECT_BO=#{ew.entity.objectBo} AND NUM=#{ew.entity.num} AND TYPE=#{ew.entity.type} 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} AND STATUS=#{ew.entity.status} ${ew.sqlSegment} ${ew.sqlSegment} DELETE FROM Z_UPLOAD_PICTURES WHERE HANDLE IN ( #{item} )