Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
P
project-credit
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • 互联网应用开发
  • project-credit
  • Wiki
  • sql

sql · Changes

Page history
chenchang created page: sql authored Aug 16, 2016 by 陈昌's avatar 陈昌
Hide whitespace changes
Inline Side-by-side
Showing with 11 additions and 7 deletions
+11 -7
  • sql.md sql.md +11 -7
  • No files found.
sql.md
View page @ ee33cdaf
###查询消费记录 ###查询消费记录
1. * Credit_User_ConsumeHistoryController 控制器
对应表 :user_account 对应表 :`user_account`;
查询条件:user_id 查询条件:`user_id`
```
2. select remain_times,used_times from `user_account` where `user_id` = 1 order by create_time
对应表 :user_account_log_statistics ```
查询条件:user_id ,time_index,data_key(这个字段暂时只有两种不同的值) 对应表 :`user_account_log_statistics`
查询条件:`user_id`,`time_index`,`data_key(这个字段暂时只有两种不同的值)`
```
SELECT time_index,data_value FROM user_account_log_statistics WHERE user_id = 1 AND data_key = 'consumption' AND time_index > 20160808 AND time_index < 20160816;
```
* Bin_Credit_ApiLogStatistics 脚本 * Bin_Credit_ApiLogStatistics 脚本
``` ```
......
Clone repository
  • api
  • crontab
  • db
  • doc
  • files
  • Home
  • sql