select o.*, u.nickname as userName, u.mobile as userMobile from tb_order o
left join tb_user u on u.id = o.user_id
and o.order_no like concat('%', #{bo.orderNo}, '%')
and o.user_id = #{bo.userId}
and o.status = #{bo.status.code}
and o.hospital_id = #{bo.hospitalId}
and u.mobile like concat('%', #{bo.userMobile}, '%')
and JSON_UNQUOTE(JSON_EXTRACT(o.service_info, '$.name')) like concat('%', #{bo.serviceName}, '%')
and o.create_time >= #{bo.startTime}
and o.create_time #{bo.endTime}
and o.is_reviewed = #{bo.isReviewed}
order by o.create_time desc