叫号接口

This commit is contained in:
张松
2025-02-21 14:44:34 +08:00
parent 0e7475d894
commit 14a65c4787
31 changed files with 1594 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.czg.service.account.mapper.CallQueueMapper">
<select id="selectCallRecord" resultType="com.czg.account.dto.calltable.CallRecordVO">
select tb_call_queue.*, tb_call_table.note, TIMESTAMPDIFF(SECOND, tb_call_queue.create_time, NOW()) as since_at
from tb_call_queue
left join tb_call_table on tb_call_queue.call_table_id = tb_call_table.id
${qwSql}
limit ${pageOffset}, ${pageSize}
</select>
<select id="selectCallRecord_COUNT" resultType="java.lang.Long">
select count(1)
from tb_call_queue
left join tb_call_table on tb_call_queue.call_table_id = tb_call_table.id
${qwSql}
</select>
</mapper>