|
@@ -146,11 +146,11 @@ public class GatherDataRepService {
|
|
|
LiquidVO lastSSLiquid=getLastLiquidCalcViaSoundSpeed(liquidPO.getWellId());
|
|
|
LiquidVO lastStaticLiquid=getLastLiquidStaticCalc(liquidPO.getWellId());
|
|
|
|
|
|
- //校正音速
|
|
|
+ //校正音速=最新一次手动音速法计算时设置的音速
|
|
|
Double val=lastSSLiquid!=null && lastSSLiquid.getSoundSpeed()!=null?lastSSLiquid.getSoundSpeed():null;
|
|
|
args.add(val);
|
|
|
|
|
|
- //校正液面深度
|
|
|
+ //校正液面深度=设备采集深度*最新手动音速法计算时设置的k系数
|
|
|
val=liquidPO.getLiquidDepthDev()*(lastSSLiquid!=null && lastSSLiquid.getSoundSpeedFactor()!=null?lastSSLiquid.getSoundSpeedFactor():1);
|
|
|
args.add(val);
|
|
|
|
|
@@ -161,19 +161,19 @@ public class GatherDataRepService {
|
|
|
val=LiquidCalculator.calcConvertLiquidDepth(val, liquidPO.getCasingPressDev(), lastMeasure);
|
|
|
args.add(val);
|
|
|
|
|
|
- //深度压差
|
|
|
- val=LiquidCalculator.calcDepthDiff(val, lastStaticLiquid);
|
|
|
+ //深度压差=折算动液面深度-折算静液面深度=折算动液面深度-最近一次静液测算折算静液面深度=折算动液面深度-最近一次静液测算时折算动液面深度
|
|
|
+ val=LiquidCalculator.calcDepthDiff(val, lastStaticLiquid!=null?lastStaticLiquid.getLiquidDepthStaticConvert():null);
|
|
|
args.add(val);
|
|
|
|
|
|
//流动压差
|
|
|
val=LiquidCalculator.calcFlowPreeDiff(val, lastMeasure);
|
|
|
args.add(val);
|
|
|
|
|
|
- //静液面深度
|
|
|
- args.add(lastStaticLiquid!=null?lastStaticLiquid.getLiquidDepth():null);
|
|
|
+ //静液面深度=最近一次静液测算时的静液面深度=测算时的校正液面深度;
|
|
|
+ args.add(lastStaticLiquid!=null?lastStaticLiquid.getLiquidDepthStatic():null);
|
|
|
|
|
|
- //折算静深度
|
|
|
- args.add(lastStaticLiquid!=null?lastStaticLiquid.getLiquidDepthConvert():null);
|
|
|
+ //折算静深度=最近一次静液测算的值=测算时的折算液面深度
|
|
|
+ args.add(lastStaticLiquid!=null?lastStaticLiquid.getLiquidDepthStaticConvert():null);
|
|
|
|
|
|
dao.exeUpdate(sql, args.toArray());
|
|
|
}
|
|
@@ -212,7 +212,7 @@ public class GatherDataRepService {
|
|
|
*/
|
|
|
private LiquidVO getLastLiquidStaticCalc(String wellId) {
|
|
|
String sql="""
|
|
|
- select liquid_depth,liquid_depth_convert
|
|
|
+ select liquid_depth,liquid_depth_convert,liquid_depth_static,liquid_depth_static_convert
|
|
|
from tzl_gather_data_liquid
|
|
|
where well_id=? and test_time<now() and static_calc_if=true
|
|
|
order by test_time desc limit 1
|