瀏覽代碼

修复 签到管理的查询问题

keyman1995 6 年之前
父節點
當前提交
686b1356c3
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      models/cases/signin.go

+ 1
- 1
models/cases/signin.go 查看文件

@@ -66,7 +66,7 @@ type SigninInfo struct {
66 66
 	var sql string
67 67
 	switch selectType {
68 68
 		case ALL:
69
-			sql = `select tcr.*,user_id from ta_checkin_record tcr LEFT JOIN ta_customer tc on tcr.customer_id = tc.customer_id where to_days(tcr.create_date) = to_days(now()) ORDER BY tcr.create_date DESC limit ` + strconv.Itoa((page-1)*pageSize) + `, ` + strconv.Itoa(pageSize)
69
+			sql = `select tcr.*,user_id from ta_checkin_record tcr LEFT JOIN ta_customer tc on tcr.customer_id = tc.customer_id ORDER BY tcr.create_date DESC limit ` + strconv.Itoa((page-1)*pageSize) + `, ` + strconv.Itoa(pageSize)
70 70
 		case TODAY:
71 71
 			sql = `select tcr.*,user_id from ta_checkin_record tcr LEFT JOIN ta_customer tc on tcr.customer_id = tc.customer_id where to_days(tcr.create_date) = to_days(now()) and tcr.case_id='` + caseid + `' ORDER BY tcr.create_date DESC limit ` + strconv.Itoa((page-1)*pageSize) + `, ` + strconv.Itoa(pageSize)
72 72
 		case THIS_WEEK: