Commit 43624c5a authored by hezhuozhi's avatar hezhuozhi

修改电站监控BUG

parent 691e403e
...@@ -128,6 +128,7 @@ public class SofarRequestUtil { ...@@ -128,6 +128,7 @@ public class SofarRequestUtil {
} while (true); } while (true);
} catch (Exception exception) { } catch (Exception exception) {
exception.printStackTrace(); exception.printStackTrace();
return result;
} }
return result; return result;
} }
...@@ -157,6 +158,7 @@ public class SofarRequestUtil { ...@@ -157,6 +158,7 @@ public class SofarRequestUtil {
} }
} catch (Exception exception) { } catch (Exception exception) {
exception.printStackTrace(); exception.printStackTrace();
return result;
} }
return result; return result;
} }
......
...@@ -260,9 +260,8 @@ public class SunlightUtil { ...@@ -260,9 +260,8 @@ public class SunlightUtil {
} }
} while (true); } while (true);
} catch (Exception e) { } catch (Exception e) {
log.error("失败,msg={}", e.getMessage()); log.error("失败,msg["+e.getMessage()+"]", e);
e.printStackTrace(); return resultData;
throw new RuntimeException(e.getMessage());
} }
return resultData; return resultData;
...@@ -299,9 +298,8 @@ public class SunlightUtil { ...@@ -299,9 +298,8 @@ public class SunlightUtil {
return resultData; return resultData;
} catch (Exception e) { } catch (Exception e) {
log.error("失败,msg={}", e.getMessage()); log.error("失败,msg["+e.getMessage()+"]", e);
e.printStackTrace(); return new JSONObject();
throw new RuntimeException(e.getMessage());
} }
......
...@@ -465,7 +465,7 @@ public class SunlightServiceImpl implements SunlightService { ...@@ -465,7 +465,7 @@ public class SunlightServiceImpl implements SunlightService {
} }
if (listd != null) { if (listd != null) {
this.collectorDetail(listd, jpStation); this.collectorDetail(listdtx, jpStation);
} }
// 电站报表 // 电站报表
...@@ -625,6 +625,8 @@ public class SunlightServiceImpl implements SunlightService { ...@@ -625,6 +625,8 @@ public class SunlightServiceImpl implements SunlightService {
jpInverter.setModel(device.getDevice_model_code()); jpInverter.setModel(device.getDevice_model_code());
jpInverter.setCapacity(jpStation.getCapacity()); jpInverter.setCapacity(jpStation.getCapacity());
jpInverter.setCurrentPower(jpStation.getRealTimePower()); jpInverter.setCurrentPower(jpStation.getRealTimePower());
jpInverter.setRatedPower(jpStation.getRatedPower());
jpInverter.setFisTimeStr(device.getGrid_connection_date());
if (devicestx != null) { if (devicestx != null) {
...@@ -999,7 +1001,7 @@ public class SunlightServiceImpl implements SunlightService { ...@@ -999,7 +1001,7 @@ public class SunlightServiceImpl implements SunlightService {
// 出场日期 // 出场日期
// jpCollector.setDischargeDate(new Date(collectorDetailDto.getFactoryTime())); // jpCollector.setDischargeDate(new Date(collectorDetailDto.getFactoryTime()));
// //生产日期 // //生产日期
// jpCollector.setProductDate(new Date(collectorDetailDto.getFactoryTime())); // jpCollector.setProductDate(new Date(collectorDetailDto.getFactordyTime()));
// //数据上传间隔 // //数据上传间隔
// jpCollector.setDataPeriod(collectorDetailDto.getDataUploadCycle()); // jpCollector.setDataPeriod(collectorDetailDto.getDataUploadCycle());
// //本次上电时间 // //本次上电时间
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment