|
@@ -126,7 +126,12 @@ public interface TaPersonMapper extends BaseMapper<TaPerson> {
|
126
|
126
|
* @return
|
127
|
127
|
*/
|
128
|
128
|
@ResultType(Map.class)
|
129
|
|
- @Select("select city, count(1) as city_count from ta_person where ifnull(person_type, '') != #{personType} and city is not null GROUP BY city")
|
|
129
|
+ @Select("SELECT " +
|
|
130
|
+ "b.NAME AS city," +
|
|
131
|
+ "count(a.person_id) AS city_count" +
|
|
132
|
+ " FROM" +
|
|
133
|
+ " ta_person a" +
|
|
134
|
+ " LEFT JOIN ( select t.*, s.pinyin as province from td_city t JOIN td_city s on t.parentid = s.id) b ON a.city = b.pinyin and a.province = b.province where ifnull(a.person_type, '') != #{personType} and a.city is not null GROUP BY a.city")
|
130
|
135
|
List<Map<String, Object>> selectCityUser(@Param("personType") String personType);
|
131
|
136
|
|
132
|
137
|
|