fix: callRecord报错修复

This commit is contained in:
张松 2024-12-11 14:02:53 +08:00
parent 0756092e4d
commit 0bd6ed40a2
2 changed files with 2 additions and 2 deletions

View File

@ -7,6 +7,6 @@ import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
public class CallRecordVO extends TbCallQueue { public class CallRecordVO extends TbCallQueue {
private String note; private String tableNote;
private Long sinceAt; private Long sinceAt;
} }

View File

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