标签:time and pre map def code set white sep
<delete id="deleteALLByZjxbh">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;
</delete>
<update id="batchUpdate" parameterType="java.util.List">
begin
<foreach collection="list" item="item" index="index" separator="" >
update T_EMP_1
<set>
age = #{item.age}+1,name=#{item.name}
</set>
where id = #{item.id};
</foreach>
end;
</update>
<insert id="batch2InsertMsgAndEffect" parameterType="Map">
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
<foreach collection="msgs" item="item" index="index" open="" separator="," close="">
(#{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})
</foreach>
end;
begin
insert into sn_prd_effect (sid,store_code,prd_code,prd_price,extense_price1,extense_price2,extense_price3,down_time)
values
<foreach collection="effs" separator="," item="item" index="index" open="" close="">
(#{item.sid} ,#{item.storeCode},#{item.salesno},#{item.Price},#{item.Price1}, #{item.Price2},#{item.Price3},#{item.downTime})
</foreach>
end;
</insert>
标签:time and pre map def code set white sep
原文地址:http://blog.51cto.com/xiaok007/2152550