fix: cdr history
This commit is contained in:
@@ -156,6 +156,7 @@ public class UCdrServiceImpl extends ServiceImpl<UCdrMapper, UCdr> implements IU
|
|||||||
.downPacket(client.getDownPacket())
|
.downPacket(client.getDownPacket())
|
||||||
.trafficDown(client.getTrafficDown())
|
.trafficDown(client.getTrafficDown())
|
||||||
.trafficUp(client.getTrafficUp())
|
.trafficUp(client.getTrafficUp())
|
||||||
|
.activity(client.getActivity())
|
||||||
.build();
|
.build();
|
||||||
uCdr.setId(cdrId);
|
uCdr.setId(cdrId);
|
||||||
this.saveOrUpdate(uCdr);
|
this.saveOrUpdate(uCdr);
|
||||||
|
|||||||
@@ -96,6 +96,7 @@
|
|||||||
AND c.del_flag = 0
|
AND c.del_flag = 0
|
||||||
WHERE
|
WHERE
|
||||||
cdr.del_flag = 0
|
cdr.del_flag = 0
|
||||||
|
AND ch.id is not null
|
||||||
<if test="userId != null and userId != ''">
|
<if test="userId != null and userId != ''">
|
||||||
AND cdr.user_id = #{userId}
|
AND cdr.user_id = #{userId}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<if test="userId != null and userId != ''">
|
<if test="userId != null and userId != ''">
|
||||||
AND cdr.user_id = #{userId}
|
AND cdr.user_id = #{userId}
|
||||||
</if>
|
</if>
|
||||||
AND cdr.last_seen_time > ch.end_time
|
AND cdr.last_seen_time > ifnull( ch.end_time, 0 )
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getHistoryByUser" resultType="org.wfc.user.domain.vo.UClientHistoryUserVo">
|
<select id="getHistoryByUser" resultType="org.wfc.user.domain.vo.UClientHistoryUserVo">
|
||||||
@@ -44,6 +44,7 @@
|
|||||||
AND c.del_flag = 0
|
AND c.del_flag = 0
|
||||||
WHERE
|
WHERE
|
||||||
cdr.del_flag = 0
|
cdr.del_flag = 0
|
||||||
|
AND ch.id is not null
|
||||||
<if test="userId != null and userId != ''">
|
<if test="userId != null and userId != ''">
|
||||||
AND cdr.user_id = #{userId}
|
AND cdr.user_id = #{userId}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user