魏熙美 5 years ago
parent
commit
35e85966a2
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/main/resources/mapper/TaPersonMapper.xml

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

@@ -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