Browse Source

Merge branch 'v3' of http://git.ycjcjy.com/zhiyuxing/estateagents into v3

胡轶钦 5 years ago
parent
commit
25b1a03d08

+ 1
- 1
src/main/java/com/huiju/estateagents/mapper/TaPersonMapper.java View File

108
      * @param endDate
108
      * @param endDate
109
      * @return
109
      * @return
110
      */
110
      */
111
-    List<Map<String, Object>> selectNewsUserCount(@Param("org") Integer orgId, @Param("personType") String personType, @Param("startDate")LocalDate startDate, @Param("endDate")LocalDate endDate);
111
+    List<Map<String, Object>> selectNewsUserCount(@Param("orgId") Integer orgId, @Param("personType") String personType, @Param("startDate")LocalDate startDate, @Param("endDate")LocalDate endDate);
112
 
112
 
113
     /**
113
     /**
114
      * 性别比例
114
      * 性别比例

+ 2
- 2
src/main/resources/mapper/TaPersonMapper.xml View File

296
                         tp.create_date as create_date
296
                         tp.create_date as create_date
297
                     FROM
297
                     FROM
298
                       ta_person tp
298
                       ta_person tp
299
-                    where ifnull(tp.person_type, '') != #{personType}
299
+                    where ifnull(tp.person_type, '') != #{personType} and tp.org_id = #{orgId}
300
                     and tp.phone is NOT NULL
300
                     and tp.phone is NOT NULL
301
                     <if test="startDate != null or endDate != null">
301
                     <if test="startDate != null or endDate != null">
302
                         AND tp.create_date BETWEEN #{startDate} and #{endDate}
302
                         AND tp.create_date BETWEEN #{startDate} and #{endDate}
334
                     tp.create_date as create_date
334
                     tp.create_date as create_date
335
                 FROM
335
                 FROM
336
                  ta_person tp
336
                  ta_person tp
337
-                where tp.org_id = #{org} AND ifnull(tp.person_type, '') != #{personType}
337
+                where ifnull(tp.person_type, '') != #{personType} and tp.org_id = #{orgId}
338
                 <if test="startDate != null or endDate != null">
338
                 <if test="startDate != null or endDate != null">
339
                     AND tp.create_date BETWEEN #{startDate} and #{endDate}
339
                     AND tp.create_date BETWEEN #{startDate} and #{endDate}
340
                 </if>
340
                 </if>

+ 1
- 1
src/main/resources/mapper/TaRecommendCustomerMapper.xml View File

158
         LEFT JOIN ta_person c on a.recommend_person = c.person_id
158
         LEFT JOIN ta_person c on a.recommend_person = c.person_id
159
         <where>
159
         <where>
160
             a.status > 0
160
             a.status > 0
161
-            and realty_consultant is not null
161
+            and a.realty_consultant is not null
162
             <if test="orgId != null">
162
             <if test="orgId != null">
163
                 and a.org_id = #{orgId}
163
                 and a.org_id = #{orgId}
164
             </if>
164
             </if>