Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
4c0cb7e0
Commit
4c0cb7e0
authored
Nov 22, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改月报表
parent
8d201b79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
MonthGenerateMapper.xml
...rc/main/resources/mapper/tdengine/MonthGenerateMapper.xml
+1
-1
JpStationServiceImpl.java
...ot/module/hygf/biz/service/impl/JpStationServiceImpl.java
+6
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/MonthGenerateMapper.xml
View file @
4c0cb7e0
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</foreach>
</foreach>
</if>
</if>
<if
test=
"dateTime!=null"
>
<if
test=
"dateTime!=null"
>
and
year
= #{dateTime}
and
month_time
= #{dateTime}
</if>
</if>
</where>
</where>
LIMIT #{current} ,#{size}
LIMIT #{current} ,#{size}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/JpStationServiceImpl.java
View file @
4c0cb7e0
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.support.ExcelTypeEnum
;
import
com.alibaba.excel.support.ExcelTypeEnum
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
...
@@ -252,7 +253,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
...
@@ -252,7 +253,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
@Override
@Override
@UserLimits
@UserLimits
public
Map
<
String
,
List
<
Object
>>
getPowerqxnew
(
String
date
,
JpStationDto
reviewDto
)
{
public
Map
<
String
,
List
<
Object
>>
getPowerqxnew
(
String
date
,
JpStationDto
reviewDto
)
{
date
=
DateUtil
.
format
(
new
Date
(),
"yyyy-MM-dd"
);
List
<
String
>
statioId
=
new
ArrayList
();
List
<
String
>
statioId
=
new
ArrayList
();
List
<
JpStation
>
dataJpStation
=
jpStationMapper
.
getJpStation
(
reviewDto
);
List
<
JpStation
>
dataJpStation
=
jpStationMapper
.
getJpStation
(
reviewDto
);
for
(
JpStation
jpStation
:
dataJpStation
)
{
for
(
JpStation
jpStation
:
dataJpStation
)
{
...
@@ -444,6 +445,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
...
@@ -444,6 +445,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd
.
setUserName
(
jpStation
.
getUserName
());
hd
.
setUserName
(
jpStation
.
getUserName
());
hd
.
setStationContact
(
jpStation
.
getStationContact
());
hd
.
setStationContact
(
jpStation
.
getStationContact
());
hd
.
setState
(
jpStation
.
getState
());
hd
.
setState
(
jpStation
.
getState
());
hd
.
setThirdStationId
(
jpStation
.
getThirdStationId
());
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
());
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
());
hd
.
setFullhour
(
Double
.
valueOf
(
String
.
format
(
"%.2f"
,
jpStation
.
getAccumulatedPower
()/
jpStation
.
getCapacity
())));
hd
.
setFullhour
(
Double
.
valueOf
(
String
.
format
(
"%.2f"
,
jpStation
.
getAccumulatedPower
()/
jpStation
.
getCapacity
())));
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
());
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
());
...
@@ -486,7 +488,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
...
@@ -486,7 +488,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd
.
setStationContact
(
jpStation
.
getStationContact
());
hd
.
setStationContact
(
jpStation
.
getStationContact
());
hd
.
setState
(
jpStation
.
getState
());
hd
.
setState
(
jpStation
.
getState
());
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
());
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
());
hd
.
setThirdStationId
(
jpStation
.
getThirdStationId
());
hd
.
setFullhour
(
dayGenerate
.
getFullhour
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.2f"
,
dayGenerate
.
getFullhour
())):
null
);
hd
.
setFullhour
(
dayGenerate
.
getFullhour
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.2f"
,
dayGenerate
.
getFullhour
())):
null
);
hd
.
setDayGenerate
(
dayGenerate
.
getGenerate
());
hd
.
setDayGenerate
(
dayGenerate
.
getGenerate
());
hd
.
setTimeDate
(
dayGenerate
.
getDayTime
());
hd
.
setTimeDate
(
dayGenerate
.
getDayTime
());
...
@@ -510,6 +512,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
...
@@ -510,6 +512,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd
.
setUserName
(
jpStation
.
getUserName
());
hd
.
setUserName
(
jpStation
.
getUserName
());
hd
.
setStationContact
(
jpStation
.
getStationContact
());
hd
.
setStationContact
(
jpStation
.
getStationContact
());
hd
.
setState
(
jpStation
.
getState
());
hd
.
setState
(
jpStation
.
getState
());
hd
.
setThirdStationId
(
jpStation
.
getThirdStationId
());
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
());
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
());
hd
.
setMonthGenerate
(
dayGenerate
.
getGenerate
());
hd
.
setMonthGenerate
(
dayGenerate
.
getGenerate
());
hd
.
setMonthIncome
(
dayGenerate
.
getMonthIncome
());
hd
.
setMonthIncome
(
dayGenerate
.
getMonthIncome
());
...
@@ -535,7 +538,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
...
@@ -535,7 +538,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd
.
setStationContact
(
jpStation
.
getStationContact
());
hd
.
setStationContact
(
jpStation
.
getStationContact
());
hd
.
setState
(
jpStation
.
getState
());
hd
.
setState
(
jpStation
.
getState
());
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
());
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
());
hd
.
setThirdStationId
(
jpStation
.
getThirdStationId
());
hd
.
setFullhour
(
dayGenerate
.
getFullhour
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.2f"
,
dayGenerate
.
getFullhour
())):
null
);
hd
.
setFullhour
(
dayGenerate
.
getFullhour
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.2f"
,
dayGenerate
.
getFullhour
())):
null
);
hd
.
setYearGenerate
(
dayGenerate
.
getGenerate
());
hd
.
setYearGenerate
(
dayGenerate
.
getGenerate
());
hd
.
setYearIncome
(
dayGenerate
.
getYearIncome
());
hd
.
setYearIncome
(
dayGenerate
.
getYearIncome
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment