id, line_id,shop_id, point_id, development_manager, status, reason, deleted, create_time, update_time update xfsg_point_recommend set status = #{status} where point_id = #{pointId} and deleted = 0 and status not in #{status} update xfsg_point_recommend set status = #{status} where point_id = #{pointId} and deleted = 0 and status in #{status} insert into xfsg_point_recommend (shop_id, point_id, development_manager, status) values (#{item.shopId}, #{item.pointId}, #{item.developmentManager}, #{item.status}) update xfsg_point_recommend set deleted = if(status = 1, 1, deleted), development_manager = if(status in (2,4), #{developmentManager}, development_manager) where shop_id = #{shopId} update xfsg_point_recommend set status = if(shop_id = #{shopId}, 2, 3) where point_id = #{pointId} and deleted = 0 and status = 1 update xfsg_point_recommend set status = 5, reason = #{reason} where point_id = #{pointId} and shop_id = #{shopId} and deleted = 0 and status = 1 update xfsg_point_recommend set shop_id = case id when #{item.id} then #{item.shopId} end where id in #{entity.id}