fix(config): 修正配置文件中的命名规范和路径引用

- 将XML模板中的零序电流不平衡字段名从G_VZSEQ_UNBAN/VZSEQ_UNBAN更正为G_IZSEQ_UNBAN/IZSEQ_UNBAN
- 将默认规则文件路径从template/默认规则.txt统一更改为template/DefaultRule.txt
- 更新配置类和映射服务中对默认规则文件的引用路径
This commit is contained in:
周宇 蔡
2026-07-13 10:48:56 +08:00
parent 42911e35bb
commit 6fc0d58fe4
4 changed files with 4 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ public class RuleBasedXmlMappingService {
public List<InputStream> loadDefaultRuleFile( ) throws Exception {
ClassPathResource ruleResource = new ClassPathResource("template/默认规则.txt");
ClassPathResource ruleResource = new ClassPathResource("template/DefaultRule.txt");
if ( !ruleResource.exists()) {
return null;
}

View File

@@ -32,6 +32,6 @@ public class MappingModuleConfig {
private String jsonToXmlTemplatePath;
/** JSON转XML使用的默认规则文件路径。 */
@Value("${icd.mapping.json-to-xml-rule-path:template/默认规则.txt}")
@Value("${icd.mapping.json-to-xml-rule-path:template/DefaultRule.txt}")
private String jsonToXmlRulePath;
}

View File

@@ -244,8 +244,8 @@
<Value name="IZSEQ" desc="零序电流平均值" type="6" DO="" DA="" />
<Value name="MAX_IZSEQ" desc="零序电流最大值" type="6" DO="" DA="" />
<Value name="MIN_IZSEQ" desc="零序电流最小值" type="6" DO="" DA="" />
<Value name="G_VZSEQ_UNBAN" desc="零序电流不平衡95值" type="6" DO="" DA="" />
<Value name="VZSEQ_UNBAN" desc="零序电流不平衡平均值" type="6" DO="" DA="" />
<Value name="G_IZSEQ_UNBAN" desc="零序电流不平衡95值" type="6" DO="" DA="" />
<Value name="IZSEQ_UNBAN" desc="零序电流不平衡平均值" type="6" DO="" DA="" />
<Value name="MAX_IZSEQ_UNBAN" desc="零序电流不平衡最大值" type="6" DO="" DA="" />
<Value name="MIN_IZSEQ_UNBAN" desc="零序电流不平衡最小值" type="6" DO="" DA="" />
<Value name="G_IPSEQ" desc="正序电流95值" type="6" DO="" DA="" />