fix: 79828 车型项目库详情-调取的数据,在产车实施日期、新车型实施日期没有正常回显

This commit is contained in:
2024-02-02 15:22:03 +08:00
parent 2bf17b67b5
commit 0c19f54f5f
3 changed files with 35 additions and 6 deletions
@@ -7,6 +7,8 @@ import com.jero.modules.docking.asms.mapper.LawsAsmsDomesticMapper;
import com.jero.modules.docking.asms.service.ILawsAsmsDomesticService;
import com.jero.modules.laws.standard.entity.LawsDomesticStandard;
import com.jero.modules.laws.standard.entity.LawsOverseasStandard;
import com.jero.modules.laws.standard.mapper.LawsDomesticStandardMapper;
import com.jero.modules.laws.standard.mapper.LawsOverseasStandardMapper;
import com.jero.modules.laws.standard.service.ILawsDomesticStandardService;
import com.jero.modules.laws.standard.service.ILawsOverseasStandardService;
import org.hibernate.validator.constraints.pl.REGON;
@@ -39,10 +41,10 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
public class LawsAsmsDomesticServiceImpl extends ServiceImpl<LawsAsmsDomesticMapper, LawsAsmsDomestic> implements ILawsAsmsDomesticService {
@Resource
private ILawsDomesticStandardService lawsDomesticStandardService;
private LawsDomesticStandardMapper lawsDomesticStandardMapper;
@Resource
private ILawsOverseasStandardService lawsOverseasStandardService;
private LawsOverseasStandardMapper lawsOverseasStandardMapper;
/**
* 分页查询
@@ -133,8 +135,11 @@ public class LawsAsmsDomesticServiceImpl extends ServiceImpl<LawsAsmsDomesticMap
*/
@Override
public void cleanData() {
List<LawsDomesticStandard> gblist = lawsDomesticStandardService.list();
List<LawsOverseasStandard> fblist = lawsOverseasStandardService.list();
// 先清理废止日期垃圾时间数据
lawsDomesticStandardMapper.cleanAnnulmentDate();
lawsOverseasStandardMapper.cleanAnnulmentDate();
List<LawsDomesticStandard> gblist = lawsDomesticStandardMapper.listWithoutDelFlag();
List<LawsOverseasStandard> fblist = lawsOverseasStandardMapper.listWithoutDelFlag();
// 遍历所有国标数据,清理新车型实施日期 在产车实施日期两个字段中的脏数据
for (LawsDomesticStandard standard : gblist) {
String newModelImplementationDate = standard.getNewModelImplementationDate();
@@ -164,7 +169,7 @@ public class LawsAsmsDomesticServiceImpl extends ServiceImpl<LawsAsmsDomesticMap
.distinct().collect(Collectors.joining(",")));
}
}
lawsDomesticStandardService.updateById(standard);
lawsDomesticStandardMapper.updateIgnoreDelFlag(standard);
}
for (LawsOverseasStandard standard : fblist) {
@@ -195,7 +200,7 @@ public class LawsAsmsDomesticServiceImpl extends ServiceImpl<LawsAsmsDomesticMap
.distinct().collect(Collectors.joining(",")));
}
}
lawsOverseasStandardService.updateById(standard);
lawsOverseasStandardMapper.updateIgnoreDelFlag(standard);
}
}
}