清空注释代码
This commit is contained in:
+1
-179
@@ -2729,7 +2729,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
||||
row.setAttrInfoMap(getAttrMap);
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
||||
//1:数据迁移方案
|
||||
//方案一:清空附件 重新挂靠
|
||||
//1.流程:
|
||||
@@ -2752,184 +2752,6 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
||||
//sar_buss_stand_attr_info表,记录标准对应附件(目前只有发布稿原文的字段,没有发布稿译文的存储字段。。)
|
||||
//att_file_01——att_file_10表,记录附件对应存储位置
|
||||
//
|
||||
|
||||
//当前 问题 仅仅对比文件名称 文件名称不一致的 则XX
|
||||
:
|
||||
*/
|
||||
// @Override
|
||||
// public ResponseMessage emptyFileAnewStorage() {
|
||||
// //1 查询 新系统的所有数据 其中包含为 国内 海外 获取到 DUILD_Id 字段用来对比
|
||||
// List<OldSystem> SarBussionessStandList = sarBussionessStandEODao.selectListInfo();
|
||||
// List<OldSystem> SarStandardsInfoList = sarStandardsInfoDao.selectListInfo();
|
||||
// // 获取 kmpro_addon34 表的 lore_doc_id
|
||||
// List<OldSystem> oldSystemInfoList = sarStandardsInfoDao.selectOldSystemInfo();
|
||||
// //组合数据
|
||||
// List<OldSystem> oldArr = new ArrayList();
|
||||
// List<OldSystem> oldInfoArr = new ArrayList();
|
||||
// //文件id
|
||||
// List<String> fileIdList = new ArrayList<>();
|
||||
// //文件路径
|
||||
// List<String> fileSrcList = new ArrayList<>();
|
||||
// //国内海外
|
||||
// for (OldSystem oldSystem: oldSystemInfoList){
|
||||
// for (OldSystem SarStandardsInfo: SarStandardsInfoList){
|
||||
// //lore_doc_id 与 DUILD_Id
|
||||
// if(StringUtils.isNotBlank(SarStandardsInfo.getBuildId())){
|
||||
// if(oldSystem.getLoreDocId().equals(SarStandardsInfo.getBuildId())){
|
||||
// //查询文件是否是多个 是否存在
|
||||
// List<OldSystem> fileList = sarStandardsInfoDao.OldSystemFile(oldSystem.getLoreDocId());
|
||||
// if(!fileList.isEmpty()){
|
||||
// if(fileList.size()==1){
|
||||
// //判断文件是否存在 重新存入文件 获取id 存入att 表
|
||||
// OldSystem old = new OldSystem();
|
||||
// File file = new File(fileList.get(0).getFileSrc());
|
||||
// AttFileVo attFileVo = attFileEOService.saveFileInfo(file);
|
||||
// //文件id 和数据id
|
||||
// if(attFileVo != null) {
|
||||
// fileIdList.add(attFileVo.getId());
|
||||
// fileSrcList.add(fileList.get(0).getFileSrc());
|
||||
// old.setStandId(SarStandardsInfo.getStandId());
|
||||
// old.setSortSign(SarStandardsInfo.getSortSign());
|
||||
// //判断存入原本版本 还是译文版本
|
||||
// if (SarStandardsInfo.getSortSign().contains("译")) {
|
||||
// old.setTranslation(attFileVo.getId());
|
||||
// } else {
|
||||
// old.setOriginal(attFileVo.getId());
|
||||
// }
|
||||
// oldArr.add(old);
|
||||
// }
|
||||
// }else {
|
||||
// String yuan = "";
|
||||
// String yi = "";
|
||||
// OldSystem old = new OldSystem();
|
||||
// //每一个文件 都是一个英文版 或者译文版
|
||||
// // 如果每一个文件是 那我必然不能 这样子拼接
|
||||
// // 应该是先判断他是 英文版 还是译文版 然后再 去拼接
|
||||
// for (OldSystem src:fileList){
|
||||
// File file = new File(src.getFileSrc());
|
||||
// AttFileVo attFileVo = attFileEOService.saveFileInfo(file);
|
||||
// if(attFileVo != null) {
|
||||
// if (SarStandardsInfo.getSortSign().contains("译")) {
|
||||
// if (StringUtils.isNotBlank(yi)) {
|
||||
// yi = "," + attFileVo.getId();
|
||||
// } else {
|
||||
// yi = attFileVo.getId();
|
||||
// }
|
||||
// if (StringUtils.isNotBlank(yi)) {
|
||||
// old.setTranslation(yi);
|
||||
// }
|
||||
// } else {
|
||||
// if (StringUtils.isNotBlank(yuan)) {
|
||||
// yuan = "," + attFileVo.getId();
|
||||
// } else {
|
||||
// yuan = attFileVo.getId();
|
||||
// }
|
||||
// if (StringUtils.isNotBlank(yuan)) {
|
||||
// old.setOriginal(yuan);
|
||||
// }
|
||||
// }
|
||||
// fileSrcList.add(src.getFileSrc());
|
||||
// fileIdList.add(attFileVo.getId());
|
||||
// }
|
||||
// }
|
||||
// old.setStandId(SarStandardsInfo.getStandId());
|
||||
// oldArr.add(old);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// // 企业
|
||||
// for (OldSystem oldSystem: oldSystemInfoList){
|
||||
// for (OldSystem sarBussionessStand: SarBussionessStandList){
|
||||
// //lore_doc_id 与 DUILD_Id
|
||||
// if(StringUtils.isNotBlank(sarBussionessStand.getBuildId())){
|
||||
// if(oldSystem.getLoreDocId().equals(sarBussionessStand.getBuildId())){
|
||||
// //查询文件是否是多个 是否存在
|
||||
// List<OldSystem> fileList = sarStandardsInfoDao.OldSystemFile(oldSystem.getLoreDocId());
|
||||
// if(!fileList.isEmpty()){
|
||||
// if(fileList.size()==1){
|
||||
// //判断文件是否存在 重新存入文件 获取id 存入att 表
|
||||
// OldSystem old = new OldSystem();
|
||||
// File file = new File(fileList.get(0).getFileSrc());
|
||||
// AttFileVo attFileVo = attFileEOService.saveFileInfo(file);
|
||||
// //文件id 和数据id
|
||||
// if(attFileVo != null) {
|
||||
// fileIdList.add(attFileVo.getId());
|
||||
// fileSrcList.add(fileList.get(0).getFileSrc());
|
||||
// old.setStandId(sarBussionessStand.getStandId());
|
||||
// old.setSortSign(sarBussionessStand.getSortSign());
|
||||
// //判断存入原本版本 还是译文版本
|
||||
// if (sarBussionessStand.getSortSign().contains("译")) {
|
||||
// old.setTranslation(attFileVo.getId());
|
||||
// } else {
|
||||
// old.setOriginal(attFileVo.getId());
|
||||
// }
|
||||
// oldInfoArr.add(old);
|
||||
// }
|
||||
// }else {
|
||||
// String yuan = "";
|
||||
// String yi = "";
|
||||
// OldSystem old = new OldSystem();
|
||||
// for (OldSystem src:fileList) {
|
||||
// File file = new File(src.getFileSrc());
|
||||
// AttFileVo attFileVo = attFileEOService.saveFileInfo(file);
|
||||
// if (attFileVo != null) {
|
||||
// if (sarBussionessStand.getSortSign().contains("译")) {
|
||||
// if (StringUtils.isNotBlank(yi)) {
|
||||
// yi = "," + attFileVo.getId();
|
||||
// } else {
|
||||
// yi = attFileVo.getId();
|
||||
// }
|
||||
// old.setTranslation(yi);
|
||||
// } else {
|
||||
// if (StringUtils.isNotBlank(yuan)) {
|
||||
// yuan = "," + attFileVo.getId();
|
||||
// } else {
|
||||
// yuan = attFileVo.getId();
|
||||
// }
|
||||
// old.setOriginal(yuan);
|
||||
// }
|
||||
// fileSrcList.add(src.getFileSrc());
|
||||
// fileIdList.add(attFileVo.getId());
|
||||
// }
|
||||
// }
|
||||
// old.setStandId(sarBussionessStand.getStandId());
|
||||
// oldInfoArr.add(old);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// // 获取完整数据以后 数据库 增加字段, 然后区分是否是译文 原文 然后 进行保存 通过 id 可以找到对应的数据
|
||||
// // 企业
|
||||
// for(OldSystem data : oldInfoArr) {
|
||||
// SarBussStandAttrInfo sarBussStandAttrInfo = new SarBussStandAttrInfo();
|
||||
// String id = sarBussStandAttrInfoEODao.selectFieldValByStandId("id", data.getStandId());
|
||||
// if(StringUtils.isNotBlank(id)) {
|
||||
// sarBussStandAttrInfo.setId(id);
|
||||
// sarBussStandAttrInfo.setFbgbuss(data.getOriginal());
|
||||
// sarBussStandAttrInfo.setTranslation(data.getTranslation());
|
||||
// }
|
||||
// sarBussStandAttrInfoEODao.updateById(sarBussStandAttrInfo);
|
||||
// }
|
||||
// //海外 国内
|
||||
// for(OldSystem data : oldInfoArr) {
|
||||
// SarStandAttrInfo sarStandAttrInfo = new SarStandAttrInfo();
|
||||
// String id = sarStandAttrInfoEODao.selectFieldValByStandId("id", data.getStandId());
|
||||
// if(StringUtils.isNotBlank(id)) {
|
||||
// sarStandAttrInfo.setId(id);
|
||||
// sarStandAttrInfo.setFbgbjbd(data.getOriginal());
|
||||
// sarStandAttrInfo.setTranslation(data.getTranslation());
|
||||
// }
|
||||
// sarStandAttrInfoEODao.updateById(sarStandAttrInfo);
|
||||
// }
|
||||
// return Result.success();
|
||||
// }
|
||||
|
||||
@Override
|
||||
public ResponseMessage emptyFileAnewStorage() {
|
||||
List<OldSystem> SarBussionessStandList = sarBussionessStandEODao.selectListInfo();
|
||||
|
||||
Reference in New Issue
Block a user