| | |
| | | <where> |
| | | 1 = 1 |
| | | <if test="name != null"> |
| | | and upper(c.name) like #{name} |
| | | and upper(c.cn_name) like #{name} |
| | | </if> |
| | | <if test="type != null"> |
| | | and a.type = #{type} |
| | |
| | | </select> |
| | | |
| | | <select id="selectByPage" resultType="com.terra.system.entity.sys.ResOpEntity"> |
| | | select a.*,b.uname,c.name from lf.sys_res_op a inner join lf.sys_user b on a.userid = b.id inner join lf.sys_res c on a.resid=c.id |
| | | select a.*, b.uname, c.cn_name "name" |
| | | from lf.sys_res_op a |
| | | inner join lf.sys_user b on a.userid = b.id inner join lf.sys_res c on a.resid=c.id |
| | | <where> |
| | | 1 = 1 |
| | | <if test="name != null"> |
| | | and upper(c.name) like #{name} |
| | | and upper(c.cn_name) like #{name} |
| | | </if> |
| | | <if test="type != null"> |
| | | and a.type = #{type} |