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
ab60131f
Commit
ab60131f
authored
Sep 20, 2023
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
e9abeee2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
17 deletions
+17
-17
TdHygfJpInvertorElecHistoryMapper.java
...api/tdenginemapper/TdHygfJpInvertorElecHistoryMapper.java
+9
-1
TdHygfJpCollectorHistoryController.java
...gf/biz/controller/TdHygfJpCollectorHistoryController.java
+1
-1
TdHygfJpInvertorElecHistoryController.java
...biz/controller/TdHygfJpInvertorElecHistoryController.java
+1
-1
TdHygfJpCollectorHistoryServiceImpl.java
...biz/service/impl/TdHygfJpCollectorHistoryServiceImpl.java
+3
-7
TdHygfJpInvertorElecHistoryServiceImpl.java
.../service/impl/TdHygfJpInvertorElecHistoryServiceImpl.java
+3
-7
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/tdenginemapper/TdHygfJpInvertorElecHistoryMapper.java
View file @
ab60131f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
tdenginemapper
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
tdenginemapper
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.TdHygfJpInvertorElecHistory
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpInvertorElecHistoryDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.TdHygfJpInvertorElecHistory
;
/**
/**
* 户用光伏监盘逆变器电能历史表 Mapper 接口
* 户用光伏监盘逆变器电能历史表 Mapper 接口
...
@@ -11,4 +16,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
...
@@ -11,4 +16,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
*/
public
interface
TdHygfJpInvertorElecHistoryMapper
extends
BaseMapper
<
TdHygfJpInvertorElecHistory
>
{
public
interface
TdHygfJpInvertorElecHistoryMapper
extends
BaseMapper
<
TdHygfJpInvertorElecHistory
>
{
List
<
TdHygfJpInvertorElecHistoryDto
>
dayList
(
@Param
(
"snCode"
)
String
snCode
,
@Param
(
"thirdStationId"
)
String
thirdStationId
,
@Param
(
"startTime"
)
long
startTime
,
@Param
(
"endTime"
)
long
endTime
);
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/TdHygfJpCollectorHistoryController.java
View file @
ab60131f
...
@@ -127,7 +127,7 @@ public class TdHygfJpCollectorHistoryController extends BaseController {
...
@@ -127,7 +127,7 @@ public class TdHygfJpCollectorHistoryController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏监盘采集器历史表列表全部数据查询"
,
notes
=
"户用光伏监盘采集器历史表列表全部数据查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏监盘采集器历史表列表全部数据查询"
,
notes
=
"户用光伏监盘采集器历史表列表全部数据查询"
)
@GetMapping
(
value
=
"/list/day"
)
@GetMapping
(
value
=
"/list/day"
)
public
ResponseModel
<
List
<
TdHygfJpCollectorHistory
>>
dayList
(
@RequestParam
(
value
=
"id"
)
long
id
,
public
ResponseModel
<
List
<
TdHygfJpCollectorHistory
Dto
>>
dayList
(
@RequestParam
(
value
=
"id"
)
long
id
,
@RequestParam
(
value
=
"day"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
Date
day
)
{
@RequestParam
(
value
=
"day"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
Date
day
)
{
return
ResponseHelper
.
buildResponse
(
tdHygfJpCollectorHistoryServiceImpl
.
dayList
(
id
,
day
));
return
ResponseHelper
.
buildResponse
(
tdHygfJpCollectorHistoryServiceImpl
.
dayList
(
id
,
day
));
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/TdHygfJpInvertorElecHistoryController.java
View file @
ab60131f
...
@@ -127,7 +127,7 @@ public class TdHygfJpInvertorElecHistoryController extends BaseController {
...
@@ -127,7 +127,7 @@ public class TdHygfJpInvertorElecHistoryController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏监盘逆变器电能历史表列表全部数据查询"
,
notes
=
"户用光伏监盘逆变器电能历史表列表全部数据查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏监盘逆变器电能历史表列表全部数据查询"
,
notes
=
"户用光伏监盘逆变器电能历史表列表全部数据查询"
)
@GetMapping
(
value
=
"/list/day"
)
@GetMapping
(
value
=
"/list/day"
)
public
ResponseModel
<
List
<
TdHygfJpInvertorElecHistory
>>
dayList
(
@RequestParam
(
value
=
"id"
)
long
id
,
public
ResponseModel
<
List
<
TdHygfJpInvertorElecHistory
Dto
>>
dayList
(
@RequestParam
(
value
=
"id"
)
long
id
,
@RequestParam
(
value
=
"day"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
Date
day
)
{
@RequestParam
(
value
=
"day"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
Date
day
)
{
return
ResponseHelper
.
buildResponse
(
tdHygfJpInvertorElecHistoryServiceImpl
.
dayList
(
id
,
day
));
return
ResponseHelper
.
buildResponse
(
tdHygfJpInvertorElecHistoryServiceImpl
.
dayList
(
id
,
day
));
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/TdHygfJpCollectorHistoryServiceImpl.java
View file @
ab60131f
...
@@ -42,16 +42,12 @@ public class TdHygfJpCollectorHistoryServiceImpl
...
@@ -42,16 +42,12 @@ public class TdHygfJpCollectorHistoryServiceImpl
/**
/**
* 列表查询 示例
* 列表查询 示例
*/
*/
public
List
<
TdHygfJpCollectorHistory
>
dayList
(
long
id
,
Date
day
)
{
public
List
<
TdHygfJpCollectorHistory
Dto
>
dayList
(
long
id
,
Date
day
)
{
JpCollector
collector
=
jpCollectorServiceImpl
.
getById
(
id
);
JpCollector
collector
=
jpCollectorServiceImpl
.
getById
(
id
);
if
(
collector
!=
null
)
{
if
(
collector
!=
null
)
{
LambdaQueryChainWrapper
<
TdHygfJpCollectorHistory
>
warpper
=
this
.
lambdaQuery
()
return
this
.
baseMapper
.
dayList
(
collector
.
getSnCode
(),
collector
.
getThirdStationId
(),
.
between
(
TdHygfJpCollectorHistory:
:
getTime
,
TimeUtil
.
getStartTimeOfDay
(
day
),
TimeUtil
.
getStartTimeOfDay
(
day
),
TimeUtil
.
getEndTimeOfDay
(
day
));
TimeUtil
.
getEndTimeOfDay
(
day
))
.
eq
(
TdHygfJpCollectorHistory:
:
getSnCode
,
collector
.
getSnCode
())
.
eq
(
TdHygfJpCollectorHistory:
:
getThirdStationId
,
collector
.
getThirdStationId
());
return
this
.
baseMapper
.
selectList
(
warpper
);
}
}
return
new
ArrayList
<>();
return
new
ArrayList
<>();
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/TdHygfJpInvertorElecHistoryServiceImpl.java
View file @
ab60131f
...
@@ -43,15 +43,11 @@ public class TdHygfJpInvertorElecHistoryServiceImpl extends
...
@@ -43,15 +43,11 @@ public class TdHygfJpInvertorElecHistoryServiceImpl extends
/**
/**
* 列表查询 示例
* 列表查询 示例
*/
*/
public
List
<
TdHygfJpInvertorElecHistory
>
dayList
(
long
id
,
Date
day
)
{
public
List
<
TdHygfJpInvertorElecHistory
Dto
>
dayList
(
long
id
,
Date
day
)
{
JpInverter
invertor
=
jpInvertorServiceImpl
.
getById
(
id
);
JpInverter
invertor
=
jpInvertorServiceImpl
.
getById
(
id
);
if
(
invertor
!=
null
)
{
if
(
invertor
!=
null
)
{
LambdaQueryChainWrapper
<
TdHygfJpInvertorElecHistory
>
warpper
=
this
.
lambdaQuery
()
return
this
.
baseMapper
.
dayList
(
invertor
.
getSnCode
(),
invertor
.
getThirdStationId
(),
.
between
(
TdHygfJpInvertorElecHistory:
:
getTime
,
TimeUtil
.
getStartTimeOfDay
(
day
),
TimeUtil
.
getStartTimeOfDay
(
day
),
TimeUtil
.
getEndTimeOfDay
(
day
));
TimeUtil
.
getEndTimeOfDay
(
day
))
.
eq
(
TdHygfJpInvertorElecHistory:
:
getSnCode
,
invertor
.
getSnCode
())
.
eq
(
TdHygfJpInvertorElecHistory:
:
getThirdStationId
,
invertor
.
getThirdStationId
());
return
this
.
baseMapper
.
selectList
(
warpper
);
}
}
return
new
ArrayList
<>();
return
new
ArrayList
<>();
}
}
...
...
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