|
@@ -312,16 +312,19 @@ public class ClueServiceImpl extends ServiceImpl<ClueMapper, Clue> implements Cl
|
|
|
uploadFileMapper.insert(uf);
|
|
|
// 构建上传文件的目标路径
|
|
|
String filePath1 = filePath + realName;
|
|
|
-
|
|
|
// 在服务器上创建文件
|
|
|
File dest = new File(filePath1);
|
|
|
-
|
|
|
// 将上传的文件保存到目标路径
|
|
|
file.transferTo(dest);
|
|
|
-
|
|
|
// 文件上传成功的响应消息
|
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
|
msg.setMsg("上传成功");
|
|
|
+ ActionLog log = new ActionLog();
|
|
|
+ log.setItemId(clue.getId());
|
|
|
+ log.setCode("clue");
|
|
|
+ log.setUserId(user.getId());
|
|
|
+ log.setName("上传了文件");
|
|
|
+ log.setCreatTime(new Date());
|
|
|
return msg;
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|