|
@@ -130,8 +130,8 @@ public class GatherDataRepService {
|
|
|
public void save(LiquidPO liquidPO) {
|
|
|
String sql="""
|
|
|
insert into tzl_gather_data_liquid(well_id,test_time,liquid_datas,hoop_datas,sound_speed_dev,liquid_depth_dev,casing_press_dev,create_time,del_if,battery_voltage,
|
|
|
- sound_speed_calc,liquid_depth,liquid_depth_convert,liquid_depth_static,liquid_depth_static_convert)
|
|
|
- values(?,?,?,?,?,?,?,now(),false,?,?,?,?,?,?)
|
|
|
+ sound_speed_calc,liquid_depth,liquid_depth_convert,depth_diff,flow_press_diff,liquid_depth_static,liquid_depth_static_convert)
|
|
|
+ values(?,?,?,?,?,?,?,now(),false,?,?,?,?,?,?,?,?)
|
|
|
""";
|
|
|
|
|
|
|
|
@@ -154,8 +154,19 @@ public class GatherDataRepService {
|
|
|
val=liquidPO.getLiquidDepthDev()*(lastSSLiquid!=null && lastSSLiquid.getSoundSpeedFactor()!=null?lastSSLiquid.getSoundSpeedFactor():1);
|
|
|
args.add(val);
|
|
|
|
|
|
+
|
|
|
+ WellMeasurePO lastMeasure=getLastMeasure(liquidPO.getWellId());
|
|
|
+
|
|
|
//折算动液面深度
|
|
|
- val=LiquidCalculator.calcConvertLiquidDepth(val, liquidPO.getCasingPressDev(), getLastMeasure(liquidPO.getWellId()));
|
|
|
+ val=LiquidCalculator.calcConvertLiquidDepth(val, liquidPO.getCasingPressDev(), lastMeasure);
|
|
|
+ args.add(val);
|
|
|
+
|
|
|
+ //深度压差
|
|
|
+ val=LiquidCalculator.calcDepthDiff(val, lastStaticLiquid);
|
|
|
+ args.add(val);
|
|
|
+
|
|
|
+ //流动压差
|
|
|
+ val=LiquidCalculator.calcFlowPreeDiff(val, lastMeasure);
|
|
|
args.add(val);
|
|
|
|
|
|
//静液面深度
|