2
0

fix: cdr history

This commit is contained in:
caiyuchao
2024-12-17 20:31:33 +08:00
parent ce30352c3d
commit b4c7f052fd
3 changed files with 4 additions and 1 deletions

View File

@@ -156,6 +156,7 @@ public class UCdrServiceImpl extends ServiceImpl<UCdrMapper, UCdr> implements IU
.downPacket(client.getDownPacket())
.trafficDown(client.getTrafficDown())
.trafficUp(client.getTrafficUp())
.activity(client.getActivity())
.build();
uCdr.setId(cdrId);
this.saveOrUpdate(uCdr);

View File

@@ -96,6 +96,7 @@
AND c.del_flag = 0
WHERE
cdr.del_flag = 0
AND ch.id is not null
<if test="userId != null and userId != ''">
AND cdr.user_id = #{userId}
</if>

View File

@@ -22,7 +22,7 @@
<if test="userId != null and userId != ''">
AND cdr.user_id = #{userId}
</if>
AND cdr.last_seen_time > ch.end_time
AND cdr.last_seen_time > ifnull( ch.end_time, 0 )
</select>
<select id="getHistoryByUser" resultType="org.wfc.user.domain.vo.UClientHistoryUserVo">
@@ -44,6 +44,7 @@
AND c.del_flag = 0
WHERE
cdr.del_flag = 0
AND ch.id is not null
<if test="userId != null and userId != ''">
AND cdr.user_id = #{userId}
</if>