|
|
|
@ -36,17 +36,26 @@
|
|
|
|
|
SELECT A.*, FILE_PATH URL
|
|
|
|
|
FROM TB_FILE A
|
|
|
|
|
WHERE FILE_ID IN (<foreach collection="fileIDs" item="fileID" separator=",">#{fileID}</foreach>)
|
|
|
|
|
ORDER BY FILE_ID</if>
|
|
|
|
|
<if test="fileIDs == null"><include refid="utility.paging-prefix" />
|
|
|
|
|
ORDER BY FILE_ID
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<if test="fileIDs == null">
|
|
|
|
|
<include refid="utility.paging-prefix" />
|
|
|
|
|
SELECT A.*, FILE_PATH URL
|
|
|
|
|
FROM TB_FILE A
|
|
|
|
|
<where>
|
|
|
|
|
<if test="infoType != null"> AND A.INF_TYPE = #{infoType}</if>
|
|
|
|
|
<if test="infoKeys != null"> AND INF_KEY IN (<foreach collection="infoKeys" item="infoKey" separator=",">#{infoKey}</foreach>)</if>
|
|
|
|
|
<if test="by != null and term != null">
|
|
|
|
|
AND ${by} = #{term}
|
|
|
|
|
</if>
|
|
|
|
|
AND USE_YN = 'Y'
|
|
|
|
|
</where>
|
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
|
<include refid="utility.paging-suffix" /></if></sql>
|
|
|
|
|
<include refid="utility.paging-suffix" />
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="getFileList" parameterType="map" resultType="dataobject">/* 파일 목록 조회(fileMapper.getFileList) */
|
|
|
|
|
<include refid="selectFiles" /></select>
|
|
|
|
|