Browse Source

外呼机器人-分页

yangzian 2 năm trước cách đây
mục cha
commit
ae7e652ee9

+ 2 - 2
ruixuan-salesLeads/src/main/java/com.ruixuan.salesLeads/service/impl/TelephoneRobotServiceImpl.java

@@ -192,7 +192,7 @@ public class TelephoneRobotServiceImpl implements ITelephoneRobotService {
             recordPojo.setSuccessList(recordJson.getJSONArray("success"));
             recordPojo.setErrorList(recordJson.getJSONArray("error"));
         }
-        return ResultResponse.successMsg("查询导入记录成功。",callRecordList);
+        return ResultResponse.successMsg("查询导入记录成功。",new TableDataInfo(callRecordList,new Long(new PageInfo(callRecordList).getTotal()).intValue()));
     }
 
     /**
@@ -211,7 +211,7 @@ public class TelephoneRobotServiceImpl implements ITelephoneRobotService {
         //查询导入记录
         List<SaleClueCallResultPojo> callResultList = saleClueCallResultMapper.getSaleClueCallResultList(createTime,state);
 
-        return ResultResponse.successMsg("查询通话记录成功。",callResultList);
+        return ResultResponse.successMsg("查询通话记录成功。",new TableDataInfo(callResultList,new Long(new PageInfo(callResultList).getTotal()).intValue()));
     }
 
 

+ 1 - 0
ruixuan-salesLeads/src/main/resources/mapper/salesLeads/SaleClueInfoMapper.xml

@@ -200,6 +200,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 			sale_id = #{saleId}
 			WHERE
 				seller_id = #{sellerId}
+			  and sale_id != null
 	</update>