|
@@ -23,6 +23,9 @@
|
|
|
<if test="stationId!=null and stationId!='' ">
|
|
|
station_id,
|
|
|
</if>
|
|
|
+ <if test="houseId!=null and houseId!='' ">
|
|
|
+ house_id,
|
|
|
+ </if>
|
|
|
<if test="olderId!=null and olderId!='' ">
|
|
|
older_id,
|
|
|
</if>
|
|
@@ -90,6 +93,9 @@
|
|
|
<if test="stationId!=null and stationId!='' ">
|
|
|
#{stationId},
|
|
|
</if>
|
|
|
+ <if test="houseId!=null and houseId!='' ">
|
|
|
+ #{houseId},
|
|
|
+ </if>
|
|
|
<if test="olderId!=null and olderId!='' ">
|
|
|
#{olderId},
|
|
|
</if>
|
|
@@ -155,11 +161,12 @@
|
|
|
id,
|
|
|
org_id as orgId,
|
|
|
station_id as stationId,
|
|
|
+ house_id as houseId,
|
|
|
older_id as olderId,
|
|
|
- order_id as orderId,
|
|
|
+ order_id as orderId,
|
|
|
called_id as calledId,
|
|
|
called_name as calledName,
|
|
|
- relation_type_desc as relationTypeDesc,
|
|
|
+ relation_type_desc as relationTypeDesc,
|
|
|
contact_level as contactLevel,
|
|
|
called_type as calledType,
|
|
|
phone as phone,
|
|
@@ -244,6 +251,9 @@
|
|
|
<if test="stationId!=null and stationId!=''">
|
|
|
station_id,
|
|
|
</if>
|
|
|
+ <if test="houseId!=null and houseId!=''">
|
|
|
+ house_id,
|
|
|
+ </if>
|
|
|
<if test="calledId!=null and calledId!=''">
|
|
|
called_id,
|
|
|
</if>
|
|
@@ -323,6 +333,9 @@
|
|
|
<if test="stationId!=null">
|
|
|
#{stationId},
|
|
|
</if>
|
|
|
+ <if test="houseId!=null">
|
|
|
+ #{houseId},
|
|
|
+ </if>
|
|
|
<if test="calledId!=null">
|
|
|
#{calledId},
|
|
|
</if>
|
|
@@ -401,6 +414,9 @@
|
|
|
<if test="stationId!=null and stationId!='' ">
|
|
|
station_id=#{stationId},
|
|
|
</if>
|
|
|
+ <if test="houseId!=null and houseId!='' ">
|
|
|
+ house_id=#{houseId},
|
|
|
+ </if>
|
|
|
<if test="calledId!=null and calledId!='' ">
|
|
|
called_id=#{calledId},
|
|
|
</if>
|
|
@@ -448,6 +464,7 @@
|
|
|
distinct ckl.session_id as sessionId,
|
|
|
ckl.org_id as orgId,
|
|
|
ckl.station_id as stationId,
|
|
|
+ ckl.house_id as houseId,
|
|
|
ckl.older_id as olderId,
|
|
|
ckl.order_id as orderId,
|
|
|
ckl.called_id as calledId,
|
|
@@ -468,6 +485,7 @@
|
|
|
where
|
|
|
ckl.org_id=#{orgId}
|
|
|
and ckl.station_id=#{stationId}
|
|
|
+ and ckl.house_id=#{houseId}
|
|
|
and ckl.older_id=#{olderId}
|
|
|
and ckl.called_id=#{calledId}
|
|
|
and ckl.called_type=#{calledType}
|