RequisitionNo, Site, RequisitionDate, EnterDate, UserName, Requisitioner, Status, Printed, OrderType, Remark, authorizeFlag, approvedFlag, approveResult, Authorizator, authorizeDate, OrderRef1, AuthRuleID INSERT INTO PRHeader RequisitionNo, Site, RequisitionDate, EnterDate, UserName, Requisitioner, Status, Printed, OrderType, Remark, authorizeFlag, approvedFlag, approveResult, Authorizator, authorizeDate, OrderRef1, AuthRuleID VALUES #{requisitionno,jdbcType=VARCHAR}, #{site,jdbcType=VARCHAR}, #{requisitiondate,jdbcType=TIMESTAMP}, #{enterdate,jdbcType=TIMESTAMP}, #{username,jdbcType=VARCHAR}, #{requisitioner,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{printed,jdbcType=CHAR}, #{orderType,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{authorizeFlag,jdbcType=CHAR}, #{approvedFlag,jdbcType=CHAR}, #{approveResult,jdbcType=VARCHAR}, #{authorizator,jdbcType=VARCHAR}, #{authorizeDate,jdbcType=TIMESTAMP}, #{orderref1,jdbcType=VARCHAR}, #{authruleid,jdbcType=VARCHAR} update PRHeader RequisitionDate = #{requisitiondate,jdbcType=TIMESTAMP}, EnterDate = #{enterdate,jdbcType=TIMESTAMP}, UserName = #{username,jdbcType=VARCHAR}, Requisitioner = #{requisitioner,jdbcType=VARCHAR}, Status = #{status,jdbcType=VARCHAR}, Printed = #{printed,jdbcType=CHAR}, OrderType = #{ordertype,jdbcType=VARCHAR}, Remark = #{remark,jdbcType=VARCHAR}, authorizeFlag = #{authorizeFlag,jdbcType=CHAR}, approvedFlag = #{approvedFlag,jdbcType=CHAR}, approveResult = #{approveResult,jdbcType=VARCHAR}, Authorizator = #{authorizator,jdbcType=VARCHAR}, authorizeDate = #{authorizeDate,jdbcType=TIMESTAMP}, OrderRef1 = #{orderref1,jdbcType=VARCHAR}, AuthRuleID = #{authruleid,jdbcType=VARCHAR}, and Site=#{site,jdbcType=VARCHAR} and RequisitionNo=#{requisitionno,jdbcType=VARCHAR} delete from PRHeader and Site=#{site,jdbcType=VARCHAR} and RequisitionNo=#{requisitionno,jdbcType=VARCHAR} exec dbo.UpdateTransNo #{site},#{dbType} update po_receipt_detail_sub set tool_instance_id = #{newToolInstanceId} where tool_instance_id = #{toolInstanceId} and site = #{site}