HANDLE, SFC_DISPATCH_BO, STATUS, CREATED_DATE_TIME, USER_ID, USER_NAME, OTHER1, OTHER2, OTHER3, STORAGE_LOCATION, TURNOVER_WORK_CENTER, COM_DATE_TIME, IS_RECEIVE, TURNOUT_WORKCENTER, TURNOUT_ITEM, OTHER4, OTHER5, OTHER6, SHOP_ORDER, SFC, DELETE_USER, DELETE_DATE_TIME, CREATED_USER INSERT INTO Z_LOGISTICS_TURNOVER HANDLE, SFC_DISPATCH_BO, STATUS, CREATED_DATE_TIME, USER_ID, USER_NAME, OTHER1, OTHER2, OTHER3, STORAGE_LOCATION, TURNOVER_WORK_CENTER, COM_DATE_TIME, IS_RECEIVE, TURNOUT_WORKCENTER, TURNOUT_ITEM, OTHER4, OTHER5, OTHER6, SHOP_ORDER, SFC, DELETE_USER, DELETE_DATE_TIME, CREATED_USER, NEXT_STEP, VALUES #{handle}, #{sfcDispatchBo}, #{status}, #{createdDateTime}, #{userId}, #{userName}, #{other1}, #{other2}, #{other3}, #{storageLocation}, #{turnoverWorkCenter}, #{comDateTime}, #{isReceive}, #{turnoutWorkcenter}, #{turnoutItem}, #{other4}, #{other5}, #{other6}, #{shopOrder}, #{sfc}, #{deleteUser}, #{deleteDateTime}, #{createdUser}, #{nextStep}, INSERT INTO Z_LOGISTICS_TURNOVER VALUES #{handle}, #{sfcDispatchBo}, #{status}, #{createdDateTime}, #{userId}, #{userName}, #{other1}, #{other2}, #{other3}, #{storageLocation}, #{turnoverWorkCenter}, #{comDateTime}, #{isReceive}, #{turnoutWorkcenter}, #{turnoutItem}, #{other4}, #{other5}, #{other6}, #{shopOrder}, #{sfc}, #{deleteUser}, #{deleteDateTime}, #{createdUser}, UPDATE Z_LOGISTICS_TURNOVER SFC_DISPATCH_BO=#{et.sfcDispatchBo}, STATUS=#{et.status}, CREATED_DATE_TIME=#{et.createdDateTime}, USER_ID=#{et.userId}, USER_NAME=#{et.userName}, OTHER1=#{et.other1}, OTHER2=#{et.other2}, OTHER3=#{et.other3}, STORAGE_LOCATION=#{et.storageLocation}, TURNOVER_WORK_CENTER=#{et.turnoverWorkCenter}, COM_DATE_TIME=#{et.comDateTime}, IS_RECEIVE=#{et.isReceive}, TURNOUT_WORKCENTER=#{et.turnoutWorkcenter}, TURNOUT_ITEM=#{et.turnoutItem}, OTHER4=#{et.other4}, OTHER5=#{et.other5}, OTHER6=#{et.other6}, SHOP_ORDER=#{et.shopOrder}, SFC=#{et.sfc}, DELETE_USER=#{et.deleteUser}, DELETE_DATE_TIME=#{et.deleteDateTime}, CREATED_USER=#{et.createdUser}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL} UPDATE Z_LOGISTICS_TURNOVER SFC_DISPATCH_BO=#{et.sfcDispatchBo}, STATUS=#{et.status}, CREATED_DATE_TIME=#{et.createdDateTime}, USER_ID=#{et.userId}, USER_NAME=#{et.userName}, OTHER1=#{et.other1}, OTHER2=#{et.other2}, OTHER3=#{et.other3}, STORAGE_LOCATION=#{et.storageLocation}, TURNOVER_WORK_CENTER=#{et.turnoverWorkCenter}, COM_DATE_TIME=#{et.comDateTime}, IS_RECEIVE=#{et.isReceive}, TURNOUT_WORKCENTER=#{et.turnoutWorkcenter}, TURNOUT_ITEM=#{et.turnoutItem}, OTHER4=#{et.other4}, OTHER5=#{et.other5}, OTHER6=#{et.other6}, SHOP_ORDER=#{et.shopOrder}, SFC=#{et.sfc}, DELETE_USER=#{et.deleteUser}, DELETE_DATE_TIME=#{et.deleteDateTime}, CREATED_USER=#{et.createdUser}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL} UPDATE Z_LOGISTICS_TURNOVER SFC_DISPATCH_BO=#{et.sfcDispatchBo}, STATUS=#{et.status}, CREATED_DATE_TIME=#{et.createdDateTime}, USER_ID=#{et.userId}, USER_NAME=#{et.userName}, OTHER1=#{et.other1}, OTHER2=#{et.other2}, OTHER3=#{et.other3}, STORAGE_LOCATION=#{et.storageLocation}, TURNOVER_WORK_CENTER=#{et.turnoverWorkCenter}, COM_DATE_TIME=#{et.comDateTime}, IS_RECEIVE=#{et.isReceive}, TURNOUT_WORKCENTER=#{et.turnoutWorkcenter}, TURNOUT_ITEM=#{et.turnoutItem}, OTHER4=#{et.other4}, OTHER5=#{et.other5}, OTHER6=#{et.other6}, SHOP_ORDER=#{et.shopOrder}, SFC=#{et.sfc}, DELETE_USER=#{et.deleteUser}, DELETE_DATE_TIME=#{et.deleteDateTime}, CREATED_USER=#{et.createdUser}, HANDLE=#{ew.entity.handle} AND SFC_DISPATCH_BO=#{ew.entity.sfcDispatchBo} AND STATUS=#{ew.entity.status} AND CREATED_DATE_TIME=#{ew.entity.createdDateTime} AND USER_ID=#{ew.entity.userId} AND USER_NAME=#{ew.entity.userName} AND OTHER1=#{ew.entity.other1} AND OTHER2=#{ew.entity.other2} AND OTHER3=#{ew.entity.other3} AND STORAGE_LOCATION=#{ew.entity.storageLocation} AND TURNOVER_WORK_CENTER=#{ew.entity.turnoverWorkCenter} AND COM_DATE_TIME=#{ew.entity.comDateTime} AND IS_RECEIVE=#{ew.entity.isReceive} AND TURNOUT_WORKCENTER=#{ew.entity.turnoutWorkcenter} AND TURNOUT_ITEM=#{ew.entity.turnoutItem} AND OTHER4=#{ew.entity.other4} AND OTHER5=#{ew.entity.other5} AND OTHER6=#{ew.entity.other6} AND SHOP_ORDER=#{ew.entity.shopOrder} AND SFC=#{ew.entity.sfc} AND DELETE_USER=#{ew.entity.deleteUser} AND DELETE_DATE_TIME=#{ew.entity.deleteDateTime} AND CREATED_USER=#{ew.entity.createdUser} ${ew.sqlSegment} ${ew.sqlSegment} DELETE FROM Z_LOGISTICS_TURNOVER WHERE HANDLE=#{handle} DELETE FROM Z_LOGISTICS_TURNOVER ${k} = #{cm[${k}]} DELETE FROM Z_LOGISTICS_TURNOVER HANDLE=#{ew.entity.handle} AND SFC_DISPATCH_BO=#{ew.entity.sfcDispatchBo} AND STATUS=#{ew.entity.status} AND CREATED_DATE_TIME=#{ew.entity.createdDateTime} AND USER_ID=#{ew.entity.userId} AND USER_NAME=#{ew.entity.userName} AND OTHER1=#{ew.entity.other1} AND OTHER2=#{ew.entity.other2} AND OTHER3=#{ew.entity.other3} AND STORAGE_LOCATION=#{ew.entity.storageLocation} AND TURNOVER_WORK_CENTER=#{ew.entity.turnoverWorkCenter} AND COM_DATE_TIME=#{ew.entity.comDateTime} AND IS_RECEIVE=#{ew.entity.isReceive} AND TURNOUT_WORKCENTER=#{ew.entity.turnoutWorkcenter} AND TURNOUT_ITEM=#{ew.entity.turnoutItem} AND OTHER4=#{ew.entity.other4} AND OTHER5=#{ew.entity.other5} AND OTHER6=#{ew.entity.other6} AND SHOP_ORDER=#{ew.entity.shopOrder} AND SFC=#{ew.entity.sfc} AND DELETE_USER=#{ew.entity.deleteUser} AND DELETE_DATE_TIME=#{ew.entity.deleteDateTime} AND CREATED_USER=#{ew.entity.createdUser} ${ew.sqlSegment} ${ew.sqlSegment} DELETE FROM Z_LOGISTICS_TURNOVER WHERE HANDLE IN ( #{item} ) WCT.DESCRIPTION NEXT_WORK_CENTER, ZSD.SFC, C1.VALUE WORK_ORDER, IT.DESCRIPTION ITEM_DESCRIPTION, ZSD.BLANKING_SIZE, ZSD.DISPATCH_QTY, OT1.DESCRIPTION OVER_OPERATION, OT.DESCRIPTION NEXT_OPERATION, ZSD.EMPLOYEE_DESCRIPTION, ZLT.TURNOVER_WORK_CENTER, ZLT.CREATED_DATE_TIME INSERT INTO WIP.STORE_RECORD_IN (SFC, IN_QTY, STORE_LOCATION, WORK_USER, IN_TYPE) VALUES (#{sfc}, #{qty}, #{storeLocation}, #{user}, #{inStoreType}) INSERT INTO WIP.STORE_RECORD_LEDGER (SFC, IN_QTY, STORE_LOCATION) VALUES (#{sfc}, #{qty}, #{storeLocation}) update WIP.STORE_RECORD_LEDGER set IN_QTY=IN_QTY+#{qty} where SFC=#{sfc}