| | |
| | | <result property="filePath" column="file_path" /> |
| | | <result property="fileSize" column="file_size" /> |
| | | <result property="fileType" column="file_type" /> |
| | | <result property="attachmentCategory" column="attachment_category" /> |
| | | <result property="uploadTime" column="upload_time" /> |
| | | <result property="uploadBy" column="upload_by" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSysTaskAttachmentVo"> |
| | | select attachment_id, task_id, file_name, file_path, file_size, file_type, upload_time, upload_by |
| | | select attachment_id, task_id, file_name, file_path, file_size, file_type, attachment_category, upload_time, upload_by |
| | | from sys_task_attachment |
| | | </sql> |
| | | |
| | |
| | | <if test="taskId != null "> and task_id = #{taskId}</if> |
| | | <if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if> |
| | | <if test="fileType != null and fileType != ''"> and file_type = #{fileType}</if> |
| | | <if test="attachmentCategory != null and attachmentCategory != ''"> and attachment_category = #{attachmentCategory}</if> |
| | | <if test="uploadBy != null and uploadBy != ''"> and upload_by like concat('%', #{uploadBy}, '%')</if> |
| | | </where> |
| | | order by upload_time desc |
| | |
| | | <if test="filePath != null and filePath != ''">file_path,</if> |
| | | <if test="fileSize != null">file_size,</if> |
| | | <if test="fileType != null">file_type,</if> |
| | | <if test="attachmentCategory != null and attachmentCategory != ''">attachment_category,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="uploadBy != null and uploadBy != ''">upload_by,</if> |
| | | </trim> |
| | |
| | | <if test="filePath != null and filePath != ''">#{filePath},</if> |
| | | <if test="fileSize != null">#{fileSize},</if> |
| | | <if test="fileType != null">#{fileType},</if> |
| | | <if test="attachmentCategory != null and attachmentCategory != ''">#{attachmentCategory},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="uploadBy != null and uploadBy != ''">#{uploadBy},</if> |
| | | </trim> |
| | |
| | | <if test="filePath != null and filePath != ''">file_path = #{filePath},</if> |
| | | <if test="fileSize != null">file_size = #{fileSize},</if> |
| | | <if test="fileType != null">file_type = #{fileType},</if> |
| | | <if test="attachmentCategory != null and attachmentCategory != ''">attachment_category = #{attachmentCategory},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="uploadBy != null and uploadBy != ''">upload_by = #{uploadBy},</if> |
| | | </trim> |