fix: cdr history
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user