|
|
@@ -168,6 +168,7 @@ class MySqlDao:
|
|
|
FROM {self._order_tablename}
|
|
|
WHERE city_uuid = :city_uuid
|
|
|
AND product_code IN :ids
|
|
|
+ ORDER BY cust_code, product_code
|
|
|
""").bindparams(bindparam("ids", expanding=True))
|
|
|
params = {"city_uuid": city_uuid, "ids": list(product_ids)}
|
|
|
data = pd.DataFrame(self.db_helper.fetch_all(query, params))
|
|
|
@@ -261,7 +262,7 @@ class MySqlDao:
|
|
|
return data
|
|
|
|
|
|
def get_cust_list(self, city_uuid):
|
|
|
- query = f"SELECT DISTINCT cust_code FROM {self._cust_tablename} WHERE corp_uuid = :city_uuid"
|
|
|
+ query = f"SELECT DISTINCT cust_code FROM {self._cust_tablename} WHERE corp_uuid = :city_uuid ORDER BY cust_code"
|
|
|
params = {"city_uuid": city_uuid}
|
|
|
|
|
|
data = self.db_helper.load_data_with_page(query, params)
|