|
@@ -19,10 +19,10 @@
|
19
|
19
|
ts_person_from_statistic tp
|
20
|
20
|
where tp.org_id = #{orgId}
|
21
|
21
|
<if test="startDate != null or endDate != null">
|
22
|
|
- AND tp.create_date BETWEEN #{startDate} and #{endDate}
|
|
22
|
+ AND DATE_FORMAT( tp.create_date, '%Y-%m-%d' ) BETWEEN #{startDate} and #{endDate}
|
23
|
23
|
</if>
|
24
|
24
|
<if test="startDate == null or endDate == null">
|
25
|
|
- AND tp.create_date BETWEEN DATE_SUB(now(),INTERVAL 7 DAY) and now()
|
|
25
|
+ AND DATE_FORMAT( tp.create_date, '%Y-%m-%d' ) BETWEEN DATE_SUB(now(),INTERVAL 7 DAY) and now()
|
26
|
26
|
</if>
|
27
|
27
|
|
28
|
28
|
</select>
|
|
@@ -37,10 +37,10 @@
|
37
|
37
|
WHERE
|
38
|
38
|
tp.org_id = #{orgId}
|
39
|
39
|
<if test="startDate != null or endDate != null">
|
40
|
|
- AND tp.create_date BETWEEN #{startDate} and #{endDate}
|
|
40
|
+ AND DATE_FORMAT( tp.create_date, '%Y-%m-%d' ) BETWEEN #{startDate} and #{endDate}
|
41
|
41
|
</if>
|
42
|
42
|
<if test="startDate == null or endDate == null">
|
43
|
|
- AND tp.create_date BETWEEN DATE_SUB(now(),INTERVAL 7 DAY) and now()
|
|
43
|
+ AND DATE_FORMAT( tp.create_date, '%Y-%m-%d' ) BETWEEN DATE_SUB(now(),INTERVAL 7 DAY) and now()
|
44
|
44
|
</if>
|
45
|
45
|
GROUP BY
|
46
|
46
|
DATE_FORMAT( tp.create_date, '%Y-%m-%d' )
|
|
@@ -57,10 +57,10 @@
|
57
|
57
|
WHERE
|
58
|
58
|
tp.org_id = #{orgId}
|
59
|
59
|
<if test="startDate != null or endDate != null">
|
60
|
|
- AND tp.create_date BETWEEN #{startDate} and #{endDate}
|
|
60
|
+ AND DATE_FORMAT( tp.create_date, '%Y-%m-%d' ) BETWEEN #{startDate} and #{endDate}
|
61
|
61
|
</if>
|
62
|
62
|
<if test="startDate == null or endDate == null">
|
63
|
|
- AND tp.create_date BETWEEN DATE_SUB(now(),INTERVAL 7 DAY) and now()
|
|
63
|
+ AND DATE_FORMAT( tp.create_date, '%Y-%m-%d' ) BETWEEN DATE_SUB(now(),INTERVAL 7 DAY) and now()
|
64
|
64
|
</if>
|
65
|
65
|
GROUP BY
|
66
|
66
|
DATE_FORMAT( tp.create_date, '%Y-%m-%d' ),
|