| | |
| | | limit #{limit} offset #{offset} |
| | | </select> |
| | | |
| | | <select id="selectCountForExport" resultType="java.lang.Integer"> |
| | | <select id="selectCountForUser" resultType="java.lang.Integer"> |
| | | select count(*) from lf.sys_download |
| | | <where> |
| | | create_user = #{createUser} and type = 2 |
| | | create_user = #{createUser} and type = #{type} |
| | | <if test="name != null"> |
| | | and name like #{name} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectByPageForExport" resultType="com.lf.server.entity.data.DownloadEntity"> |
| | | <select id="selectByPageForUser" resultType="com.lf.server.entity.data.DownloadEntity"> |
| | | select * from lf.sys_download |
| | | <where> |
| | | create_user = #{createUser} and type = 2 |
| | | create_user = #{createUser} and type = #{type} |
| | | <if test="name != null"> |
| | | and name like #{name} |
| | | </if> |