更新叫乘过程中状态。
This commit is contained in:
1 parent
d2df03f023
commit
ba77386575
3 files changed
+17
-2
No files matched your search
+4
-1
@@ -26,10 +26,13 @@ public interface AptDutyStateMapper
|
||||
int updateCallStart(@Param("gyid") String gyid, @Param("jcid") String jcid,
|
||||
@Param("tempCall") boolean tempCall);
|
||||
|
||||
/** -> 3 已应答待离寓:SIP ConfbridgeJoin 或平板 ANSWERED+VERIFIED */
|
||||
/** -> 3 已应答待离寓:房间腿挂断(HANGUP)或平板 ANSWERED+VERIFIED */
|
||||
int updateAnswered(@Param("gyid") String gyid, @Param("jcid") String jcid,
|
||||
@Param("fromStates") List<String> fromStates);
|
||||
|
||||
/** 房间入会:仅补记 hjxysj,ryzt 保持 1 叫乘中(待离寓由挂断触发) */
|
||||
int updateJoinConf(@Param("gyid") String gyid, @Param("jcid") String jcid);
|
||||
|
||||
/** 1 叫乘中 -> 2 叫乘报警(30s 无入会 / 平板 NO_ANSWER / FAILED) */
|
||||
int updateCallFailed(@Param("gyid") String gyid, @Param("jcid") String jcid);
|
||||
|
||||
|
||||
+4
-1
@@ -17,7 +17,10 @@ public interface IAptDutyStateService
|
||||
/** 0 待叫乘 -> 1 叫乘中 */
|
||||
int callStart(String jcid);
|
||||
|
||||
/** -> 3 已应答待离寓 + finish_jc=1(SIP 入会 / 平板 VERIFIED) */
|
||||
/** 房间入会:补记 hjxysj,ryzt 保持 1 叫乘中(不变待离寓) */
|
||||
int joinConf(String jcid);
|
||||
|
||||
/** -> 3 已应答待离寓 + finish_jc=1(房间挂断 / 平板 VERIFIED) */
|
||||
int answered(String jcid);
|
||||
|
||||
/** 1 叫乘中 -> 2 叫乘报警 */
|
||||
|
||||
@@ -243,6 +243,15 @@
|
||||
AND j.ryzt = '1' AND j.finish_jc = '0' AND j.finish_ly = '0'
|
||||
AND j.call_mode = 'SIP'
|
||||
AND j.jcsj_s IS NOT NULL AND j.jcsj_s <= #{deadline}
|
||||
<!-- 房间已入会(JOINED_CONF):通话进行中,不做 30s 无应答报警判定;
|
||||
挂断后 call_state 迁出 JOINED_CONF,恢复可见。限定 ROOM:
|
||||
值班台腿先入会不代表房间已接听,房间超时仍应报警 -->
|
||||
AND NOT EXISTS (
|
||||
SELECT 1 FROM apt_call_session s
|
||||
WHERE s.gyid = j.gyid AND s.jcid = j.jcid
|
||||
AND s.leg_role = 'ROOM'
|
||||
AND s.call_state = 'JOINED_CONF' AND s.deleted = 0
|
||||
)
|
||||
ORDER BY j.jcsj_s ASC
|
||||
LIMIT #{limit}
|
||||
</select>
|
||||
|
||||
Reference in new issue
Block a user