Project

General

Profile

Actions

Bug #296

closed

[API] 자주가는 역 리스트

Added by Jisoo Choi 9 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Low
Assignee:
Start date:
01/02/2024
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

 

 

현재 스토리 오더 역 선택 시, 자주가는 역 리스트의 역이 어떤 기준으로 표시되고 있는지 알 수 있을까요?

기획 초반에는 주문이 많은 역을 10개 정도 표출해달라고 처리 요청드렸었습니다.

 

1. 주문 수가 많은 역 순서로 최대 10개 표출

*취소 무관(주문을 취소하더라도 주문 수 카운트에서 삭제하지는 않아도 될 것 같습니다.)

2. 주문 수가 동일할 경우, 더 최근에 주문한 역을 우선 표출

 

으로 처리가 되어야 할 것 같습니다.

만약 취소 시에는 주문 수 카운트에서 줄어드는 처리가 되어 있다고 하면, 

(취소 전) 주문 수령 완료 후에 자주 가는 역에 다른 역이 추가되어야 하는데 해당 처리가 되고 있지는 않은 것 같습니다.

 


Files

Actions #1

Updated by Deca Park 9 months ago

  • Tracker changed from Non-Function to Bug
  • Assignee changed from Deca Park to bryant bryant

[API] GET /api/use_station_list

1.if can't get current location
  1) as-is
    - API is called like http://210.123.124.139:3001/KORAIL/api/use_station_list?id=dev01&latitude=undefined&longitude=undefined
    - 400 error
  2) to-be
    - return station list regardless of latitude/longitude without error

2.logic (SQL error)
  1) as-is
    - although order station is multiple, return 1 station
  2) to-be
    a) add condition: st_mall.mall_type = 'store'
    b) return station list
      - sort: order count DESC (more order count, show first)
              , order date DESC
   

Actions #2

Updated by bryant bryant 9 months ago

  • Status changed from New to Resolved
  • Assignee changed from bryant bryant to Deca Park
Actions #3

Updated by Deca Park 9 months ago

  • Assignee changed from Deca Park to Jisoo Choi
Actions #4

Updated by Jisoo Choi 8 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF