译文原文问题(校验)
This commit is contained in:
+31
-9
@@ -2793,6 +2793,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
//证明找到文件名称一致的了
|
//证明找到文件名称一致的了
|
||||||
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
||||||
//原文译文 进行判断
|
//原文译文 进行判断
|
||||||
|
if(sortSign != null) {
|
||||||
if (sortSign.getSortSign().contains("译")) {
|
if (sortSign.getSortSign().contains("译")) {
|
||||||
if (StringUtils.isNotBlank(yi)) {
|
if (StringUtils.isNotBlank(yi)) {
|
||||||
yi = "," + fileId;
|
yi = "," + fileId;
|
||||||
@@ -2805,20 +2806,20 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
} else {
|
} else {
|
||||||
yuan = fileId;
|
yuan = fileId;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//记录 同一条数据名称一样的
|
//记录 同一条数据名称一样的
|
||||||
for (AttFileEO fileEO : attFileEOS) {
|
for (AttFileEO fileEO : attFileEOS) {
|
||||||
fileEO.setResId("h-" + SarStandardsInfo.getStandId());
|
fileEO.setResId(SarStandardsInfo.getStandId());
|
||||||
fileEOArrayList.add(fileEO);
|
fileEOArrayList.add(fileEO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
//循环调用每一个 文件 获取文件名称
|
|
||||||
String id = SarStandardsInfo.getFileId();
|
String id = SarStandardsInfo.getFileId();
|
||||||
AttFileEO byId = attFileEOService.getFileInfo(id);
|
AttFileEO byId = attFileEOService.getFileInfo(id);
|
||||||
String theSame = isTheSame(byId.getOldFileName(), bid);
|
String theSame = isTheSame(byId.getOldFileName(), bid);
|
||||||
@@ -2826,6 +2827,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
//证明找到文件名称一致的了
|
//证明找到文件名称一致的了
|
||||||
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
||||||
//原文译文 进行判断
|
//原文译文 进行判断
|
||||||
|
if(sortSign != null) {
|
||||||
if (sortSign.getSortSign().contains("译")) {
|
if (sortSign.getSortSign().contains("译")) {
|
||||||
if (StringUtils.isNotBlank(yi)) {
|
if (StringUtils.isNotBlank(yi)) {
|
||||||
yi = "," + SarStandardsInfo.getFileId();
|
yi = "," + SarStandardsInfo.getFileId();
|
||||||
@@ -2838,7 +2840,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
} else {
|
} else {
|
||||||
yuan = SarStandardsInfo.getFileId();
|
yuan = SarStandardsInfo.getFileId();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2868,6 +2870,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
//证明找到文件名称一致的了
|
//证明找到文件名称一致的了
|
||||||
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
||||||
//原文译文 进行判断
|
//原文译文 进行判断
|
||||||
|
if(sortSign != null) {
|
||||||
if (sortSign.getSortSign().contains("译")) {
|
if (sortSign.getSortSign().contains("译")) {
|
||||||
if (StringUtils.isNotBlank(yi)) {
|
if (StringUtils.isNotBlank(yi)) {
|
||||||
yi = "," + fileId;
|
yi = "," + fileId;
|
||||||
@@ -2884,10 +2887,11 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
//记录 同一条数据名称一样的
|
//记录 同一条数据名称一样的
|
||||||
for (AttFileEO fileEO : attFileEOS) {
|
for (AttFileEO fileEO : attFileEOS) {
|
||||||
fileEO.setResId("h-" + SarStandardsInfo.getStandId());
|
fileEO.setResId(SarStandardsInfo.getStandId());
|
||||||
fileEOArrayList.add(fileEO);
|
fileEOArrayList.add(fileEO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2901,6 +2905,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
//证明找到文件名称一致的了
|
//证明找到文件名称一致的了
|
||||||
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
||||||
//原文译文 进行判断
|
//原文译文 进行判断
|
||||||
|
if(sortSign != null) {
|
||||||
if (sortSign.getSortSign().contains("译")) {
|
if (sortSign.getSortSign().contains("译")) {
|
||||||
if (StringUtils.isNotBlank(yi)) {
|
if (StringUtils.isNotBlank(yi)) {
|
||||||
yi = "," + SarStandardsInfo.getFileId();
|
yi = "," + SarStandardsInfo.getFileId();
|
||||||
@@ -2919,6 +2924,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (StringUtils.isNotBlank(yi)) {
|
if (StringUtils.isNotBlank(yi)) {
|
||||||
@@ -2980,6 +2986,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
//证明找到文件名称一致的了
|
//证明找到文件名称一致的了
|
||||||
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
||||||
//原文译文 进行判断
|
//原文译文 进行判断
|
||||||
|
if(sortSign != null) {
|
||||||
if (sortSign.getSortSign().contains("译")) {
|
if (sortSign.getSortSign().contains("译")) {
|
||||||
if (StringUtils.isNotBlank(yi)) {
|
if (StringUtils.isNotBlank(yi)) {
|
||||||
yi = "," + fileId;
|
yi = "," + fileId;
|
||||||
@@ -2996,10 +3003,11 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
//记录 同一条数据名称一样的
|
//记录 同一条数据名称一样的
|
||||||
for (AttFileEO fileEO : attFileEOS) {
|
for (AttFileEO fileEO : attFileEOS) {
|
||||||
fileEO.setResId("h-" + SarStandardsInfo.getStandId());
|
fileEO.setResId(SarStandardsInfo.getStandId());
|
||||||
fileEOArrayList.add(fileEO);
|
fileEOArrayList.add(fileEO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3013,6 +3021,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
//证明找到文件名称一致的了
|
//证明找到文件名称一致的了
|
||||||
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
||||||
//原文译文 进行判断
|
//原文译文 进行判断
|
||||||
|
if(sortSign != null) {
|
||||||
if (sortSign.getSortSign().contains("译")) {
|
if (sortSign.getSortSign().contains("译")) {
|
||||||
if (StringUtils.isNotBlank(yi)) {
|
if (StringUtils.isNotBlank(yi)) {
|
||||||
yi = "," + SarStandardsInfo.getFileId();
|
yi = "," + SarStandardsInfo.getFileId();
|
||||||
@@ -3033,6 +3042,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
List<OldSystem> OldSystem1 = sarStandardsInfoDao.selectOldSystemInfoByBuidId(SarStandardsInfo.getBuildId());
|
List<OldSystem> OldSystem1 = sarStandardsInfoDao.selectOldSystemInfoByBuidId(SarStandardsInfo.getBuildId());
|
||||||
OldSystem oldSystem =OldSystem1.get(0);
|
OldSystem oldSystem =OldSystem1.get(0);
|
||||||
@@ -3055,6 +3065,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
//证明找到文件名称一致的了
|
//证明找到文件名称一致的了
|
||||||
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
||||||
//原文译文 进行判断
|
//原文译文 进行判断
|
||||||
|
if(sortSign != null) {
|
||||||
if (sortSign.getSortSign().contains("译")) {
|
if (sortSign.getSortSign().contains("译")) {
|
||||||
if (StringUtils.isNotBlank(yi)) {
|
if (StringUtils.isNotBlank(yi)) {
|
||||||
yi = "," + fileId;
|
yi = "," + fileId;
|
||||||
@@ -3071,10 +3082,11 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
//记录 同一条数据名称一样的
|
//记录 同一条数据名称一样的
|
||||||
for (AttFileEO fileEO : attFileEOS) {
|
for (AttFileEO fileEO : attFileEOS) {
|
||||||
fileEO.setResId("h-" + SarStandardsInfo.getStandId());
|
fileEO.setResId(SarStandardsInfo.getStandId());
|
||||||
fileEOArrayList.add(fileEO);
|
fileEOArrayList.add(fileEO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3088,6 +3100,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
//证明找到文件名称一致的了
|
//证明找到文件名称一致的了
|
||||||
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
||||||
//原文译文 进行判断
|
//原文译文 进行判断
|
||||||
|
if(sortSign != null) {
|
||||||
if (sortSign.getSortSign().contains("译")) {
|
if (sortSign.getSortSign().contains("译")) {
|
||||||
if (StringUtils.isNotBlank(yi)) {
|
if (StringUtils.isNotBlank(yi)) {
|
||||||
yi = "," + SarStandardsInfo.getFileId();
|
yi = "," + SarStandardsInfo.getFileId();
|
||||||
@@ -3106,6 +3119,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (StringUtils.isNotBlank(yi)) {
|
if (StringUtils.isNotBlank(yi)) {
|
||||||
@@ -3169,6 +3183,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
//证明找到文件名称一致的了
|
//证明找到文件名称一致的了
|
||||||
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
||||||
//原文译文 进行判断
|
//原文译文 进行判断
|
||||||
|
if(sortSign != null) {
|
||||||
if (sortSign.getSortSign().contains("译")) {
|
if (sortSign.getSortSign().contains("译")) {
|
||||||
if (StringUtils.isNotBlank(yi)) {
|
if (StringUtils.isNotBlank(yi)) {
|
||||||
yi = "," + fileId;
|
yi = "," + fileId;
|
||||||
@@ -3185,11 +3200,12 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
//记录 同一条数据名称一样的
|
//记录 同一条数据名称一样的
|
||||||
for (AttFileEO fileEO:attFileEOS) {
|
for (AttFileEO fileEO:attFileEOS) {
|
||||||
//记录重复 此id企业或者海外的id
|
//记录重复 此id企业或者海外的id
|
||||||
fileEO.setResId("q-"+sarBussionessStand.getStandId());
|
fileEO.setResId(sarBussionessStand.getStandId());
|
||||||
fileEOArrayList.add(fileEO);
|
fileEOArrayList.add(fileEO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3204,6 +3220,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
//证明找到文件名称一致的了
|
//证明找到文件名称一致的了
|
||||||
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
||||||
//原文译文 进行判断
|
//原文译文 进行判断
|
||||||
|
if(sortSign != null) {
|
||||||
if (sortSign.getSortSign().contains("译")) {
|
if (sortSign.getSortSign().contains("译")) {
|
||||||
if (StringUtils.isNotBlank(yi)) {
|
if (StringUtils.isNotBlank(yi)) {
|
||||||
yi = "," + sarBussionessStand.getFileId();
|
yi = "," + sarBussionessStand.getFileId();
|
||||||
@@ -3224,6 +3241,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
List<OldSystem> oldSystem1 = sarStandardsInfoDao.selectOldSystemInfoByBuidId(sarBussionessStand.getBuildId());
|
List<OldSystem> oldSystem1 = sarStandardsInfoDao.selectOldSystemInfoByBuidId(sarBussionessStand.getBuildId());
|
||||||
OldSystem oldSystem = oldSystem1.get(0);
|
OldSystem oldSystem = oldSystem1.get(0);
|
||||||
@@ -3246,6 +3264,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
//证明找到文件名称一致的了
|
//证明找到文件名称一致的了
|
||||||
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
||||||
//原文译文 进行判断
|
//原文译文 进行判断
|
||||||
|
if(sortSign != null) {
|
||||||
if (sortSign.getSortSign().contains("译")) {
|
if (sortSign.getSortSign().contains("译")) {
|
||||||
if (StringUtils.isNotBlank(yi)) {
|
if (StringUtils.isNotBlank(yi)) {
|
||||||
yi = "," + fileId;
|
yi = "," + fileId;
|
||||||
@@ -3262,11 +3281,12 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
//记录 同一条数据名称一样的
|
//记录 同一条数据名称一样的
|
||||||
for (AttFileEO fileEO : attFileEOS) {
|
for (AttFileEO fileEO : attFileEOS) {
|
||||||
//记录重复 此id企业或者海外的id
|
//记录重复 此id企业或者海外的id
|
||||||
fileEO.setResId("q-" + sarBussionessStand.getStandId());
|
fileEO.setResId(sarBussionessStand.getStandId());
|
||||||
fileEOArrayList.add(fileEO);
|
fileEOArrayList.add(fileEO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3280,6 +3300,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
//证明找到文件名称一致的了
|
//证明找到文件名称一致的了
|
||||||
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
|
||||||
//原文译文 进行判断
|
//原文译文 进行判断
|
||||||
|
if(sortSign != null) {
|
||||||
if (sortSign.getSortSign().contains("译")) {
|
if (sortSign.getSortSign().contains("译")) {
|
||||||
if (StringUtils.isNotBlank(yi)) {
|
if (StringUtils.isNotBlank(yi)) {
|
||||||
yi = "," + sarBussionessStand.getFileId();
|
yi = "," + sarBussionessStand.getFileId();
|
||||||
@@ -3300,6 +3321,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// 添加
|
// 添加
|
||||||
if (StringUtils.isNotBlank(yi)) {
|
if (StringUtils.isNotBlank(yi)) {
|
||||||
old.setTranslation(yi);
|
old.setTranslation(yi);
|
||||||
|
|||||||
Reference in New Issue
Block a user