id,title,item_type,price,create_time,create_user_id,picture,top_flag,parent_id,sort,put_storage_price,item_unit,del_flag,second_price
,partner_id,city_id,show_flag
insert into xzx_sys_environmental_info(title,item_type,price,create_time,create_user_id
,second_price
)
values (#{title},#{itemType},#{price},#{createTime},#{createUserId}
,#{secondPrice}
)
update xzx_sys_environmental_info
set price = #{price}
,second_price=#{secondPrice}
where id = #{id}
UPDATE `xzx_sys_environmental_info`
title = #{title},
`picture` = #{picture},
`price` = #{price},
`put_storage_price` = #{putStoragePrice},
`second_price` = #{secondPrice},
`sort` = #{sort},
`show_flag` = #{showFlag},
`item_unit` = #{itemUnit},
`min_price` = #{minPrice} ,
`max_price` = #{maxPrice} ,
,`city_id` = #{cityId}
, `partner_id` = #{partnerId}
WHERE `id` = #{id}
INSERT INTO `xzx_sys_environmental_info`
(`item_type`, `title`, `picture`, `price`, `put_storage_price`, `parent_id`, `sort`, `create_time`, `item_unit`, `second_price`, `partner_id`, `city_id`,show_flag,min_price,max_price)
VALUES
(#{itemType}, #{title}, #{picture}, #{price}, #{putStoragePrice}, #{parentId}, #{sort}, #{createTime},
#{itemUnit}, #{secondPrice}, #{partnerId}, #{cityId},#{showFlag} ,#{minPrice} ,#{maxPrice} )
update xzx_sys_environmental_info set del_flag=0 where del_flag=1 and parent_id is not null
and id in
#{tid}
update `xzx_sys_environmental_info`
set del_flag = 1
where id = #{id}