diff --git a/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml b/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml index ad69cad50..fe74a0858 100755 --- a/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml +++ b/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml @@ -2464,8 +2464,11 @@ a.id id, a.item_content itemContent, a.issue_latitude latitude, - a.issue_longitude longitude, - round((st_distance_sphere(point(#{longitude}, #{latitude}), point(a.ISSUE_LONGITUDE, a.ISSUE_LATITUDE))) / 1000 ,1) as km + a.issue_longitude longitude + + , + round((st_distance_sphere(point(#{longitude}, #{latitude}), point(a.ISSUE_LONGITUDE, a.ISSUE_LATITUDE))) / 1000 ,1) as km + FROM epdc_item a INNER JOIN ( @@ -2491,7 +2494,9 @@ AND DATE_FORMAT(a.created_time,'%Y-%m-%d') #{statDate} - HAVING km 10 + + HAVING km 10 + ORDER BY a.created_time DESC, a.all_dept_ids ASC