魏熙美 преди 5 години
родител
ревизия
35e85966a2
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2
    0
      src/main/resources/mapper/TaPersonMapper.xml

+ 2
- 0
src/main/resources/mapper/TaPersonMapper.xml Целия файл

@@ -430,6 +430,7 @@ FROM
430 430
             ON tps.from_code = tpfs.from_code
431 431
             WHERE tpfs.from_code = tps.from_code
432 432
             and ifnull(tps.person_type, '') != 'Realty Consultant'
433
+            AND tps.create_date BETWEEN #{startDate} AND #{endDate}
433 434
 
434 435
             GROUP BY tpfs.from_code
435 436
         ) as user_count
@@ -446,6 +447,7 @@ FROM
446 447
             ON tps.from_code = tpfs.from_code
447 448
             WHERE tpfs.from_code = tps.from_code
448 449
                 and ifnull(tps.person_type, '') != 'Realty Consultant'
450
+                AND tps.create_date BETWEEN #{startDate} AND #{endDate}
449 451
                 and tps.phone is not null
450 452
             GROUP BY tpfs.from_code
451 453
         ) as registered_count