suntianwu vor 3 Jahren
Ursprung
Commit
b8cb1f760a

+ 4 - 0
src/main/java/com/care/common/entity/CcCallResult.java

@@ -64,6 +64,10 @@ public class CcCallResult implements Serializable {
     @TableField("STATION_ID")
     @TableField("STATION_ID")
     private Long stationId;
     private Long stationId;
 
 
+    @ApiModelProperty("房屋ID")
+    @TableField("house_id")
+    private Long houseId;
+
     @ApiModelProperty("被监护人ID")
     @ApiModelProperty("被监护人ID")
     @TableField("older_id")
     @TableField("older_id")
     private Long olderId;
     private Long olderId;

+ 2 - 0
src/main/java/com/care/common/vo/outcall/CcCallResultVO.java

@@ -55,6 +55,8 @@ public class CcCallResultVO implements Serializable {
     @ApiModelProperty("被监护人ID")
     @ApiModelProperty("被监护人ID")
     private Long olderId;
     private Long olderId;
 
 
+    @ApiModelProperty("房屋ID")
+    private Long houseId;
 
 
     @ApiModelProperty("事件工单ID")
     @ApiModelProperty("事件工单ID")
     private Long orderId;
     private Long orderId;

+ 1 - 0
src/main/java/com/care/outcall/controller/KoalaOutCallController.java

@@ -87,6 +87,7 @@ public class KoalaOutCallController {
             CcKoalaLog ccKoalaLog = new CcKoalaLog();
             CcKoalaLog ccKoalaLog = new CcKoalaLog();
             ccKoalaLog.setOrgId(ccCallResult.getOrgId().toString());
             ccKoalaLog.setOrgId(ccCallResult.getOrgId().toString());
             ccKoalaLog.setStationId(ccCallResult.getStationId().toString());
             ccKoalaLog.setStationId(ccCallResult.getStationId().toString());
+            ccKoalaLog.setHouseId(ccCallResult.getHouseId().toString());
             ccKoalaLog.setOlderId(ccCallResult.getOlderId().toString());
             ccKoalaLog.setOlderId(ccCallResult.getOlderId().toString());
             ccKoalaLog.setOrderId(ccCallResult.getOrderId().toString());
             ccKoalaLog.setOrderId(ccCallResult.getOrderId().toString());
             ccKoalaLog.setCalledId(ccCallResult.getCalledId().toString());
             ccKoalaLog.setCalledId(ccCallResult.getCalledId().toString());

+ 3 - 0
src/main/java/com/care/outcall/entity/CcKoalaLog.java

@@ -19,6 +19,9 @@ public class CcKoalaLog implements Serializable {
     @ApiModelProperty(dataType = "String", name = "stationId", value = "服务站ID")
     @ApiModelProperty(dataType = "String", name = "stationId", value = "服务站ID")
     private String stationId;
     private String stationId;
 
 
+    @ApiModelProperty("房屋ID")
+    private String houseId;
+
     @ApiModelProperty(dataType = "String", name = "olderId", value = "被监护人ID")
     @ApiModelProperty(dataType = "String", name = "olderId", value = "被监护人ID")
     private String olderId;
     private String olderId;
 
 

+ 2 - 0
src/main/java/com/care/outcall/entity/CcTrafficBilled.java

@@ -22,6 +22,8 @@ public class CcTrafficBilled implements Serializable{
     private Date updateTime;
     private Date updateTime;
     private String orgId;
     private String orgId;
     private String stationId;
     private String stationId;
+    @ApiModelProperty("房屋ID")
+    private String houseId;
     private String olderId;
     private String olderId;
     @ApiModelProperty(dataType = "String", name = "calledId", value = "被呼叫人ID")
     @ApiModelProperty(dataType = "String", name = "calledId", value = "被呼叫人ID")
     private String calledId;
     private String calledId;

+ 1 - 0
src/main/java/com/care/outcall/schedule/KoalaOutCallBillSchedule.java

@@ -238,6 +238,7 @@ public class KoalaOutCallBillSchedule {
             ccTrafficBilled.setOrderId(callOlderVO.getOrderId());
             ccTrafficBilled.setOrderId(callOlderVO.getOrderId());
             ccTrafficBilled.setStationId(callOlderVO.getStationId());
             ccTrafficBilled.setStationId(callOlderVO.getStationId());
             ccTrafficBilled.setCalledId(callOlderVO.getCalledId());
             ccTrafficBilled.setCalledId(callOlderVO.getCalledId());
+            ccTrafficBilled.setHouseId(callOlderVO.getHouseId());
             ccTrafficBilled.setRelationTypeDesc(callOlderVO.getRelationTypeDesc());
             ccTrafficBilled.setRelationTypeDesc(callOlderVO.getRelationTypeDesc());
             ccTrafficBilled.setContactLevel(callOlderVO.getContactLevel());
             ccTrafficBilled.setContactLevel(callOlderVO.getContactLevel());
             ccTrafficBilled.setCalledName(callOlderVO.getCalledName());
             ccTrafficBilled.setCalledName(callOlderVO.getCalledName());

+ 1 - 0
src/main/java/com/care/outcall/service/impl/KoalaOutCallServiceImpl.java

@@ -44,6 +44,7 @@ public class KoalaOutCallServiceImpl implements KoalaOutCallService {
         domain.setOlderId(ccKoalaLog.getOlderId());
         domain.setOlderId(ccKoalaLog.getOlderId());
         domain.setOrderId(ccKoalaLog.getOrderId());
         domain.setOrderId(ccKoalaLog.getOrderId());
         domain.setCalledId(ccKoalaLog.getCalledId());
         domain.setCalledId(ccKoalaLog.getCalledId());
+        domain.setHouseId(ccKoalaLog.getHouseId());
         domain.setCalledName(ccKoalaLog.getCalledName());
         domain.setCalledName(ccKoalaLog.getCalledName());
         domain.setRelationTypeDesc(ccKoalaLog.getRelationTypeDesc());
         domain.setRelationTypeDesc(ccKoalaLog.getRelationTypeDesc());
         domain.setContactLevel(ccKoalaLog.getContactLevel());
         domain.setContactLevel(ccKoalaLog.getContactLevel());

+ 3 - 0
src/main/java/com/care/outcall/vo/CallOlderVO.java

@@ -40,6 +40,9 @@ public class CallOlderVO implements Serializable {
     @ApiModelProperty(dataType = "String", name = "calledId", value = "被呼叫人ID")
     @ApiModelProperty(dataType = "String", name = "calledId", value = "被呼叫人ID")
     private String calledId;
     private String calledId;
 
 
+    @ApiModelProperty("房屋ID")
+    private String houseId;
+
     @ApiModelProperty("关系类别")
     @ApiModelProperty("关系类别")
     private String relationTypeDesc;
     private String relationTypeDesc;
 
 

+ 1 - 0
src/main/resources/mybatis/CcCallResultMapper.xml

@@ -11,6 +11,7 @@
         t.org_id as orgId,
         t.org_id as orgId,
         t.station_id as stationId,
         t.station_id as stationId,
         t.older_id as olderId,
         t.older_id as olderId,
+        t.house_id as houseId,
         t.order_id as orderId,
         t.order_id as orderId,
         t.session_id as sessionId,
         t.session_id as sessionId,
         t.call_status as callStatus,
         t.call_status as callStatus,

+ 20 - 2
src/main/resources/mybatis/KoalaOutCallMapper.xml

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