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
8a332077
Commit
8a332077
authored
Mar 21, 2024
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改电站监控权限注解
parent
1f5cc0ff
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
26 deletions
+22
-26
JpCollectorMapper.java
...n/amos/boot/module/hygf/api/mapper/JpCollectorMapper.java
+2
-2
JpInverterMapper.java
...in/amos/boot/module/hygf/api/mapper/JpInverterMapper.java
+3
-3
JpStationMapper.java
...oin/amos/boot/module/hygf/api/mapper/JpStationMapper.java
+9
-8
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+8
-13
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/JpCollectorMapper.java
View file @
8a332077
...
...
@@ -20,9 +20,9 @@ public interface JpCollectorMapper extends BaseMapper<JpCollector> {
List
<
Map
<
String
,
Object
>>
queryCollectorCountStatus
(
@Param
(
"dto"
)
JpStationDto
reviewDto
);
// @UserEmpower(field ={"regional_companies_code","amos_company_code"} ,fieldConditions ={"in",
"in"} ,relationship="and")
@UserEmpower
(
field
={
"sta.regional_companies_code"
}
,
fieldConditions
={
"in"
}
,
relationship
=
"and"
)
List
<
JpCollectorDto
>
selectPageData
(
@Param
(
"dto"
)
JpCollectorDto
reviewDto
,
Integer
current
,
Integer
size
);
// @UserEmpower(field ={"regional_companies_code","amos_company_code"} ,fieldConditions ={"in",
"in"} ,relationship="and")
@UserEmpower
(
field
={
"sta.regional_companies_code"
}
,
fieldConditions
={
"in"
}
,
relationship
=
"and"
)
int
selectPageDataTota
(
@Param
(
"dto"
)
JpCollectorDto
reviewDto
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/JpInverterMapper.java
View file @
8a332077
...
...
@@ -22,10 +22,10 @@ public interface JpInverterMapper extends BaseMapper<JpInverter> {
List
<
Map
<
String
,
Object
>>
queryInverterCountStatus
(
@Param
(
"dto"
)
JpStationDto
reviewDto
);
//@UserEmpower(field ={"regional_companies_code","amos_company_code"} ,fieldConditions ={"in",
"in"} ,relationship="and")
@DealerRestrict
(
field
={
"amos_company_code"
,
"regional_companies_code"
,
"developer_user_id"
},
fieldConditions
={
"in"
,
"in"
,
"in"
}
,
relationship
=
"and"
)
@UserEmpower
(
field
={
"sta.regional_companies_code"
}
,
fieldConditions
={
"in"
}
,
relationship
=
"and"
)
//
@DealerRestrict(field ={"amos_company_code","regional_companies_code","developer_user_id"},fieldConditions ={"in","in","in"} ,relationship="and")
List
<
JpInverterDtoNew
>
selectPageData
(
@Param
(
"dto"
)
JpInverterDto
reviewDto
,
int
current
,
int
size
);
//@UserEmpower(field ={"regional_companies_code","amos_company_code"} ,fieldConditions ={"in",
"in"} ,relationship="and")
@UserEmpower
(
field
={
"sta.regional_companies_code"
}
,
fieldConditions
={
"in"
}
,
relationship
=
"and"
)
int
selectPageDataTotal
(
@Param
(
"dto"
)
JpInverterDto
reviewDto
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/JpStationMapper.java
View file @
8a332077
...
...
@@ -25,33 +25,34 @@ public interface JpStationMapper extends BaseMapper<JpStation> {
List
<
Map
<
String
,
Object
>>
countState
(
@Param
(
"dto"
)
JpStationDto
reviewDto
);
List
<
Map
<
String
,
Double
>>
getPowerqx
(
String
dateType
);
@DealerRestrict
(
field
={
"amos_company_code"
,
"regional_companies_code"
,
"developer_user_id"
}
,
fieldConditions
={
"in"
,
"in"
,
"in"
}
,
relationship
=
"and"
)
//@DealerRestrict(field ={"amos_company_code","regional_companies_code","developer_user_id"} ,fieldConditions ={"in","in","in"} ,relationship="and")
@UserEmpower
(
field
={
"hygf_jp_station.regional_companies_code"
}
,
fieldConditions
={
"in"
}
,
relationship
=
"and"
)
List
<
JpStation
>
getJpStation
(
@Param
(
"dto"
)
JpStationDto
reviewDto
);
List
<
JpStation
>
getJpStationList
(
@Param
(
"dto"
)
JpStationDto
reviewDto
);
// @UserEmpower(field ={"ORG_CODE"} ,fieldConditions ={"in"} ,relationship=""
)
@UserEmpower
(
field
={
"ORG_CODE"
}
,
fieldConditions
={
"in"
}
,
relationship
=
"and"
,
specific
=
false
)
List
<
DropDown
>
getRegion
();
//@UserEmpower(field ={"hygf_regional_companies.regional_companies_code","hygf_unit_info.amos_company_code"} ,fieldConditions ={"in",
"in"} ,relationship="and")
@UserEmpower
(
field
={
"hygf_regional_companies.regional_companies_code"
}
,
fieldConditions
={
"in"
}
,
relationship
=
"and"
)
List
<
DropDown
>
getDealer
(
@Param
(
"regionalCompaniesCode"
)
String
regionalCompaniesCode
);
@UserEmpower
(
field
={
"regional_companies_code"
}
,
fieldConditions
={
"in"
}
,
relationship
=
"and"
)
JpStationDto
getCountJpStationdata
(
@Param
(
"dto"
)
JpStationDto
reviewDto
);
// @UserEmpower(field ={"regional_companies_code","amos_company_code"} ,fieldConditions ={"in",
"in"} ,relationship="and")
@UserEmpower
(
field
={
"regional_companies_code"
}
,
fieldConditions
={
"in"
}
,
relationship
=
"and"
)
List
<
Map
<
String
,
Object
>>
getcountState
(
@Param
(
"dto"
)
JpStationDto
reviewDto
);
//投产电站数
/// @UserEmpower(field ={"regional_companies_code","amos_company_code"} ,fieldConditions ={"in",
"in"} ,relationship="and")
@UserEmpower
(
field
={
"regional_companies_code"
}
,
fieldConditions
={
"in"
}
,
relationship
=
"and"
)
Map
<
String
,
Object
>
getcountStatetc
(
@Param
(
"dto"
)
JpStationDto
reviewDto
);
//建设建站数
// @UserEmpower(field ={"regional_companies_code","amos_company_code"} ,fieldConditions ={"in",
"in"} ,relationship="and")
@UserEmpower
(
field
={
"regional_companies_code"
}
,
fieldConditions
={
"in"
}
,
relationship
=
"and"
)
Map
<
String
,
Object
>
getcountStatejs
(
@Param
(
"dto"
)
JpStationDto
reviewDto
);
//接入中电站数
//@UserEmpower(field ={"regional_companies_code","amos_company_code"} ,fieldConditions ={"in",
"in"} ,relationship="and")
@UserEmpower
(
field
={
"regional_companies_code"
}
,
fieldConditions
={
"in"
}
,
relationship
=
"and"
)
Map
<
String
,
Object
>
getcountStatejr
(
@Param
(
"dto"
)
JpStationDto
reviewDto
);
// @UserEmpower(field ={"regional_companies_code","amos_company_code"} ,fieldConditions ={"in",
"in"} ,relationship="and")
@UserEmpower
(
field
={
"regional_companies_code"
}
,
fieldConditions
={
"in"
}
,
relationship
=
"and"
)
Map
<
String
,
Object
>
getcount
(
@Param
(
"dto"
)
JpStationDto
reviewDto
);
@UserEmpower
(
field
={
"hygf_jp_station.regional_companies_code"
}
,
dealerField
={
"amos_company_code"
,
"regional_companies_code"
,
"developer_user_id"
}
,
fieldConditions
={
"in"
,
"in"
,
"in"
}
,
relationship
=
"and"
)
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpStationController.java
View file @
8a332077
...
...
@@ -512,43 +512,38 @@ public class JpStationController extends BaseController {
@UserLimits
public
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
getjpStationConservation
(
JpStationDto
reviewDto
)
{
JpStationDto
jpStation
=
jpStationMapper
.
getCountJpStationdata
(
reviewDto
);
List
<
Map
<
String
,
Object
>>
date
=
new
ArrayList
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
DecimalFormat
format2
=
new
DecimalFormat
(
"0.000"
);
//炭
map
.
put
(
"name1"
,
"实时功率(kW)"
);
map
.
put
(
"name2"
,
"组件总容量(MWp)"
);
map
.
put
(
"value1"
,
format2
.
format
(
jpStation
.
getRealTimePower
())
);
map
.
put
(
"value1"
,
jpStation
.
getRealTimePower
()!=
null
?
format2
.
format
(
jpStation
.
getRealTimePower
()):
0
);
//硫
map
.
put
(
"value2"
,
format2
.
format
(
jpStation
.
getCapacity
()));
map
.
put
(
"value2"
,
jpStation
.
getCapacity
()!=
null
?
format2
.
format
(
jpStation
.
getCapacity
()):
0
);
Map
<
String
,
Object
>
map2
=
new
HashMap
<>();
map2
.
put
(
"name1"
,
"当日电量(MWh)"
);
map2
.
put
(
"name2"
,
"当日收益(元)"
);
//炭
map2
.
put
(
"value1"
,
format2
.
format
(
jpStation
.
getDayGenerate
())
);
map2
.
put
(
"value1"
,
jpStation
.
getDayGenerate
()!=
null
?
format2
.
format
(
jpStation
.
getDayGenerate
()):
0
);
//硫
map2
.
put
(
"value2"
,
format2
.
format
(
jpStation
.
getDayIncome
())
);
map2
.
put
(
"value2"
,
jpStation
.
getDayIncome
()!=
null
?
format2
.
format
(
jpStation
.
getDayIncome
()):
0
);
Map
<
String
,
Object
>
map3
=
new
HashMap
<>();
map3
.
put
(
"name1"
,
"当月电量(MWh)"
);
map3
.
put
(
"name2"
,
"当月收益(万元)"
);
//炭
map3
.
put
(
"value1"
,
format2
.
format
(
jpStation
.
getMonthGenerate
())
);
map3
.
put
(
"value1"
,
jpStation
.
getMonthGenerate
()!=
null
?
format2
.
format
(
jpStation
.
getMonthGenerate
()):
0
);
//硫
map3
.
put
(
"value2"
,
format2
.
format
(
jpStation
.
getMonthIncome
())
);
map3
.
put
(
"value2"
,
jpStation
.
getMonthIncome
()!=
null
?
format2
.
format
(
jpStation
.
getMonthIncome
()):
0
);
Map
<
String
,
Object
>
map4
=
new
HashMap
<>();
map4
.
put
(
"name1"
,
"累计电量(MWh)"
);
map4
.
put
(
"name2"
,
"累计收益(万元)"
);
//炭
map4
.
put
(
"value1"
,
format2
.
format
(
jpStation
.
getAccumulatedPower
())
);
map4
.
put
(
"value1"
,
jpStation
.
getAccumulatedPower
()!=
null
?
format2
.
format
(
jpStation
.
getAccumulatedPower
()):
0
);
//硫
map4
.
put
(
"value2"
,
format2
.
format
(
jpStation
.
getCumulativeIncome
())
);
map4
.
put
(
"value2"
,
jpStation
.
getCumulativeIncome
()!=
null
?
format2
.
format
(
jpStation
.
getCumulativeIncome
()):
0
);
date
.
add
(
map
);
date
.
add
(
map2
);
...
...
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