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.treename AS "treeName", a.other_id AS "otherId" /*a.check_reason AS "checkReason", a.check_by AS "checkBy", a.check_date AS "checkDate"*/ INSERT INTO sys_file_temp_mag( id, create_by, create_date, update_by, update_date, remarks, del_flag, file_cd, file_nm, file_type, file_path, file_ext, treename, other_id ) VALUES ( #{id}, #{createBy.id}, #{createDate}, #{updateBy.id}, #{updateDate}, #{remarks}, #{delFlag}, #{fileCd}, #{fileNm}, #{fileType}, #{filePath}, #{fileExt}, #{treeName}, #{otherId} ) UPDATE sys_file_temp_mag 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}, treename=#{treeName}, other_id = #{otherId} WHERE id = #{id} DELETE FROM sys_file_temp_mag WHERE id = #{id} UPDATE sys_file_temp_mag SET del_flag = #{DEL_FLAG_DELETE} WHERE id = #{id}