提交 32a34ac9 作者: ZhangJingKun

去掉人物基本休息修改历史记录保存

上级 6adabc6b
...@@ -28,8 +28,8 @@ public class CharacterInfoServiceImpl implements CharacterInfoService { ...@@ -28,8 +28,8 @@ public class CharacterInfoServiceImpl implements CharacterInfoService {
@Autowired @Autowired
CharacterBasicInfoService characterBasicInfoService; CharacterBasicInfoService characterBasicInfoService;
@Autowired // @Autowired
CharacterBasicInfoHistoryService characterBasicInfoHistoryService; // CharacterBasicInfoHistoryService characterBasicInfoHistoryService; //记录人物基本信息修改历史
@Autowired @Autowired
CharacterChangeInfoService characterChangeInfoService; CharacterChangeInfoService characterChangeInfoService;
...@@ -83,11 +83,11 @@ public class CharacterInfoServiceImpl implements CharacterInfoService { ...@@ -83,11 +83,11 @@ public class CharacterInfoServiceImpl implements CharacterInfoService {
} }
characterTagMapService.saveBatch(list); characterTagMapService.saveBatch(list);
//记录任务基本信息修改记录 //记录人物基本信息修改记录
CharacterBasicInfoHistory characterBasicInfoHistory = new CharacterBasicInfoHistory(); // CharacterBasicInfoHistory characterBasicInfoHistory = new CharacterBasicInfoHistory();
BeanUtils.copyProperties(characterBasicInfo, characterBasicInfoHistory); // BeanUtils.copyProperties(characterBasicInfo, characterBasicInfoHistory);
characterBasicInfoHistory.setId(null); // characterBasicInfoHistory.setId(null);
characterBasicInfoHistoryService.save(characterBasicInfoHistory); // characterBasicInfoHistoryService.save(characterBasicInfoHistory);
return Result.OK(); return Result.OK();
} }
...@@ -121,7 +121,7 @@ public class CharacterInfoServiceImpl implements CharacterInfoService { ...@@ -121,7 +121,7 @@ public class CharacterInfoServiceImpl implements CharacterInfoService {
characterBasicInfoService.saveBatch(characterBasicInfoList); characterBasicInfoService.saveBatch(characterBasicInfoList);
characterChangeInfoService.saveBatch(characterChangeInfoList); characterChangeInfoService.saveBatch(characterChangeInfoList);
characterBasicInfoHistoryService.saveBatch(characterBasicInfoHistoryList); //characterBasicInfoHistoryService.saveBatch(characterBasicInfoHistoryList);
return Result.OK(); return Result.OK();
} }
...@@ -183,7 +183,7 @@ public class CharacterInfoServiceImpl implements CharacterInfoService { ...@@ -183,7 +183,7 @@ public class CharacterInfoServiceImpl implements CharacterInfoService {
characterTagMapService.saveBatch(list); characterTagMapService.saveBatch(list);
} }
// 关联信息修改 // todo 关联信息修改
// String uid = characterVo.getUid(); // String uid = characterVo.getUid();
// List<String> listId = characterBasicInfoService.getCorrelationByUid(uid); // List<String> listId = characterBasicInfoService.getCorrelationByUid(uid);
// for (String s : listId) { // for (String s : listId) {
...@@ -192,11 +192,11 @@ public class CharacterInfoServiceImpl implements CharacterInfoService { ...@@ -192,11 +192,11 @@ public class CharacterInfoServiceImpl implements CharacterInfoService {
// } // }
//记录人物基本信息修改记录 //记录人物基本信息修改记录
CharacterBasicInfoHistory characterBasicInfoHistory = new CharacterBasicInfoHistory(); // CharacterBasicInfoHistory characterBasicInfoHistory = new CharacterBasicInfoHistory();
BeanUtils.copyProperties(characterBasicInfo, characterBasicInfoHistory); // BeanUtils.copyProperties(characterBasicInfo, characterBasicInfoHistory);
characterBasicInfoHistory.setId(null); // characterBasicInfoHistory.setId(null);
characterBasicInfoHistory.setCreateTime(new Date()); // characterBasicInfoHistory.setCreateTime(new Date());
characterBasicInfoHistoryService.save(characterBasicInfoHistory); // characterBasicInfoHistoryService.save(characterBasicInfoHistory);
return Result.OK(); return Result.OK();
} }
...@@ -313,10 +313,10 @@ public class CharacterInfoServiceImpl implements CharacterInfoService { ...@@ -313,10 +313,10 @@ public class CharacterInfoServiceImpl implements CharacterInfoService {
characterChangeInfoService.updateById(cci2); characterChangeInfoService.updateById(cci2);
//记录人物基本信息修改记录 //记录人物基本信息修改记录
CharacterBasicInfoHistory characterBasicInfoHistory = new CharacterBasicInfoHistory(); // CharacterBasicInfoHistory characterBasicInfoHistory = new CharacterBasicInfoHistory();
BeanUtils.copyProperties(characterBasicInfo, characterBasicInfoHistory); // BeanUtils.copyProperties(characterBasicInfo, characterBasicInfoHistory);
characterBasicInfoHistory.setId(null); // characterBasicInfoHistory.setId(null);
characterBasicInfoHistoryService.save(characterBasicInfoHistory); // characterBasicInfoHistoryService.save(characterBasicInfoHistory);
return Result.OK(characterVoNew); return Result.OK(characterVoNew);
} }
...@@ -586,9 +586,9 @@ public class CharacterInfoServiceImpl implements CharacterInfoService { ...@@ -586,9 +586,9 @@ public class CharacterInfoServiceImpl implements CharacterInfoService {
characterChangeInfoService.save(characterChangeInfo); characterChangeInfoService.save(characterChangeInfo);
//记录任务基本信息修改记录 //记录任务基本信息修改记录
CharacterBasicInfoHistory characterBasicInfoHistory = new CharacterBasicInfoHistory(); // CharacterBasicInfoHistory characterBasicInfoHistory = new CharacterBasicInfoHistory();
BeanUtils.copyProperties(characterBasicInfo, characterBasicInfoHistory); // BeanUtils.copyProperties(characterBasicInfo, characterBasicInfoHistory);
characterBasicInfoHistory.setId(null); // characterBasicInfoHistory.setId(null);
characterBasicInfoHistoryService.save(characterBasicInfoHistory); // characterBasicInfoHistoryService.save(characterBasicInfoHistory);
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论