HANDLE, SITE, ABNORMAL_BILL_BO, NC_CODE_GROUP, NC_CODE, NC_QTY, CREATED_USER, CREATED_DATE_TIME, MODIFIED_USER, MODIFIED_DATE_TIME INSERT INTO Z_ABNORMAL_NC_CODE HANDLE, SITE, ABNORMAL_BILL_BO, NC_CODE_GROUP, NC_CODE, NC_QTY, CREATED_USER, CREATED_DATE_TIME, MODIFIED_USER, MODIFIED_DATE_TIME, VALUES #{handle}, #{site}, #{abnormalBillBo}, #{ncCodeGroup}, #{ncCode}, #{ncQty}, #{createdUser}, #{createdDateTime}, #{modifiedUser}, #{modifiedDateTime}, INSERT INTO Z_ABNORMAL_NC_CODE VALUES #{handle}, #{site}, #{abnormalBillBo}, #{ncCodeGroup}, #{ncCode}, #{ncQty}, #{createdUser}, #{createdDateTime}, #{modifiedUser}, #{modifiedDateTime}, UPDATE Z_ABNORMAL_NC_CODE SITE=#{et.site}, ABNORMAL_BILL_BO=#{et.abnormalBillBo}, NC_CODE_GROUP=#{et.ncCodeGroup}, NC_CODE=#{et.ncCode}, NC_QTY=#{et.ncQty}, 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_ABNORMAL_NC_CODE SITE=#{et.site}, ABNORMAL_BILL_BO=#{et.abnormalBillBo}, NC_CODE_GROUP=#{et.ncCodeGroup}, NC_CODE=#{et.ncCode}, NC_QTY=#{et.ncQty}, 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_ABNORMAL_NC_CODE SITE=#{et.site}, ABNORMAL_BILL_BO=#{et.abnormalBillBo}, NC_CODE_GROUP=#{et.ncCodeGroup}, NC_CODE=#{et.ncCode}, NC_QTY=#{et.ncQty}, 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 ABNORMAL_BILL_BO=#{ew.entity.abnormalBillBo} AND NC_CODE_GROUP=#{ew.entity.ncCodeGroup} AND NC_CODE=#{ew.entity.ncCode} AND NC_QTY=#{ew.entity.ncQty} 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_ABNORMAL_NC_CODE WHERE HANDLE=#{handle} DELETE FROM Z_ABNORMAL_NC_CODE ${k} = #{cm[${k}]} DELETE FROM Z_ABNORMAL_NC_CODE HANDLE=#{ew.entity.handle} AND SITE=#{ew.entity.site} AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillBo} AND NC_CODE_GROUP=#{ew.entity.ncCodeGroup} AND NC_CODE=#{ew.entity.ncCode} AND NC_QTY=#{ew.entity.ncQty} 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_ABNORMAL_NC_CODE WHERE HANDLE IN ( #{item} )