| | |
| | | attachmentInfo.setFileSize(file.getSize()); |
| | | attachmentInfo.setModule(module); |
| | | attachmentInfo.setFileType(getType(suffix)); |
| | | /* attachmentInfo.setCreateBy(SecurityUtils.getUsername()); |
| | | attachmentInfo.setUpdateBy(SecurityUtils.getUsername());*/ |
| | | attachmentInfo.setCreateBy(SecurityUtils.getUsername()); |
| | | attachmentInfo.setUpdateBy(SecurityUtils.getUsername()); |
| | | attachmentInfo.setUpdateTime(new Date()); |
| | | attachmentInfo.setCreateTime(new Date()); |
| | | attachmentInfoList.add(attachmentInfo); |
| | |
| | | attachmentInfo.setFileSize(file.getSize()); |
| | | attachmentInfo.setModule(module); |
| | | attachmentInfo.setFileType(getType(suffix)); |
| | | /* attachmentInfo.setCreateBy(SecurityUtils.getUsername()); |
| | | attachmentInfo.setUpdateBy(SecurityUtils.getUsername());*/ |
| | | attachmentInfo.setCreateBy(SecurityUtils.getUsername()); |
| | | attachmentInfo.setUpdateBy(SecurityUtils.getUsername()); |
| | | attachmentInfo.setUpdateTime(new Date()); |
| | | attachmentInfo.setCreateTime(new Date()); |
| | | attachmentInfoList.add(attachmentInfo); |
| | |
| | | <mapper namespace="com.ruoyi.file.mapper.AttachmentInfoMapper" > |
| | | <insert id="saveBatch" useGeneratedKeys="true" keyProperty="id" > |
| | | insert into attachment (file_key,file_path,file_url,file_name,file_suffix,file_desc,file_size,file_type,module,del_flag |
| | | ,create_by,create_time,update_by,update_time)values |
| | | ,create_by,create_time,update_by,update_time,business_id,remark)values |
| | | <foreach collection="attachmentList" item="attachment" separator=","> |
| | | (#{attachment.fileKey},#{attachment.filePath},#{attachment.fileUrl},#{attachment.fileName},#{attachment.fileSuffix},#{attachment.fileDesc}, |
| | | #{attachment.fileSize},#{attachment.fileType},#{attachment.module},#{attachment.delFlag},#{attachment.createBy}, |
| | | #{attachment.createTime},#{attachment.updateBy},#{attachment.updateTime}) |
| | | #{attachment.createTime},#{attachment.updateBy},#{attachment.updateTime},#{attachment.businessId},#{attachment.remark}) |
| | | </foreach> |
| | | </insert> |
| | | <update id="updateBusinessIdBatch"> |