ÎļþÃû´Ó src/main/resources/mapper/show/PublishMapper.xml ÐÞ¸Ä |
| | |
| | | <select id="selectCount" resultType="java.lang.Integer"> |
| | | select count(*) from lf.sys_publish |
| | | <where> |
| | | 1 = 1 |
| | | <if test="name != null"> |
| | | upper(name) like #{name} |
| | | and upper(name) like #{name} |
| | | </if> |
| | | <if test="dircode != null"> |
| | | and dirid like #{dircode} |
| | | </if> |
| | | <if test="type != null"> |
| | | and ${type} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | select ST_AsText(geom) "geom", a.*, fn_get_fullname(a.depid, 1) depName, fn_get_fullname(a.dirid, 2) dirName, fn_uname(create_user) createName, fn_uname(update_user) updateName |
| | | from lf.sys_publish a |
| | | <where> |
| | | 1 = 1 |
| | | <if test="name != null"> |
| | | upper(name) like #{name} |
| | | and upper(name) like #{name} |
| | | </if> |
| | | <if test="dircode != null"> |
| | | and dirid like #{dircode} |
| | | </if> |
| | | <if test="type != null"> |
| | | and ${type} |
| | | </if> |
| | | </where> |
| | | order by id desc |
| | | order by a.update_time desc, a.create_time desc |
| | | limit #{limit} offset #{offset} |
| | | </select> |
| | | |
| | |
| | | select * from lf.sys_publish where id in (${ids}) order by id desc; |
| | | </select> |
| | | |
| | | <select id="selectCodesForDir" resultType="java.lang.String"> |
| | | select code |
| | | from lf.sys_dir |
| | | <where> |
| | | <choose> |
| | | <when test="isDom > 0"> |
| | | name in ('DOM', 'æ°åæ£å°å½±åå¾') |
| | | </when> |
| | | <otherwise> |
| | | name in ('DEM', 'æ°åé«ç¨æ¨¡å') |
| | | </otherwise> |
| | | </choose> |
| | | <if test="dircode != null"> |
| | | and code like #{dircode} |
| | | </if> |
| | | </where> |
| | | order by code; |
| | | </select> |
| | | |
| | | <insert id="insert" parameterType="com.moon.server.entity.data.PublishEntity"> |
| | | insert into lf.sys_publish |
| | | (regid,name,url,path,type,status,dirid,depid,min,max,json,create_user,create_time,bak) |