Commit 59ab5e07 authored by tianbo's avatar tianbo

feat(jg): 增加数据质量评分和管理状态字段- 在 JgUseRegistrationMapper.xml 中添加数据质量评分和管理状态字段

- 在 JgUseRegistrationServiceImpl 中更新项目列表查询逻辑,增加数据质量评分转换
parent edfacb96
......@@ -923,6 +923,8 @@
to_char((SELECT "PRODUCE_DATE" from idx_biz_jg_factory_info where "RECORD" = ui."RECORD"), 'YYYY-MM') produceDate,
ui."RECORD" record,
ui."USE_INNER_CODE" useInnerCode,
ui."DATA_QUALITY_SCORE" dataQualityScore,
ui."IS_INTO_MANAGEMENT" isIntoManagement,
ri."EQU_CODE" equCode,
ri."EQU_LIST" equList,
ri."USE_ORG_CODE" useOrgCode,
......
......@@ -4636,7 +4636,11 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
wrapper.notIn(!proIds.isEmpty(), BaseEntity::getSequenceNbr, proIds);
wrapper.isNull(IdxBizJgProjectContraption::getProjectContraptionParentId);
wrapper.last("and (length(use_registration_code) = 0 or use_registration_code is null) order by rec_date desc");
return jgProjectContraptionService.page(page, wrapper);
IPage<IdxBizJgProjectContraption> projectContraptionPage = jgProjectContraptionService.page(page, wrapper);
projectContraptionPage.getRecords().forEach(projectContraption -> {
projectContraption.setDataQualityScore(commonServiceImpl.castDataQualityScore2Name(projectContraption.getDataQualityScore(), projectContraption.getIsIntoManagement()));
});
return projectContraptionPage;
}
public List<IdxBizJgProjectContraption> jgProjectContraptionListMaster(String useUnitCreditCode) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment