zhangf
2024-09-11 d4020168658efdee89a633083cd9c14b06c4d863
src/main/java/com/gkhy/fourierSpecialGasMonitor/entity/req/UploadGasFluxReqDTO.java
@@ -1,8 +1,10 @@
package com.gkhy.fourierSpecialGasMonitor.entity.req;
import com.gkhy.fourierSpecialGasMonitor.enums.WarningThresholdEnum;
import lombok.Data;
import javax.persistence.*;
import java.lang.reflect.Field;
import java.time.LocalDateTime;
@@ -61,4 +63,67 @@
    private Double gasValue19;
    private int gasName20;
    private Double gasValue20;
    //public UploadGasFluxReqDTO expansionFactor(){
    //    if (gasValue01 != null) {
    //        gasValue01 = Math.round(gasValue01 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue02 != null) {
    //        gasValue02 = Math.round(gasValue02 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue03 != null) {
    //        gasValue03 = Math.round(gasValue03 * 3.6 * 100.0) / 100.0;
    //    }
    //    if (gasValue04 != null) {
    //        gasValue04 = Math.round(gasValue04 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue05 != null) {
    //        gasValue05 = Math.round(gasValue05 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue06 != null) {
    //        gasValue06 = Math.round(gasValue06 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue07 != null) {
    //        gasValue07 = Math.round(gasValue07 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue08 != null) {
    //        gasValue08 = Math.round(gasValue08 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue09 != null) {
    //        gasValue09 = Math.round(gasValue09 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue10 != null) {
    //        gasValue10 = Math.round(gasValue10 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue11 != null) {
    //        gasValue11 = Math.round(gasValue11 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue12 != null) {
    //        gasValue12 = Math.round(gasValue12 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue13 != null) {
    //        gasValue13 = Math.round(gasValue13 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue14 != null) {
    //        gasValue14 = Math.round(gasValue14 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue15 != null) {
    //        gasValue15 = Math.round(gasValue15 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue16 != null) {
    //        gasValue16 = Math.round(gasValue16 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue17 != null) {
    //        gasValue17 = Math.round(gasValue17 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue18 != null) {
    //        gasValue18 = Math.round(gasValue18 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue19 != null) {
    //        gasValue19 = Math.round(gasValue19 * 3600 * 100.0) / 100.0;
    //    }
    //    if (gasValue20 != null) {
    //        gasValue20 = Math.round(gasValue20 * 3600 * 100.0) / 100.0;
    //    }
    //    return this;
    //}
}