|
|
@@ -261,8 +261,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
261
|
261
|
AND createtime <![CDATA[<=]]> DATE_ADD(CURDATE() - DAY(CURDATE()) + 1, INTERVAL 1 MONTH)
|
|
262
|
262
|
and isdelete=0
|
|
263
|
263
|
<if test="time != null and time !='' ">
|
|
264
|
|
- and YEAR(create_time) = YEAR(CURRENT_DATE)
|
|
265
|
|
- AND ${time}(create_time) = ${time}(CURRENT_DATE)
|
|
|
264
|
+ and YEAR(createtime) = YEAR(CURRENT_DATE)
|
|
|
265
|
+ AND ${time}(createtime) = ${time}(CURRENT_DATE)
|
|
266
|
266
|
</if>
|
|
267
|
267
|
<if test="area >0 ">
|
|
268
|
268
|
AND `area`= #{area}
|
|
|
@@ -416,7 +416,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
416
|
416
|
</select>
|
|
417
|
417
|
<select id="selectTelephoneData" parameterType="String" resultMap="RecordDateViewResult">
|
|
418
|
418
|
select count(1) total,
|
|
419
|
|
- count(note=${note} and call_type = 1 or null ) incoming, count(note=${note} and call_type = 2
|
|
|
419
|
+ count(note=${note} and call_type = 1 or null ) incoming, count(call_type = 2
|
|
420
|
420
|
or null ) exhalation from rep_record
|
|
421
|
421
|
where 1=1
|
|
422
|
422
|
<if test="time != null and time !='' ">
|
|
|
@@ -473,8 +473,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
473
|
473
|
o.area = #{area}
|
|
474
|
474
|
</if>
|
|
475
|
475
|
<if test="time != null and time !='' ">
|
|
476
|
|
- and YEAR(create_time) = YEAR(CURRENT_DATE)
|
|
477
|
|
- AND ${time}(create_time) = ${time}(CURRENT_DATE)
|
|
|
476
|
+ and YEAR(createtime) = YEAR(CURRENT_DATE)
|
|
|
477
|
+ AND ${time}(createtime) = ${time}(CURRENT_DATE)
|
|
478
|
478
|
</if>
|
|
479
|
479
|
GROUP BY
|
|
480
|
480
|
keyword_text
|