|
@@ -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");
|