fix: callRecord报错修复
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user