Changeset 45df607


Ignore:
Timestamp:
02/18/25 18:06:32 (3 days ago)
Author:
Nikola Mishevski <Nikola.Mishevski@…>
Branches:
main
Parents:
07b59f8
Message:

name and surname shipment filter amended due to added database indexing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WineTrackerFinal/WineTrackerWebApi/Controllers/ShipmentController.cs

    r07b59f8 r45df607  
    3535            List<string> whereConditons = new List<string>();
    3636            if(!string.IsNullOrEmpty(shipmentDate)) whereConditons.Add("s.shipment_date = @ShipmentDate");
    37             if(!string.IsNullOrEmpty(employeeNameSurname)) whereConditons.Add("LOWER(CONCAT(e.employee_name, ' ', e.employee_surname)) Like '%' || @employeeNameSurname || '%'");
     37            if(!string.IsNullOrEmpty(employeeNameSurname)) whereConditons.Add("LOWER(e.employee_name || ' ' || e.employee_surname) Like '%' || @employeeNameSurname || '%'");
    3838            if(!string.IsNullOrEmpty(registration)) whereConditons.Add("LOWER(v.registration) = @Registration");
    3939
Note: See TracChangeset for help on using the changeset viewer.