| | |
| | | select * |
| | | from sys_remote |
| | | where is_deleted = 0 |
| | | ORDER BY id DESC |
| | | </select> |
| | | |
| | | <select id="findByType" resultType="org.springblade.modules.remote.entity.Remote"> |
| | | SELECT * |
| | | FROM sys_remote r |
| | | WHERE 1=1 AND r.re_type = 0 |
| | | <if test="remote.type!=null and remote.type != '' or remote.type != 0 " > |
| | | AND r.type = #{remote.type} |
| | | </if> |
| | | AND r.is_deleted = 0 |
| | | |
| | | </select> |
| | | <select id="getRemoteList" resultType="org.springblade.modules.remote.entity.Remote"> |
| | | select |
| | | id,create_user,create_dept,create_time,update_user,update_time,status,is_deleted, |
| | | re_name,re_url,re_time,re_type,release_time,re_context,re_tp,type |
| | | from sys_remote |
| | | WHERE 1=1 AND is_deleted = 0 |
| | | <if test="type == 'ALL' "> |
| | | |
| | | </if> |
| | | <if test=" type =='SHOW' "> |
| | | AND re_type = 0 |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |