i2bill_acquirer_student_page_count.tpl 420 B

123456789101112131415161718
  1. SELECT
  2. count(*) records
  3. FROM
  4. i2bill_acquirer_student
  5. WHERE
  6. del_flag = 0
  7. {{if ne .user_id ""}}
  8. and user_id = '{{.user_id}}'
  9. {{end}}
  10. {{if ne .create_time_sta ""}}
  11. and create_time >= "{{.create_time_sta}}"
  12. {{end}}
  13. {{if ne .create_time_end ""}}
  14. and create_time between '0000-00-00 00:00:00' and "{{.create_time_end}}"
  15. {{end}}
  16. {{if ne .check_state ""}}
  17. and check_state = '{{.check_state}}'
  18. {{end}}