BEGIN 

DELETE FROM T_JW_ZJXB WHERE ZJXBH=#{zjxbh};

UPDATE JW_SSJH SET XXTBZ = 0 WHERE ZJXBH=#{zjxbh};

DELETE FROM JW_SSJH WHERE ZJXBH=#{zjxbh};

DELETE FROM JW_SSJH_SKXX WHERE ZJXBH=#{zjxbh};

DELETE FROM JW_SSJH_XDDX WHERE ZJXBH=#{zjxbh};

DELETE FROM JW_SSJH_CJQTLRR WHERE ZJXBH=#{zjxbh};

END;



        begin

         

            update T_EMP_1 

                   

                age = #{item.age}+1,name=#{item.name}

           

            where id = #{item.id};

       

        end;

   

begin 

INSERT INTO sn_price_msg_detail(sid, service_code, op_code, app_code, uid,

authid, prd_code,city_code, store_code, prd_price, down_time,

extense_price1,extense_price2, extense_price3, status, create_time)

VALUES 

  

          (#{item.sid},#{item.ServiceCode},

          #{item.Operation},#{item.AppCode},#{item.UId},

          #{item.AuthId},#{item.salesno},#{item.cityCode},

          #{item.storeCode},#{item.Price},#{item.downTime},

          #{item.Price1},#{item.Price2},#{item.Price3},#{item.status},#{item.createTime})

   

    end;

    begin 

    insert into sn_prd_effect (sid,store_code,prd_code,prd_price,extense_price1,extense_price2,extense_price3,down_time) 

values 

  

             (#{item.sid} ,#{item.storeCode},#{item.salesno},#{item.Price},#{item.Price1}, #{item.Price2},#{item.Price3},#{item.downTime})  

         

         end;