| | |
| | | LEFT JOIN ums_image_resources t8 on t8.belong_to_id=t1.id |
| | | LEFT JOIN ums_video_point t9 on t9.id=t2.video_point_id |
| | | <where> |
| | | t1.state IN (7,8) |
| | | <if test="queryForViolationParam.eventSource != null"> |
| | | and t1.event_source=#{queryForViolationParam.eventSource} |
| | | </if> |
| | |
| | | and to_days(create_time) = TO_DAYS(now()); |
| | | </select> |
| | | |
| | | <select id="selectStudyCount" resultType="java.lang.Long"> |
| | | select count(1) |
| | | from ums_base_case |
| | | where state =3 |
| | | and to_days(create_time) = TO_DAYS(now()); |
| | | </select> |
| | | |
| | | <select id="dayCount" resultType="java.lang.Integer"> |
| | | select count(1) |
| | | from ums_base_case |