| | |
| | | order by key |
| | | </select> |
| | | |
| | | <select id="selectDirsByTypes" resultType="com.lf.server.entity.ctrl.KeyValueEntity"> |
| | | select (select string_agg(code, ',') from lf.sys_dir where name = a.name) "key", name "value" |
| | | from lf.sys_dir a |
| | | <where> |
| | | 1 = 1 |
| | | <if test="types != null"> |
| | | and name in |
| | | <foreach item="type" collection="types" open="(" separator="," close=")"> |
| | | #{type} |
| | | </foreach> |
| | | </if> |
| | | <if test="dirs != null"> |
| | | and ${dirs} |
| | | </if> |
| | | </where> |
| | | group by name |
| | | order by key |
| | | </select> |
| | | |
| | | <select id="selectAnnexByTab" resultType="com.lf.server.entity.sys.AttachEntity"> |
| | | select a.* from lf.sys_attach a |
| | | <where> |