forked from hbbohua-water

zhanglei
2021-03-26 d7e19100eccc6ce157406b5348be269abc48564e
调整
1 files modified
1 files added
16 ■■■■■ changed files
hbbohua-water-domain/src/main/java/com/hbbohua/water/domain/Flowmeter.java 12 ●●●● patch | view | raw | blame | history
hbbohua-water-domain/src/main/java/com/hbbohua/water/domain/literal/KlassIdsHex.java 4 ●●●● patch | view | raw | blame | history
hbbohua-water-domain/src/main/java/com/hbbohua/water/domain/Flowmeter.java
@@ -106,18 +106,18 @@
    protected void prePersist() {
        super.prePersist();
        //默认流量单位 立方米/小时
        if(getFlowValueUnitOfMeasure() == null){
        if (getFlowValueUnitOfMeasure() == null) {
            setFlowValueUnitOfMeasure(UnitOfMeasure.forId(UnitOfMeasureIdsHex.MQH));
        }
        if(getTotalValueUnitOfMeasure() == null){
        if (getTotalValueUnitOfMeasure() == null) {
            setTotalValueUnitOfMeasure(UnitOfMeasure.forId(UnitOfMeasureIdsHex.MQH));
        }
        //增加动态属性名,填充实时库标签用
        if(!containsDynamicAttribute(AttributeNames.flowValue)){
            setDynamicAttribute(AttributeNames.flowValue,null,true);
        if (!containsDynamicAttribute(AttributeNames.flowValue)) {
            setDynamicAttribute(AttributeNames.flowValue, null, true);
        }
        if(!containsDynamicAttribute(AttributeNames.totalValue)){
            setDynamicAttribute(AttributeNames.totalValue,null,true);
        if (!containsDynamicAttribute(AttributeNames.totalValue)) {
            setDynamicAttribute(AttributeNames.totalValue, null, true);
        }
    }
}
hbbohua-water-domain/src/main/java/com/hbbohua/water/domain/literal/KlassIdsHex.java
New file
@@ -0,0 +1,4 @@
package com.hbbohua.water.domain.literal;
public class KlassIdsHex extends com.ooxsoft.ecsi.domain.literal.KlassIdsHex {
}