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
6056d9dd
Commit
6056d9dd
authored
Sep 22, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
0eb74095
7081f5d2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
128 additions
and
102 deletions
+128
-102
JpStationDto.java
...m/yeejoin/amos/boot/module/hygf/api/dto/JpStationDto.java
+99
-100
TdHygfJpInverterWarnDto.java
...mos/boot/module/hygf/api/dto/TdHygfJpInverterWarnDto.java
+10
-0
JpStation.java
...m/yeejoin/amos/boot/module/hygf/api/entity/JpStation.java
+2
-2
TdHygfJpInverterWarnServiceImpl.java
...ygf/biz/service/impl/TdHygfJpInverterWarnServiceImpl.java
+17
-0
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 @
6056d9dd
...
@@ -21,125 +21,124 @@ import java.util.List;
...
@@ -21,125 +21,124 @@ import java.util.List;
*/
*/
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"JpStationDto"
,
description
=
"第三方场站"
)
@ApiModel
(
value
=
"JpStationDto"
,
description
=
"第三方场站"
)
public
class
JpStationDto
extends
BaseDto
{
public
class
JpStationDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"sn编码"
)
private
String
snCode
;
@ApiModelProperty
(
value
=
"装机容量"
)
private
Double
capacity
;
@ApiModelProperty
(
value
=
"电站名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"电站编码"
)
private
String
code
;
@ApiModelProperty
(
value
=
"组织编码"
)
private
String
systemCode
;
@ApiModelProperty
(
value
=
"sn编码
"
)
@ApiModelProperty
(
value
=
"接入平台时间
"
)
private
String
snCod
e
;
private
Date
accessTim
e
;
@ApiModelProperty
(
value
=
"装机容量
"
)
@ApiModelProperty
(
value
=
"创建时间
"
)
private
Double
capacity
;
private
Date
createTime
;
@ApiModelProperty
(
value
=
"电站名称
"
)
@ApiModelProperty
(
value
=
"地址
"
)
private
String
name
;
private
String
address
;
@ApiModelProperty
(
value
=
"电站编码
"
)
@ApiModelProperty
(
value
=
"经度
"
)
private
String
co
de
;
private
String
longitu
de
;
@ApiModelProperty
(
value
=
"组织编码
"
)
@ApiModelProperty
(
value
=
"维度
"
)
private
String
systemCo
de
;
private
String
latitu
de
;
@ApiModelProperty
(
value
=
"接入平台时间
"
)
@ApiModelProperty
(
value
=
"上网电价
"
)
private
Date
accessTim
e
;
private
Double
pric
e
;
@ApiModelProperty
(
value
=
"创建时间
"
)
@ApiModelProperty
(
value
=
"业主姓名
"
)
private
Date
createTi
me
;
private
String
userNa
me
;
@ApiModelProperty
(
value
=
"地址
"
)
@ApiModelProperty
(
value
=
"业主电话
"
)
private
String
address
;
private
String
userPhone
;
@ApiModelProperty
(
value
=
"经度
"
)
@ApiModelProperty
(
value
=
"电站联系人
"
)
private
String
longitude
;
private
String
stationContact
;
@ApiModelProperty
(
value
=
"维度
"
)
@ApiModelProperty
(
value
=
"组件数量
"
)
private
String
latitude
;
private
Integer
moduleCount
;
@ApiModelProperty
(
value
=
"上网电价
"
)
@ApiModelProperty
(
value
=
"并网类型
"
)
private
Double
pric
e
;
private
String
onGridTyp
e
;
@ApiModelProperty
(
value
=
"业主姓名
"
)
@ApiModelProperty
(
value
=
"并网时间
"
)
private
String
userNa
me
;
private
Date
onGridTi
me
;
@ApiModelProperty
(
value
=
"业主电话
"
)
@ApiModelProperty
(
value
=
"第三方电站id
"
)
private
String
userPhone
;
private
String
thirdStationId
;
@ApiModelProperty
(
value
=
"电站联系人
"
)
@ApiModelProperty
(
value
=
"电站id
"
)
private
String
stationContact
;
private
Long
stationId
;
@ApiModelProperty
(
value
=
"组件数量"
)
@ApiModelProperty
(
value
=
"第三方厂商标识"
)
private
Integer
moduleCount
;
private
String
thirdCode
;
/**
* 实时功率
*/
private
Double
realTimePower
;
/**
* 累计发电量
*/
private
Double
accumulatedPower
;
/**
* 状态
*/
private
String
state
;
/**
* 电站类型
*/
private
String
type
;
/**
* 组织编码
*/
private
String
organizationalCode
;
@ApiModelProperty
(
value
=
"并网类型"
)
// 日发电量
private
String
onGridType
;
private
Double
dayGenerate
;
// 月发电量
private
Double
monthGenerate
;
// 年发电量
private
Double
yearGenerate
;
// 日收益
private
Double
dayIncome
;
// 月收益
private
Double
monthIncome
;
// 年收益
private
Double
yearIncome
;
// 地区
private
String
area
;
@ApiModelProperty
(
value
=
"并网时间"
)
List
<
JpPersonStation
>
statioId
;
private
Date
onGridTime
;
@ApiModelProperty
(
value
=
"第三方电站id"
)
// 累计收益
private
String
thirdStationId
;
private
Double
cumulativeIncome
;
@ApiModelProperty
(
value
=
"电站id"
)
private
Double
dayPowerUse
;
// 日用电量
private
Long
stationId
;
private
Double
month_power_use
;
// 月用电量
private
Double
yearPowerUse
;
// 年用电量
@ApiModelProperty
(
value
=
"第三方厂商标识"
)
private
String
thirdCode
;
private
int
countBuiltNum
;
// 已建设场站数量
/**
private
int
countNBuiltNum
;
// 未建设场站数量
* 实时功率
*/
List
<
JpInverter
>
jpInverter
;
private
Double
realTimePower
;
/**
List
<
JpCollector
>
JpCollector
;
* 累计发电量
// 时间
*/
String
dateType
;
private
Double
accumulatedPower
;
/**
private
String
email
;
* 状态
*/
private
String
state
;
/**
* 电站类型
*/
private
String
type
;
/**
* 组织编码
*/
private
String
organizationalCode
;
//日发电量
private
Double
dayGenerate
;
//月发电量
private
Double
monthGenerate
;
//年发电量
private
Double
yearGenerate
;
//日收益
private
Double
dayIncome
;
//月收益
private
Double
monthIncome
;
// 年收益
private
Double
yearIncome
;
//地区
private
String
area
;
List
<
JpPersonStation
>
statioId
;
//累计收益
private
Double
cumulativeIncome
;
private
Double
dayPowerUse
;
// 日用电量
private
Double
month_power_use
;
// 月用电量
private
Double
yearPowerUse
;
// 年用电量
private
int
countBuiltNum
;
//已建设场站数量
private
int
countNBuiltNum
;
//未建设场站数量
List
<
JpInverter
>
jpInverter
;
List
<
JpCollector
>
JpCollector
;
//时间
String
dateType
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/TdHygfJpInverterWarnDto.java
View file @
6056d9dd
...
@@ -53,6 +53,16 @@ public class TdHygfJpInverterWarnDto {
...
@@ -53,6 +53,16 @@ public class TdHygfJpInverterWarnDto {
@ApiModelProperty
(
value
=
"时间"
)
@ApiModelProperty
(
value
=
"时间"
)
private
Long
time
;
private
Long
time
;
private
String
stationContact
;
private
String
userName
;
private
String
userPhone
;
private
String
email
;
private
String
address
;
private
Long
createdTime
;
private
Long
createdTime
;
private
List
<
String
>
stationIds
;
private
List
<
String
>
stationIds
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/JpStation.java
View file @
6056d9dd
...
@@ -201,8 +201,8 @@ public class JpStation extends BaseEntity {
...
@@ -201,8 +201,8 @@ public class JpStation extends BaseEntity {
private
Double
yearPowerUse
;
// 年用电量
private
Double
yearPowerUse
;
// 年用电量
@TableField
(
"email"
)
private
Double
email
;
//邮箱
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/TdHygfJpInverterWarnServiceImpl.java
View file @
6056d9dd
...
@@ -6,6 +6,7 @@ import java.util.HashMap;
...
@@ -6,6 +6,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
...
@@ -18,6 +19,7 @@ import com.github.pagehelper.PageInfo;
...
@@ -18,6 +19,7 @@ import com.github.pagehelper.PageInfo;
import
com.yeejoin.amos.boot.module.hygf.api.dto.ReviewDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.ReviewDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpInverterWarnDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpInverterWarnDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpCollector
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpCollector
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpStation
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.TdHygfJpInverterWarn
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.TdHygfJpInverterWarn
;
import
com.yeejoin.amos.boot.module.hygf.api.service.ITdHygfJpInverterWarnService
;
import
com.yeejoin.amos.boot.module.hygf.api.service.ITdHygfJpInverterWarnService
;
import
com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.TdHygfJpInverterWarnMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.TdHygfJpInverterWarnMapper
;
...
@@ -32,6 +34,10 @@ import com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.TdHygfJpInverterWarn
...
@@ -32,6 +34,10 @@ import com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.TdHygfJpInverterWarn
public
class
TdHygfJpInverterWarnServiceImpl
public
class
TdHygfJpInverterWarnServiceImpl
extends
BaseService
<
TdHygfJpInverterWarnDto
,
TdHygfJpInverterWarn
,
TdHygfJpInverterWarnMapper
>
extends
BaseService
<
TdHygfJpInverterWarnDto
,
TdHygfJpInverterWarn
,
TdHygfJpInverterWarnMapper
>
implements
ITdHygfJpInverterWarnService
{
implements
ITdHygfJpInverterWarnService
{
@Autowired
JpStationServiceImpl
jpStationServiceImpl
;
/**
/**
* 分页查询
* 分页查询
*/
*/
...
@@ -65,6 +71,16 @@ public class TdHygfJpInverterWarnServiceImpl
...
@@ -65,6 +71,16 @@ public class TdHygfJpInverterWarnServiceImpl
Map
map
=
new
HashMap
<>();
Map
map
=
new
HashMap
<>();
map
.
put
(
"created_time"
,
createdTime
);
map
.
put
(
"created_time"
,
createdTime
);
TdHygfJpInverterWarnDto
tdHygfJpInverterWarnDto
=
this
.
baseMapper
.
getByTime
(
createdTime
);
TdHygfJpInverterWarnDto
tdHygfJpInverterWarnDto
=
this
.
baseMapper
.
getByTime
(
createdTime
);
JpStation
jpStation
=
jpStationServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
JpStation
>()
.
eq
(
JpStation:
:
getThirdStationId
,
tdHygfJpInverterWarnDto
.
getThirdStationId
()));
if
(
jpStation
!=
null
)
{
tdHygfJpInverterWarnDto
.
setStationContact
(
jpStation
.
getStationContact
());
tdHygfJpInverterWarnDto
.
setUserName
(
jpStation
.
getUserName
());
tdHygfJpInverterWarnDto
.
setUserPhone
(
jpStation
.
getUserPhone
());
tdHygfJpInverterWarnDto
.
setEmail
(
null
);
tdHygfJpInverterWarnDto
.
setAddress
(
jpStation
.
getAddress
());
}
return
tdHygfJpInverterWarnDto
;
return
tdHygfJpInverterWarnDto
;
}
}
}
}
\ No newline at end of file
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