@@ -79,5 +79,6 @@ public interface CallLogMapper {
*/
int deleteById(Integer id);
+ List<CallLog> selectByUid(String uid);
}
@@ -108,6 +108,7 @@
</where>
</select>
+
<!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into call_log(uid, aid, admin_name, contacts, mobile_last_digits, status, duration, remarks, create_time)
@@ -185,5 +186,11 @@
where id = #{id}
</delete>
+ <select id="selectByUid" resultMap="CallLogMap">
+ select
+ <include refid="CallLogAllSql"/>
+ from call_log
+ where uid = #{uid}
+ </select>
</mapper>
@@ -191,9 +191,7 @@ public class UserOutboundServiceImpl extends BaseMybatisDao<CallLogMapper> imple
* @param uid
private void pushCountUser(String uid) {
- CallLog callLog=new CallLog();
- callLog.setUid(uid);
- List<CallLog> callLogList = callLogMapper.findCallLogList(callLog);
+ List<CallLog> callLogList = callLogMapper.selectByUid(uid);
int count=0;
int duration=0;
for (CallLog log : callLogList) {