|
@@ -13,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.data.domain.Example;
|
|
import org.springframework.data.domain.Example;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
import java.sql.Timestamp;
|
|
import java.sql.Timestamp;
|
|
import java.util.Optional;
|
|
import java.util.Optional;
|
|
|
|
|
|
@@ -54,7 +55,7 @@ public class TempThresholdServiceImpl implements ITempThresholdService {
|
|
return "0";
|
|
return "0";
|
|
}else{
|
|
}else{
|
|
EnvTempThresholdEntity tempThresholdEntity = optional.get();
|
|
EnvTempThresholdEntity tempThresholdEntity = optional.get();
|
|
- return tempThresholdEntity.getHighTemp()+"+"+tempThresholdEntity.getLowTemp();
|
|
|
|
|
|
+ return tempThresholdEntity.getHighTemp().multiply(new BigDecimal(10)).intValue()+"+"+tempThresholdEntity.getLowTemp().multiply(new BigDecimal(10)).intValue();
|
|
}
|
|
}
|
|
// }
|
|
// }
|
|
}
|
|
}
|