Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
cdbba38c
Commit
cdbba38c
authored
May 22, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改发电量统计错误
parent
d7e54198
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
7 deletions
+41
-7
JpStationDto.java
...m/yeejoin/amos/boot/module/hygf/api/dto/JpStationDto.java
+6
-0
DayGenerateMapper.java
...oot/module/hygf/api/tdenginemapper/DayGenerateMapper.java
+3
-3
DayGenerateMapper.xml
.../src/main/resources/mapper/tdengine/DayGenerateMapper.xml
+29
-0
JpStationServiceImpl.java
...ot/module/hygf/biz/service/impl/JpStationServiceImpl.java
+3
-3
pom.xml
pom.xml
+0
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/JpStationDto.java
View file @
cdbba38c
...
@@ -108,6 +108,12 @@ public class JpStationDto extends BaseDto {
...
@@ -108,6 +108,12 @@ public class JpStationDto extends BaseDto {
@ExcelIgnore
@ExcelIgnore
private
String
type
;
private
String
type
;
/**
/**
* 电站类型
*/
@ExcelIgnore
private
String
stationType
;
/**
* 组织编码
* 组织编码
*/
*/
@ExcelIgnore
@ExcelIgnore
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/tdenginemapper/DayGenerateMapper.java
View file @
cdbba38c
...
@@ -31,11 +31,11 @@ public interface DayGenerateMapper extends BaseMapper<DayGenerate> {
...
@@ -31,11 +31,11 @@ public interface DayGenerateMapper extends BaseMapper<DayGenerate> {
@UserEmpower
(
field
={
"regional_companies_code"
},
dealerField
={
"amos_company_code"
,
"regional_companies_code"
}
,
fieldConditions
={
"eq"
,
"in"
}
,
relationship
=
"and"
)
@UserEmpower
(
field
={
"regional_companies_code"
},
dealerField
={
"amos_company_code"
,
"regional_companies_code"
}
,
fieldConditions
={
"eq"
,
"in"
}
,
relationship
=
"and"
)
List
<
PowerCurveDto
>
getDayGeneratqx
(
@Param
(
"date"
)
String
month
,
@Param
(
"thirdStationId"
)
String
thirdStationId
,
@Param
(
"dto"
)
List
<
String
>
statioId
);
List
<
PowerCurveDto
>
getDayGeneratqx
(
@Param
(
"date"
)
String
month
,
@Param
(
"regionalCompaniesCode"
)
String
regionalCompaniesCode
,
@Param
(
"amosCompanyCode"
)
String
amosCompanyCode
,
@Param
(
"stationType"
)
String
stationType
,
@Param
(
"thirdStationId"
)
String
thirdStationId
,
@Param
(
"dto"
)
List
<
String
>
statioId
);
@UserEmpower
(
field
={
"regional_companies_code"
},
dealerField
={
"amos_company_code"
,
"regional_companies_code"
}
,
fieldConditions
={
"eq"
,
"in"
}
,
relationship
=
"and"
)
@UserEmpower
(
field
={
"regional_companies_code"
},
dealerField
={
"amos_company_code"
,
"regional_companies_code"
}
,
fieldConditions
={
"eq"
,
"in"
}
,
relationship
=
"and"
)
List
<
PowerCurveDto
>
getMonthGenerateqx
(
@Param
(
"date"
)
String
month
,
@Param
(
"thirdStationId"
)
String
thirdStationId
,
@Param
(
"dto"
)
List
<
String
>
statioId
);
List
<
PowerCurveDto
>
getMonthGenerateqx
(
@Param
(
"date"
)
String
month
,
@Param
(
"regionalCompaniesCode"
)
String
regionalCompaniesCode
,
@Param
(
"amosCompanyCode"
)
String
amosCompanyCode
,
@Param
(
"stationType"
)
String
stationType
,
@Param
(
"thirdStationId"
)
String
thirdStationId
,
@Param
(
"dto"
)
List
<
String
>
statioId
);
@UserEmpower
(
field
={
"regional_companies_code"
},
dealerField
={
"amos_company_code"
,
"regional_companies_code"
}
,
fieldConditions
={
"eq"
,
"in"
}
,
relationship
=
"and"
)
@UserEmpower
(
field
={
"regional_companies_code"
},
dealerField
={
"amos_company_code"
,
"regional_companies_code"
}
,
fieldConditions
={
"eq"
,
"in"
}
,
relationship
=
"and"
)
List
<
PowerCurveDto
>
getYearGenerateqx
(
@Param
(
"date"
)
String
month
,
@Param
(
"thirdStationId"
)
String
thirdStationId
,
@Param
(
"dto"
)
List
<
String
>
statioId
);
List
<
PowerCurveDto
>
getYearGenerateqx
(
@Param
(
"date"
)
String
month
,
@Param
(
"regionalCompaniesCode"
)
String
regionalCompaniesCode
,
@Param
(
"amosCompanyCode"
)
String
amosCompanyCode
,
@Param
(
"stationType"
)
String
stationType
,
@Param
(
"thirdStationId"
)
String
thirdStationId
,
@Param
(
"dto"
)
List
<
String
>
statioId
);
@UserEmpower
(
field
={
"regional_companies_code"
},
dealerField
={
"amos_company_code"
,
"regional_companies_code"
}
,
fieldConditions
={
"eq"
,
"in"
}
,
relationship
=
"and"
)
@UserEmpower
(
field
={
"regional_companies_code"
},
dealerField
={
"amos_company_code"
,
"regional_companies_code"
}
,
fieldConditions
={
"eq"
,
"in"
}
,
relationship
=
"and"
)
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/DayGenerateMapper.xml
View file @
cdbba38c
...
@@ -47,6 +47,15 @@
...
@@ -47,6 +47,15 @@
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"regionalCompaniesCode!=null and regionalCompaniesCode != ''"
>
and regional_companies_code = #{regionalCompaniesCode}
</if>
<if
test=
"amosCompanyCode!=null and amosCompanyCode != ''"
>
and amos_company_code = #{amosCompanyCode}
</if>
<if
test=
"stationType!=null and stationType != ''"
>
and stationType = #{stationType}
</if>
<if
test=
"thirdStationId!=null and thirdStationId != ''"
>
<if
test=
"thirdStationId!=null and thirdStationId != ''"
>
and third_station_id = #{thirdStationId}
and third_station_id = #{thirdStationId}
...
@@ -72,6 +81,16 @@
...
@@ -72,6 +81,16 @@
</foreach>
</foreach>
</if>
</if>
<if
test=
"regionalCompaniesCode!=null and regionalCompaniesCode != ''"
>
and regional_companies_code = #{regionalCompaniesCode}
</if>
<if
test=
"amosCompanyCode!=null and amosCompanyCode != ''"
>
and amos_company_code = #{amosCompanyCode}
</if>
<if
test=
"stationType!=null and stationType != ''"
>
and stationType = #{stationType}
</if>
<if
test=
"thirdStationId!=null and thirdStationId != ''"
>
<if
test=
"thirdStationId!=null and thirdStationId != ''"
>
and third_station_id = #{thirdStationId}
and third_station_id = #{thirdStationId}
</if>
</if>
...
@@ -96,6 +115,16 @@
...
@@ -96,6 +115,16 @@
</foreach>
</foreach>
</if>
</if>
<if
test=
"regionalCompaniesCode!=null and regionalCompaniesCode != ''"
>
and regional_companies_code = #{regionalCompaniesCode}
</if>
<if
test=
"amosCompanyCode!=null and amosCompanyCode != ''"
>
and amos_company_code = #{amosCompanyCode}
</if>
<if
test=
"stationType!=null and stationType != ''"
>
and stationType = #{stationType}
</if>
<if
test=
"thirdStationId!=null and thirdStationId != ''"
>
<if
test=
"thirdStationId!=null and thirdStationId != ''"
>
and third_station_id = #{thirdStationId}
and third_station_id = #{thirdStationId}
</if>
</if>
...
...
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 @
cdbba38c
...
@@ -241,17 +241,17 @@ public class JpStationServiceImpl extends BaseService<JpStationDto, JpStation, J
...
@@ -241,17 +241,17 @@ public class JpStationServiceImpl extends BaseService<JpStationDto, JpStation, J
map
=
getDayListOfMonth
(
reviewDto
.
getTimeDateMonth
());
map
=
getDayListOfMonth
(
reviewDto
.
getTimeDateMonth
());
// if(statioId!=null&&!statioId.isEmpty()) {
// if(statioId!=null&&!statioId.isEmpty()) {
data
=
dayGenerateMapper
.
getDayGeneratqx
(
reviewDto
.
getTimeDateMonth
(),
reviewDto
.
getThirdStationId
(),
null
);
data
=
dayGenerateMapper
.
getDayGeneratqx
(
reviewDto
.
getTimeDateMonth
(),
reviewDto
.
get
RegionalCompaniesCode
(),
reviewDto
.
getAmosCompanyCode
(),
reviewDto
.
getStationType
(),
reviewDto
.
get
ThirdStationId
(),
null
);
// }
// }
}
else
if
(
type
.
equals
(
"year"
)){
}
else
if
(
type
.
equals
(
"year"
)){
map
=
getyearListOfMonth
(
reviewDto
.
getTimeDateYear
());
map
=
getyearListOfMonth
(
reviewDto
.
getTimeDateYear
());
// if(statioId!=null&&!statioId.isEmpty()) {
// if(statioId!=null&&!statioId.isEmpty()) {
data
=
dayGenerateMapper
.
getMonthGenerateqx
(
reviewDto
.
getTimeDateYear
(),
reviewDto
.
getThirdStationId
(),
null
);
data
=
dayGenerateMapper
.
getMonthGenerateqx
(
reviewDto
.
getTimeDateYear
(),
reviewDto
.
get
RegionalCompaniesCode
(),
reviewDto
.
getAmosCompanyCode
(),
reviewDto
.
getStationType
(),
reviewDto
.
get
ThirdStationId
(),
null
);
// }
// }
}
else
{
}
else
{
map
=
getyearList
();
map
=
getyearList
();
// if(statioId!=null&&!statioId.isEmpty()) {
// if(statioId!=null&&!statioId.isEmpty()) {
data
=
dayGenerateMapper
.
getYearGenerateqx
(
null
,
reviewDto
.
getThirdStationId
(),
null
);
data
=
dayGenerateMapper
.
getYearGenerateqx
(
null
,
reviewDto
.
get
RegionalCompaniesCode
(),
reviewDto
.
getAmosCompanyCode
(),
reviewDto
.
getStationType
(),
reviewDto
.
get
ThirdStationId
(),
null
);
// }
// }
}
}
listx
=
map
.
get
(
"x"
);
listx
=
map
.
get
(
"x"
);
...
...
pom.xml
View file @
cdbba38c
...
@@ -318,7 +318,6 @@
...
@@ -318,7 +318,6 @@
<modules>
<modules>
<module>
amos-boot-biz-common
</module>
<module>
amos-boot-biz-common
</module>
<module>
amos-boot-core
</module>
<module>
amos-boot-core
</module>
<module>
amos-boot-utils
</module>
<module>
amos-boot-data
</module>
<module>
amos-boot-data
</module>
<module>
amos-boot-system-jxiop
</module>
<module>
amos-boot-system-jxiop
</module>
</modules>
</modules>
...
...
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