|
@@ -144,7 +144,15 @@ public class ClueServiceImpl extends ServiceImpl<ClueMapper, Clue> implements Cl
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
- public void isDelete(List<Integer> ids) {
|
|
|
|
|
|
+ public void isDelete(List<Integer> ids,String userId) {
|
|
|
|
+ for (Integer id : ids) {
|
|
|
|
+ ActionLog log = new ActionLog();
|
|
|
|
+ log.setItemId(id);
|
|
|
|
+ log.setName("删除了线索");
|
|
|
|
+ log.setCode("clue");
|
|
|
|
+ log.setUserId(userId);
|
|
|
|
+ log.setCreatTime(new Date());
|
|
|
|
+ }
|
|
UpdateWrapper<Clue> updateWrapper = new UpdateWrapper<>();
|
|
UpdateWrapper<Clue> updateWrapper = new UpdateWrapper<>();
|
|
updateWrapper.in("id", ids);
|
|
updateWrapper.in("id", ids);
|
|
Clue clue = new Clue();
|
|
Clue clue = new Clue();
|
|
@@ -204,7 +212,16 @@ public class ClueServiceImpl extends ServiceImpl<ClueMapper, Clue> implements Cl
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
- public void isRollback(List<Integer> ids) {
|
|
|
|
|
|
+ public void isRollback(List<Integer> ids,String userId) {
|
|
|
|
+ for (Integer id : ids) {
|
|
|
|
+ ActionLog log = new ActionLog();
|
|
|
|
+ log.setItemId(id);
|
|
|
|
+ log.setName("恢复了线索");
|
|
|
|
+ log.setCode("clue");
|
|
|
|
+ log.setUserId(userId);
|
|
|
|
+ log.setCreatTime(new Date());
|
|
|
|
+ }
|
|
|
|
+
|
|
UpdateWrapper<Clue> updateWrapper = new UpdateWrapper<>();
|
|
UpdateWrapper<Clue> updateWrapper = new UpdateWrapper<>();
|
|
updateWrapper.in("id", ids);
|
|
updateWrapper.in("id", ids);
|
|
Clue clue = new Clue();
|
|
Clue clue = new Clue();
|
|
@@ -287,7 +304,6 @@ public class ClueServiceImpl extends ServiceImpl<ClueMapper, Clue> implements Cl
|
|
File uploadDir = new File(filePath);
|
|
File uploadDir = new File(filePath);
|
|
if (!uploadDir.exists()) {
|
|
if (!uploadDir.exists()) {
|
|
uploadDir.mkdirs();
|
|
uploadDir.mkdirs();
|
|
-
|
|
|
|
}
|
|
}
|
|
UploadFile uf = new UploadFile();
|
|
UploadFile uf = new UploadFile();
|
|
uf.setName(originalFilename);
|
|
uf.setName(originalFilename);
|
|
@@ -330,7 +346,7 @@ public class ClueServiceImpl extends ServiceImpl<ClueMapper, Clue> implements Cl
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
// 文件上传失败的响应消息
|
|
// 文件上传失败的响应消息
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
- msg.setError("上传成功失败");
|
|
|
|
|
|
+ msg.setError("上传失败");
|
|
return msg;
|
|
return msg;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|