叫号记录增加字段

This commit is contained in:
2024-09-14 15:50:06 +08:00
parent 6b9d488749
commit 90e8e4944e
2 changed files with 2 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ import org.apache.ibatis.annotations.Select;
*/
public interface TbCallQueueMapper extends BaseMapper<TbCallQueue> {
@Select("select * from tb_call_queue a " +
@Select("select a.*, b.note, TIMESTAMPDIFF(SECOND, a.create_time, NOW()) as since_at from tb_call_queue a " +
"left join tb_call_table b on a.call_table_id=b.id " +
"where a.shop_id=#{shopId} and a.call_table_id=#{callTableId}")
Page<CallRecordVO> selectCallRecord(Integer shopId, Integer callTableId, Page<Object> objectPage);

View File

@@ -11,4 +11,5 @@ import java.time.Instant;
@Data
public class CallRecordVO extends TbCallQueue {
private String note;
private Long sinceAt;
}