|
@@ -256,19 +256,6 @@ class MySqlDao:
|
|
|
|
|
|
|
|
return data
|
|
return data
|
|
|
|
|
|
|
|
- # def get_product_from_order(self, city_uuid):
|
|
|
|
|
- # query = f"SELECT cust_code, product_code FROM {self._order_tablename} WHERE city_uuid = :city_uuid"
|
|
|
|
|
- # params = {"city_uuid": city_uuid}
|
|
|
|
|
-
|
|
|
|
|
- # data = pd.DataFrame(self.db_helper.fetch_all(text(query), params))
|
|
|
|
|
-
|
|
|
|
|
- # cust_list = self.get_cust_list(city_uuid)
|
|
|
|
|
- # cust_index = cust_list.set_index("BB_RETAIL_CUSTOMER_CODE")
|
|
|
|
|
- # data = data.join(cust_index, on="cust_code", how="inner")
|
|
|
|
|
- # data = data["product_code"]
|
|
|
|
|
-
|
|
|
|
|
- # return data
|
|
|
|
|
-
|
|
|
|
|
def get_cust_list(self, city_uuid):
|
|
def get_cust_list(self, city_uuid):
|
|
|
query = f"SELECT DISTINCT BB_RETAIL_CUSTOMER_CODE FROM {self._cust_tablename} WHERE BA_CITY_ORG_CODE = :city_uuid"
|
|
query = f"SELECT DISTINCT BB_RETAIL_CUSTOMER_CODE FROM {self._cust_tablename} WHERE BA_CITY_ORG_CODE = :city_uuid"
|
|
|
params = {"city_uuid": city_uuid}
|
|
params = {"city_uuid": city_uuid}
|