Browse Source

大屏统计

qin 1 year ago
parent
commit
4d6fcbce1f
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/main/resources/mapper/statistics/OrderMapper.xml

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

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