Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Commit

Permalink
feat: offer sql statement related message module
Browse files Browse the repository at this point in the history
  • Loading branch information
Crazyokd committed Mar 11, 2023
1 parent cda649d commit 508b164
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/resources/sql/query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@ where type = 0 and ((request_id = 501 and accept_id = 502) or



/*
消息模块
*/

select `from_id`, `type`, `content_type`, `update_time` from `message`
where type = 0 and `update_time` <= DATE_ADD('2023-03-18 20:01:19', INTERVAL 10 DAY) and (from_id = 501 and to_id = 503 or from_id = 503 and to_id = 501)
order by update_time
limit 0, 2;

select * from text_content
where id = 1001;

/*
更多模块(工具栏)
*/
Expand Down

0 comments on commit 508b164

Please sign in to comment.