| | |
| | | <select id="selectCountForUser" resultType="java.lang.Integer"> |
| | | select count(*) from lf.sys_download |
| | | <where> |
| | | create_user = #{createUser} and type = #{type} |
| | | create_user = #{createUser} and type in (${types}) |
| | | <if test="name != null"> |
| | | and (upper(name) like #{name} or upper(descr) like #{name}) |
| | | </if> |
| | |
| | | <select id="selectByPageForUser" resultType="com.lf.server.entity.data.DownloadEntity"> |
| | | select *, fn_uname(create_user) createName from lf.sys_download |
| | | <where> |
| | | create_user = #{createUser} and type = #{type} |
| | | create_user = #{createUser} and type in (${types}) |
| | | <if test="name != null"> |
| | | and (upper(name) like #{name} or upper(descr) like #{name}) |
| | | </if> |