i2bill_acquirer_student_page_select.tpl 460 B

1234567891011121314151617181920
  1. SELECT
  2. *
  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}}
  19. ORDER BY {{.__sort__}}
  20. LIMIT {{.rows}} OFFSET {{.offset}}