叫号记录增加字段
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -11,4 +11,5 @@ import java.time.Instant;
|
||||
@Data
|
||||
public class CallRecordVO extends TbCallQueue {
|
||||
private String note;
|
||||
private Long sinceAt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user