|
|
|
@ -20,15 +20,15 @@
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="fileDirs">SELECT INF_TYPE
|
|
|
|
|
, CONCAT('/applications/adds/files/', DIR, DATE_FORMAT(CURRENT_DATE, '/%Y/%m/%d/')) DIR
|
|
|
|
|
, CONCAT('d:/data/adds/files/', DIR, DATE_FORMAT(CURRENT_DATE, '/%Y/%m/%d/')) DIR
|
|
|
|
|
FROM (
|
|
|
|
|
SELECT '00' INF_TYPE, 'attachment/' DIR FROM DUAL UNION
|
|
|
|
|
SELECT '01' INF_TYPE, 'document/' DIR FROM DUAL UNION
|
|
|
|
|
SELECT '02' INF_TYPE, 'article/' DIR FROM DUAL UNION
|
|
|
|
|
|
|
|
|
|
SELECT '100' INF_TYPE, 'attachment/dsuse' DIR FROM DUAL UNION
|
|
|
|
|
SELECT '110' INF_TYPE, 'attachment/dsusedtl' DIR FROM DUAL UNION
|
|
|
|
|
SELECT '200' INF_TYPE, 'document/dsuse' DIR FROM DUAL
|
|
|
|
|
SELECT '00' INF_TYPE, 'attachment' DIR FROM DUAL UNION
|
|
|
|
|
SELECT '01' INF_TYPE, 'document' DIR FROM DUAL UNION
|
|
|
|
|
SELECT '02' INF_TYPE, 'article' DIR FROM DUAL UNION
|
|
|
|
|
|
|
|
|
|
SELECT '100' INF_TYPE, 'dsuseprdimg' DIR FROM DUAL UNION /* 폐기상품이미지 */
|
|
|
|
|
SELECT '110' INF_TYPE, 'dsuseimg' DIR FROM DUAL UNION /* 폐기 이미지 */
|
|
|
|
|
SELECT '200' INF_TYPE, 'dsusedoc' DIR FROM DUAL /* 폐기보고 문서 */
|
|
|
|
|
) FILE_DIRS</sql>
|
|
|
|
|
|
|
|
|
|
<sql id="selectFiles">
|
|
|
|
@ -127,4 +127,4 @@ DELETE FROM TB_FILE
|
|
|
|
|
<if test="fileIDs != null">WHERE FILE_ID IN (<foreach collection="fileIDs" item="fileID" separator=",">#{fileID}</foreach>)</if>
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|
</mapper>
|
|
|
|
|