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