feat(report): 新增指标锚点模板支持及数据库连接配置更新

- 更新数据库连接URL从pqs910到pqs91001
- 在BaseReportKeyEnum中新增ARRIVED_DATE_C、TEST_DATE_C和YEAR_MONTH_DAY_UP枚举值
- 在ItemReportKeyEnum中新增标准电压电流功率等指标锚点相关枚举值
- 新增ItemAnchorAssembler工具类实现指标锚点模板的表格装配功能
- 实现云南检定报告的指标锚点新型模板处理流程
- 添加中文数字日期格式化功能支持
- 实现有功功率特例的数据映射处理
- 支持不平衡度类表格数据的生成处理
This commit is contained in:
2026-07-07 10:10:49 +08:00
parent efb379d6a4
commit 75b19eb6ab
19 changed files with 2328 additions and 3 deletions

View File

@@ -62,6 +62,12 @@ public interface SimAndDigNonHarmonicService extends IService<SimAndDigNonHarmon
*/
List<SimAndDigNonHarmonicResult> queryByCondition(SingleNonHarmParam param);
/**
* 按设备回路和 sort 查询所有非谐波结果,并把 adType 映射为字典 CODE。
* 用于功率 P同一 sort 下可能同时存在 TotW/TotVAr/TotVA 等总量结果。
*/
List<SimAndDigNonHarmonicResult> queryBySortListWithAdTypeCode(SingleNonHarmParam param);
/**
*

View File

@@ -180,6 +180,21 @@ public class SimAndDigNonHarmonicServiceImpl extends ServiceImpl<SimAndDigNonHar
return adNonHarmonicResults;
}
@Override
public List<SimAndDigNonHarmonicResult> queryBySortListWithAdTypeCode(SingleNonHarmParam param) {
String prefix = "ad_non_harmonic_result_";
DynamicTableNameHandler.setTableName(prefix + param.getPlanCode());
MPJLambdaWrapper<SimAndDigNonHarmonicResult> wrapper = new MPJLambdaWrapper<>();
wrapper.selectAll(SimAndDigNonHarmonicResult.class)
.selectAs(DictTree::getCode, SimAndDigNonHarmonicResult::getAdType)
.leftJoin(DictTree.class, DictTree::getId, SimAndDigNonHarmonicResult::getAdType)
.like(SimAndDigNonHarmonicResult::getDevMonitorId, param.getDevId() + "_" + param.getChannelNo())
.in(SimAndDigNonHarmonicResult::getSort, param.getSortList());
List<SimAndDigNonHarmonicResult> adNonHarmonicResults = this.getBaseMapper().selectJoinList(SimAndDigNonHarmonicResult.class, wrapper);
DynamicTableNameHandler.remove();
return adNonHarmonicResults;
}
@Override
public List<SimAndDigNonHarmonicResult> listAllSimAndDigRawData(String scriptId, String code, String devId) {