select thisTab.id, thisTab.quote_plan_id, thisTab.free_name, thisTab.unit, thisTab.price, thisTab.currency, thisTab.create_time, thisTab.update_time from tms_quote_item AS thisTab
select count(0) from tms_quote_item as thisTab
and thisTab.quote_plan_id = #{quotePlanId} and thisTab.free_name like concat('%', #{freeName}, '%') and thisTab.unit = #{unit} and thisTab.price = #{price} and thisTab.currency = #{currency}
insert into tms_quote_item
quote_plan_id,free_name,unit,price,currency,create_time,update_time,#{quotePlanId},#{freeName},#{unit},#{price},#{currency},#{createTime},#{updateTime},
insert into tms_quote_item
id,quote_plan_id,free_name,unit,price,currency,
#{item.id},#{item.quotePlanId},#{item.freeName},#{item.unit},#{item.price},#{item.currency},
update tms_quote_item
quote_plan_id = #{quotePlanId},free_name = #{freeName},unit = #{unit},price = #{price},currency = #{currency},create_time = #{createTime},update_time = #{updateTime},
where id = #{id}
update tms_quote_item
quote_plan_id = #{item.quotePlanId},free_name = #{item.freeName},unit = #{item.unit},price = #{item.price},currency = #{item.currency},create_time = #{item.createTime},update_time = #{item.updateTime},
where id = #{item.id}
delete from tms_quote_item where id = #{id}
delete from tms_quote_item where id in
#{id}