|
@ -28,6 +28,7 @@ |
|
|
<if test="orgType == 'grid'"> |
|
|
<if test="orgType == 'grid'"> |
|
|
and e.GRID_ID=#{orgId} |
|
|
and e.GRID_ID=#{orgId} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
and e.DEL_FLAG = '0' |
|
|
and CUSTOMER_ID = #{customerId} |
|
|
and CUSTOMER_ID = #{customerId} |
|
|
and HAPPEN_TIME >= #{queryStartTime} |
|
|
and HAPPEN_TIME >= #{queryStartTime} |
|
|
and HAPPEN_TIME <![CDATA[<=]]> #{queryEndTime} |
|
|
and HAPPEN_TIME <![CDATA[<=]]> #{queryEndTime} |
|
@ -81,7 +82,8 @@ |
|
|
select date_format(e.HAPPEN_TIME, '%Y-%m') monthName |
|
|
select date_format(e.HAPPEN_TIME, '%Y-%m') monthName |
|
|
from ic_event e |
|
|
from ic_event e |
|
|
<where> |
|
|
<where> |
|
|
e.HAPPEN_TIME >= date_format(#{queryStartTime}, '%Y-%m') |
|
|
e.DEL_FLAG = '0' |
|
|
|
|
|
and e.HAPPEN_TIME >= date_format(#{queryStartTime}, '%Y-%m') |
|
|
and e.HAPPEN_TIME <![CDATA[ <= ]]> date_format(#{queryEndTime}, '%Y-%m') |
|
|
and e.HAPPEN_TIME <![CDATA[ <= ]]> date_format(#{queryEndTime}, '%Y-%m') |
|
|
<if test="orgType == 'grid'"> |
|
|
<if test="orgType == 'grid'"> |
|
|
and e.GRID_ID =#{orgId} |
|
|
and e.GRID_ID =#{orgId} |
|
|