fix: 老法规系统导入国标字典翻译BUG

This commit is contained in:
2023-11-03 09:47:58 +08:00
parent 3e1e89ff3d
commit 8436a8e541
@@ -179,7 +179,7 @@ public class LawsEnterpriseStandardServiceImpl extends ServiceImpl<LawsEnterpris
if (esDatalist.isEmpty()) {
log.info("企标数据为空,跳过导入");
} else {
this.oldSysESImport(esDatalist);
// this.oldSysESImport(esDatalist);
}
// 导入国标
// 判断是否需要跳过
@@ -214,7 +214,7 @@ public class LawsEnterpriseStandardServiceImpl extends ServiceImpl<LawsEnterpris
gb.setReleaseDate(dto.getFbrq());
gb.setImplementationDate(dto.getSsrq());
String standardState = dto.getBzzt();
gb.setStandardState(standardState.equals("现行有效") ? "8" : "9");
gb.setStandardState(standardState.equals("现行有效") ? "6" : "7");
// 代替被代替特殊逻辑
gb.setSubstituteStandardNumber(dto.getTdbzh());
gb.setReplacedByStandardNumber(dto.getBtdbzh());