gxt 1 year ago
parent
commit
83101319e0

+ 2 - 2
src/main/java/com/gct/aoid/service/impl/AoidDailyYieldServiceImpl.java

@@ -843,8 +843,7 @@ public class AoidDailyYieldServiceImpl extends ServiceImpl<AoidDailyYieldMapper,
843 843
     public void calculateProdDateData(String well,String[] orgs, String startDate, String endDate, String startTimeEveryDay) throws InvocationTargetException, IllegalAccessException, InstantiationException, NoSuchMethodException {
844 844
         LocalDateTime start = DateTimeUtil.formatDateTime(startDate + " " + startTimeEveryDay);
845 845
         LocalDateTime end = DateTimeUtil.formatDateTime(endDate+ " " + startTimeEveryDay);
846
-        if ( well!="")
847
-        {
846
+        if (!Objects.equals(well, "")) {
848 847
             List<List<String>> wellIdList = new ArrayList<>();
849 848
             wellIdList.add(Collections.singletonList(well));
850 849
             for (List<String> strings : wellIdList) {
@@ -884,6 +883,7 @@ public class AoidDailyYieldServiceImpl extends ServiceImpl<AoidDailyYieldMapper,
884 883
                         if (TimingSummaryJob.threadLocal.get()) {
885 884
                             String a2VolDataForCalProduction = baseDataClient.getA2VolDataForCalProduction(value.get(0).getWellId(), DateTimeUtil.formatDateStr(startDate));//可能用start 或 start+1
886 885
                             Object data = JSONObject.parseObject(a2VolDataForCalProduction, Result.class).getData();
886
+                            if (Objects.isNull(data)) return;
887 887
                             HashMap hashMap = JSONObject.parseObject(data.toString(), HashMap.class);
888 888
                             if (hashMap != null && hashMap.size() > 0) {
889 889
                                 BigDecimal prodTime = (BigDecimal) hashMap.get("prodTime");

+ 2 - 0
src/main/java/com/gct/aoid/service/impl/LiqProdDailyCalServiceImpl.java

@@ -312,6 +312,8 @@ public class LiqProdDailyCalServiceImpl implements LiqProdDailyCalService {
312 312
 
313 313
         //re.setProdTime(prodTime);
314 314
         re.setProdTime((int) d);
315
+        //准东默认如果有一张共图也是算24小时
316
+        if (re.getProdTime()>0) re.setProdTime(24);
315 317
         //re.setProdTime(24);
316 318
         //endregion
317 319
         //设置有效/无效功图数的初始值