| | |
| | | ]]> |
| | | </where> |
| | | </select> |
| | | <select id="selectWorkCountIn" resultType="com.zy.asrs.entity.ViewWorkCountInView"> |
| | | SELECT * |
| | | FROM ( |
| | | select |
| | | ROW_NUMBER() OVER(Order by a.oneday desc) as row |
| | | , * |
| | | FROM( |
| | | SELECT * FROM asr_wrkin_count_view) a ) b |
| | | WHERE 1=1 and b.row between ((#{curr}-1)*#{limit}+1) and (#{curr}*#{limit}) |
| | | |
| | | </select> |
| | | <select id="selectWorkCountInTotal" resultType="java.lang.Integer"> |
| | | SELECT COUNT(*) FROM asr_wrkin_count_view |
| | | </select> |
| | | <select id="selectWorkCountOut" resultType="com.zy.asrs.entity.ViewWorkCountInView"> |
| | | SELECT * |
| | | FROM ( |
| | | select |
| | | ROW_NUMBER() OVER(Order by a.oneday desc) as row |
| | | , * |
| | | FROM( |
| | | SELECT * FROM asr_wrkout_count_view) a ) b |
| | | WHERE 1=1 and b.row between ((#{curr}-1)*#{limit}+1) and (#{curr}*#{limit}) |
| | | </select> |
| | | <select id="selectWorkCountOutTotal" resultType="java.lang.Integer"> |
| | | SELECT COUNT(*) FROM asr_wrkout_count_view |
| | | </select> |
| | | |
| | | </mapper> |