Sfoglia il codice sorgente

chore: 删除废弃的注释代码

Sherlock 2 giorni fa
parent
commit
a8e9e502a3
1 ha cambiato i file con 0 aggiunte e 13 eliminazioni
  1. 0 13
      database/dao/mysql_dao.py

+ 0 - 13
database/dao/mysql_dao.py

@@ -256,19 +256,6 @@ class MySqlDao:
 
         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):
         query = f"SELECT DISTINCT BB_RETAIL_CUSTOMER_CODE FROM {self._cust_tablename} WHERE BA_CITY_ORG_CODE = :city_uuid"
         params = {"city_uuid": city_uuid}