Commit a4085c97 authored by suhuiguang's avatar suhuiguang

refeat(jyjc): 报检规则4.0开发

1.报检规则联调自测,定期RBI自测bug
parent e373168d
......@@ -14,7 +14,7 @@ import java.util.Set;
@AllArgsConstructor
public enum CategoryEnum {
DETECTION("detection", JYJCTypeEnum.DTJC),
FIRST_INSPECTION("firstinspect", JYJCTypeEnum.DQJY, JYJCTypeEnum.SCJY),
FIRST_INSPECTION("firstinspect", JYJCTypeEnum.DQJY, JYJCTypeEnum.SCJY, JYJCTypeEnum.DQRBI),
ENTRUST("entrust", JYJCTypeEnum.WTJY),
SUPERVISE("supervise", JYJCTypeEnum.WXJDJY, JYJCTypeEnum.GZJDJY, JYJCTypeEnum.AZJDJY);
......
......@@ -50,6 +50,12 @@ public class InspectionRuleEnableConfig {
*/
private Boolean WTJY;
/**
* 定期RBI是否启用规则:true-启用,false-不启用
*/
private Boolean DQRBI;
public Object getValueByFieldName(String fieldName){
Field field = null;
try {
......
......@@ -65,13 +65,15 @@ spring.kafka.security.protocol=SASL_PLAINTEXT
spring.kafka.properties.sasl.mechanism=PLAIN
#定期检验是否启用规则:true-启用,false-不启用,默认不配置时不启动规则
inspection.rule.enabled.DQJY=false
inspection.rule.enabled.DQJY=true
#安装监督检验是否启用规则:true-启用,false-不启用
inspection.rule.enabled.AZJDJY=false
inspection.rule.enabled.AZJDJY=true
#改造监督检验是否启用规则:true-启用,false-不启用
inspection.rule.enabled.GZJDJY=false
inspection.rule.enabled.GZJDJY=true
#维修监督检验是否启用规则:true-启用,false-不启用
inspection.rule.enabled.WXJDJY=false
inspection.rule.enabled.WXJDJY=true
#电梯检测是否启用规则:true-启用,false-不启用
inspection.rule.enabled.DTJC=false
inspection.rule.enabled.WTJY=false
inspection.rule.enabled.DTJC=true
inspection.rule.enabled.WTJY=true
inspection.rule.enabled.SCJY=true
inspection.rule.enabled.DQRBI=true
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