qin преди 1 година
родител
ревизия
8eae18f5f9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/resources/mapper/statistics/OrderMapper.xml

+ 1 - 1
src/main/resources/mapper/statistics/OrderMapper.xml

@@ -147,7 +147,7 @@
     </select>
 
     <select id="getSubsidyCustomerMealList" resultType="com.poteviohealth.cgp.statistics.model.outdto.Customer">
-        select IFNULL(now_city_id,(select p.address_city_id from ${dbName}_common.f_operator p where p.id = c.operator_id)) as cityId,
+        select IFNULL(now_city_id,(select p.address_city_id from ${dbName}_common.f_operator p where p.id = operator_id)) as cityId,
                IFNULL(now_country_id,-1) AS countryId,
                IFNULL(now_street_id,-1) AS streetId
         from ${dbName}_customer.c_customer_subsidy_${operatorId}