a.id AS "id",
a.create_by AS "createBy.id",
a.create_date AS "createDate",
a.update_by AS "updateBy.id",
a.update_date AS "updateDate",
a.remarks AS "remarks",
a.del_flag AS "delFlag",
a.file_cd AS "fileCd",
a.file_nm AS "fileNm",
a.file_type AS "fileType",
a.file_path AS "filePath",
a.file_ext AS "fileExt",
a.other_id AS "otherId",
a.check_reason AS "checkReason",
a.check_by AS "checkBy",
a.check_date AS "checkDate"
INSERT INTO file_management(
id,
create_by,
create_date,
remarks,
del_flag,
file_cd,
file_nm,
file_type,
other_id,
ACTION_TYPE,
PROJECT_ID,
SECTIONID,
FILE_PATH,
FILE_EXT
) VALUES (
#{id},
#{createBy.id},
#{createDate},
#{remarks},
#{delFlag},
#{fileCd},
#{fileNm},
#{fileType},
#{otherId},
#{actionType},
#{projectId},
#{sectionId},
#{filePath},
#{fileExt}
)
UPDATE file_management SET
UPDATE_BY = #{updateBy.id},
UPDATE_DATE = #{updateDate},
KEEPFILESTATUS = #{keepFileStatus},
KEEPFILETREEID = #{keeFileTreeId}
WHERE ID = #{id}
INSERT INTO file_management(
id,
create_by,
create_date,
update_by,
update_date,
remarks,
del_flag,
file_cd,
file_nm,
file_type,
file_path,
file_ext,
other_id
) VALUES (
#{id},
#{createBy.id},
#{createDate},
#{updateBy.id},
#{updateDate},
#{remarks},
#{delFlag},
#{fileCd},
#{fileNm},
#{fileType},
#{filePath},
#{fileExt},
#{otherId}
)
INSERT INTO file_management(
id,
create_by,
create_date,
update_by,
update_date,
remarks,
del_flag,
file_cd,
file_nm,
file_type,
file_path,
file_ext,
other_id,
project_id,
sectionid,
CHECK_BY,
CHECK_DATE,
FILE_STATUS,
CHECK_REASON
) VALUES (
#{id},
#{createBy.id},
#{createDate},
#{updateBy.id},
#{updateDate},
#{remarks},
#{delFlag},
#{fileCd},
#{fileNm},
#{fileType},
#{filePath},
#{fileExt},
#{otherId},
#{projectId},
#{sectionId},
#{checkBy},
#{checkDate},
#{fileStatus},
#{checkReason}
)
UPDATE file_management SET
update_by = #{updateBy.id},
update_date = #{updateDate},
remarks = #{remarks},
file_cd = #{fileCd},
file_nm = #{fileNm},
file_type = #{fileType},
file_path = #{filePath},
file_ext = #{fileExt},
other_id = #{otherId}
WHERE id = #{id}
UPDATE file_management SET
CHECK_BY = #{checkBy},
CHECK_DATE =#{checkDate},
FILE_STATUS =#{fileStatus},
CHECK_REASON=#{checkReason}
WHERE id = #{id}
DELETE FROM file_management
WHERE id = #{id}
UPDATE file_management SET
del_flag = #{DEL_FLAG_DELETE}
WHERE id = #{id}