Commit b386bf1e by 朱继来

调整

parent 2b531f21
Showing with 3 additions and 2 deletions
......@@ -55,8 +55,8 @@ func main() {
initDb("InitCmsDB", util.Configs.Liexincms_databases.Dns)
// 获取上一天时间
prev_begin_time := time.Now().AddDate(0, 0, 0).Format("2006-01-02")
prev_end_time := time.Now().AddDate(0, 0, 0).Format("2006-01-02") + " 23:59:59"
prev_begin_time := time.Now().AddDate(0, 0, -1).Format("2006-01-02")
prev_end_time := time.Now().AddDate(0, 0, -1).Format("2006-01-02") + " 23:59:59"
row, err := db.CmsDB.Queryx("SELECT ul.userId, ul.loginTime, ui.name, ui.email, ui.department_name, ui.position_name FROM user_login AS ul INNER JOIN user_info as ui "+
"ON ul.userId = ui.userId WHERE ul.loginTime BETWEEN ? AND ? GROUP BY ul.userId", prev_begin_time, prev_end_time)
......@@ -70,6 +70,7 @@ func main() {
var post_data = make(map[string]interface{})
post_data["toUser"] = "xb@ichunt.com"
post_data["ccUser"] = "zjl@ichunt.com"
var user_login_data []interface{}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment