|
@@ -95,6 +95,7 @@ public class InputOrOutPutService {
|
|
|
if (lastStatus == 0 && status == 2)
|
|
|
{
|
|
|
ProEconInputOrOutputSpeed input = new ProEconInputOrOutputSpeed();
|
|
|
+
|
|
|
input.setWindturbineId(wt.getId());
|
|
|
input.setWindpowerstationId(wt.getWindpowerstationId());
|
|
|
input.setProjectId(wt.getProjectId());
|
|
@@ -202,14 +203,28 @@ public class InputOrOutPutService {
|
|
|
total1.setProjectId(wt.getProjectId());
|
|
|
total1.setLineId(wt.getLineId());
|
|
|
total1.setRecordDate(daybegin);
|
|
|
-
|
|
|
+ total1.setCompanyId(wt.getCompanyId());
|
|
|
+ if(wt.getWindpowerstationId().contains("FDC"))
|
|
|
+ {
|
|
|
+ total1.setTypes("-1");
|
|
|
+ }else
|
|
|
+ {
|
|
|
+ total1.setTypes("-2");
|
|
|
+ }
|
|
|
total2 = new ProEconInOrOutSpeedTotal2();
|
|
|
total2.setWindturbineId(wt.getId());
|
|
|
total2.setWindpowerstationId(wt.getWindpowerstationId());
|
|
|
total2.setProjectId(wt.getProjectId());
|
|
|
total2.setLineId(wt.getLineId());
|
|
|
total2.setRecordDate(daybegin);
|
|
|
-
|
|
|
+ total2.setCompanyId(wt.getCompanyId());
|
|
|
+ if(wt.getWindpowerstationId().contains("FDC"))
|
|
|
+ {
|
|
|
+ total2.setTypes("-1");
|
|
|
+ }else
|
|
|
+ {
|
|
|
+ total2.setTypes("-2");
|
|
|
+ }
|
|
|
|
|
|
newMethod(end, daybegin, monthbegin, yearbegin, wt.getId(), total1, total2);
|
|
|
verify(total1);
|