译文原文问题(返回文件有名称重复,代码优化)
This commit is contained in:
+4
-2
@@ -2764,7 +2764,8 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
List<OldSystem> SarStandardsInfoList = sarStandardsInfoDao.selectListInfo();
|
List<OldSystem> SarStandardsInfoList = sarStandardsInfoDao.selectListInfo();
|
||||||
for (OldSystem SarStandardsInfo : SarStandardsInfoList) {
|
for (OldSystem SarStandardsInfo : SarStandardsInfoList) {
|
||||||
if (StringUtils.isNotBlank(SarStandardsInfo.getBuildId())) {
|
if (StringUtils.isNotBlank(SarStandardsInfo.getBuildId())) {
|
||||||
OldSystem oldSystem = sarStandardsInfoDao.selectOldSystemInfoByBuidId(SarStandardsInfo.getBuildId());
|
List<OldSystem> OldSystem1 = sarStandardsInfoDao.selectOldSystemInfoByBuidId(SarStandardsInfo.getBuildId());
|
||||||
|
OldSystem oldSystem =OldSystem1.get(0);
|
||||||
if (oldSystem.getLoreDocId().equals(SarStandardsInfo.getBuildId())) {
|
if (oldSystem.getLoreDocId().equals(SarStandardsInfo.getBuildId())) {
|
||||||
//通过,号分割文件,通过id去查询文件 获取文件名称
|
//通过,号分割文件,通过id去查询文件 获取文件名称
|
||||||
if (StringUtils.isNotBlank(SarStandardsInfo.getFileId())) {
|
if (StringUtils.isNotBlank(SarStandardsInfo.getFileId())) {
|
||||||
@@ -2884,7 +2885,8 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
for (OldSystem sarBussionessStand: SarBussionessStandList){
|
for (OldSystem sarBussionessStand: SarBussionessStandList){
|
||||||
// 通过 关联id 去查询这条数据 查询到 即当前数据
|
// 通过 关联id 去查询这条数据 查询到 即当前数据
|
||||||
if(StringUtils.isNotBlank(sarBussionessStand.getBuildId())){
|
if(StringUtils.isNotBlank(sarBussionessStand.getBuildId())){
|
||||||
OldSystem oldSystem = sarStandardsInfoDao.selectOldSystemInfoByBuidId(sarBussionessStand.getBuildId());
|
List<OldSystem> oldSystem1 = sarStandardsInfoDao.selectOldSystemInfoByBuidId(sarBussionessStand.getBuildId());
|
||||||
|
OldSystem oldSystem =oldSystem1.get(0);
|
||||||
if(oldSystem.getLoreDocId().equals(sarBussionessStand.getBuildId())) {
|
if(oldSystem.getLoreDocId().equals(sarBussionessStand.getBuildId())) {
|
||||||
//通过,号分割文件,通过id去查询文件 获取文件名称
|
//通过,号分割文件,通过id去查询文件 获取文件名称
|
||||||
if(StringUtils.isNotBlank(sarBussionessStand.getFileId())){
|
if(StringUtils.isNotBlank(sarBussionessStand.getFileId())){
|
||||||
|
|||||||
+1
-1
@@ -110,5 +110,5 @@ public interface SarStandardsInfoDao extends BaseMapper<SarStandardsInfo> {
|
|||||||
|
|
||||||
OldSystem loreDepotSort(@Param("sortId") String sortId);
|
OldSystem loreDepotSort(@Param("sortId") String sortId);
|
||||||
|
|
||||||
OldSystem selectOldSystemInfoByBuidId(@Param("buildId") String buildId);
|
List<OldSystem> selectOldSystemInfoByBuidId(@Param("buildId") String buildId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user