HANDLE, SITE, ABNORMAL_BILL_BO, DUTY_USER, DUTY_DATE_TIME, DUTY_DEPART, DUTY_TYPE, PRINCIPAL_USER, DUTY_CAUSE_DESCRIPTION, DUTY_CAUSE_TYPE, DUTY_SEND_USER_GROUP, RESOLVE_USER, RESOLVE_DATE_TIME, ABNORMAL_METHOD, ROUTER_BO, RESOLVE_SHOP_ORDER, RESOLVE_REMARK, RESOLVE_SEND_USER, CLOSED_USER, CLOSED_DATE_TIME, ABNORMAL_REASON, BEFORE_MEASURE, CREATED_USER, CREATED_DATA_TIME, MODIFIED_USER, MODIFIED_DATE_TIME
INSERT INTO Z_ABNORMAL_BILL_DISPOSE
HANDLE,
SITE,ABNORMAL_BILL_BO,DUTY_USER,DUTY_DATE_TIME,DUTY_DEPART,DUTY_TYPE,PRINCIPAL_USER,DUTY_CAUSE_DESCRIPTION,DUTY_CAUSE_TYPE,DUTY_SEND_USER_GROUP,RESOLVE_USER,RESOLVE_DATE_TIME,ABNORMAL_METHOD,ROUTER_BO,RESOLVE_SHOP_ORDER,RESOLVE_REMARK,RESOLVE_SEND_USER,CLOSED_USER,CLOSED_DATE_TIME,ABNORMAL_REASON,BEFORE_MEASURE,CREATED_USER,CREATED_DATA_TIME,MODIFIED_USER,MODIFIED_DATE_TIME, VALUES
#{handle},
#{site},#{abnormalBillBo},#{dutyUser},#{dutyDateTime},#{dutyDepart},#{dutyType},#{principalUser},#{dutyCauseDescription},#{dutyCauseType},#{dutySendUserGroup},#{resolveUser},#{resolveDateTime},#{abnormalMethod},#{routerBo},#{resolveShopOrder},#{resolveRemark},#{resolveSendUser},#{closedUser},#{closedDateTime},#{abnormalReason},#{beforeMeasure},#{createdUser},#{createdDataTime},#{modifiedUser},#{modifiedDateTime},
INSERT INTO Z_ABNORMAL_BILL_DISPOSE
VALUES
#{handle},
#{site},
#{abnormalBillBo},
#{dutyUser},
#{dutyDateTime},
#{dutyDepart},
#{dutyType},
#{principalUser},
#{dutyCauseDescription},
#{dutyCauseType},
#{dutySendUserGroup},
#{resolveUser},
#{resolveDateTime},
#{abnormalMethod},
#{routerBo},
#{resolveShopOrder},
#{resolveRemark},
#{resolveSendUser},
#{closedUser},
#{closedDateTime},
#{abnormalReason},
#{beforeMeasure},
#{createdUser},
#{createdDataTime},
#{modifiedUser},
#{modifiedDateTime},
UPDATE Z_ABNORMAL_BILL_DISPOSE HANDLE=#{et.handle},SITE=#{et.site},ABNORMAL_BILL_BO=#{et.abnormalBillBo},DUTY_USER=#{et.dutyUser},DUTY_DATE_TIME=#{et.dutyDateTime},DUTY_DEPART=#{et.dutyDepart},DUTY_TYPE=#{et.dutyType},PRINCIPAL_USER=#{et.principalUser},DUTY_CAUSE_DESCRIPTION=#{et.dutyCauseDescription},DUTY_CAUSE_TYPE=#{et.dutyCauseType},DUTY_SEND_USER_GROUP=#{et.dutySendUserGroup},RESOLVE_USER=#{et.resolveUser},RESOLVE_DATE_TIME=#{et.resolveDateTime},ABNORMAL_METHOD=#{et.abnormalMethod},ROUTER_BO=#{et.routerBo},RESOLVE_SHOP_ORDER=#{et.resolveShopOrder},RESOLVE_REMARK=#{et.resolveRemark},RESOLVE_SEND_USER=#{et.resolveSendUser},CLOSED_USER=#{et.closedUser},CLOSED_DATE_TIME=#{et.closedDateTime},ABNORMAL_REASON=#{et.abnormalReason},BEFORE_MEASURE=#{et.beforeMeasure},CREATED_USER=#{et.createdUser},CREATED_DATA_TIME=#{et.createdDataTime},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 DUTY_USER=#{ew.entity.dutyUser} AND DUTY_DATE_TIME=#{ew.entity.dutyDateTime} AND DUTY_DEPART=#{ew.entity.dutyDepart} AND DUTY_TYPE=#{ew.entity.dutyType} AND PRINCIPAL_USER=#{ew.entity.principalUser} AND DUTY_CAUSE_DESCRIPTION=#{ew.entity.dutyCauseDescription} AND DUTY_CAUSE_TYPE=#{ew.entity.dutyCauseType} AND DUTY_SEND_USER_GROUP=#{ew.entity.dutySendUserGroup} AND RESOLVE_USER=#{ew.entity.resolveUser} AND RESOLVE_DATE_TIME=#{ew.entity.resolveDateTime} AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod} AND ROUTER_BO=#{ew.entity.routerBo} AND RESOLVE_SHOP_ORDER=#{ew.entity.resolveShopOrder} AND RESOLVE_REMARK=#{ew.entity.resolveRemark} AND RESOLVE_SEND_USER=#{ew.entity.resolveSendUser} AND CLOSED_USER=#{ew.entity.closedUser} AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime} AND ABNORMAL_REASON=#{ew.entity.abnormalReason} AND BEFORE_MEASURE=#{ew.entity.beforeMeasure} AND CREATED_USER=#{ew.entity.createdUser} AND CREATED_DATA_TIME=#{ew.entity.createdDataTime} AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
${ew.sqlSegment}
${ew.sqlSegment}
DELETE FROM Z_ABNORMAL_BILL_DISPOSE
${k} = #{cm[${k}]}
DELETE FROM Z_ABNORMAL_BILL_DISPOSE
HANDLE=#{ew.entity.handle}
AND SITE=#{ew.entity.site} AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillBo} AND DUTY_USER=#{ew.entity.dutyUser} AND DUTY_DATE_TIME=#{ew.entity.dutyDateTime} AND DUTY_DEPART=#{ew.entity.dutyDepart} AND DUTY_TYPE=#{ew.entity.dutyType} AND PRINCIPAL_USER=#{ew.entity.principalUser} AND DUTY_CAUSE_DESCRIPTION=#{ew.entity.dutyCauseDescription} AND DUTY_CAUSE_TYPE=#{ew.entity.dutyCauseType} AND DUTY_SEND_USER_GROUP=#{ew.entity.dutySendUserGroup} AND RESOLVE_USER=#{ew.entity.resolveUser} AND RESOLVE_DATE_TIME=#{ew.entity.resolveDateTime} AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod} AND ROUTER_BO=#{ew.entity.routerBo} AND RESOLVE_SHOP_ORDER=#{ew.entity.resolveShopOrder} AND RESOLVE_REMARK=#{ew.entity.resolveRemark} AND RESOLVE_SEND_USER=#{ew.entity.resolveSendUser} AND CLOSED_USER=#{ew.entity.closedUser} AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime} AND ABNORMAL_REASON=#{ew.entity.abnormalReason} AND BEFORE_MEASURE=#{ew.entity.beforeMeasure} AND CREATED_USER=#{ew.entity.createdUser} AND CREATED_DATA_TIME=#{ew.entity.createdDataTime} AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
${ew.sqlSegment}
${ew.sqlSegment}