Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gf_back
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianchao
gf_back
Commits
de571930
Commit
de571930
authored
Aug 29, 2023
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(能源管理系统): 基础信息配置
1.开发基础信息配置-输电线路配置模块列表功能,完成接口冒烟测试并生成接口文档; BREAKING CHANGE: 无 Closes 无 [skip ci]
parent
b263a1b2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
332 deletions
+53
-332
C09-base/pps-core-base/src/main/java/pps/core/base/service/BasePowerLineService.java
...main/java/pps/core/base/service/BasePowerLineService.java
+35
-0
C09-base/pps-core-base/src/main/java/pps/core/base/service/data/base_power_line/DynamicQueryBasePowerLineInput.java
.../data/base_power_line/DynamicQueryBasePowerLineInput.java
+10
-159
C09-base/pps-core-base/src/main/java/pps/core/base/service/data/base_power_line/DynamicQueryBasePowerLineOutput.java
...data/base_power_line/DynamicQueryBasePowerLineOutput.java
+8
-173
No files found.
C09-base/pps-core-base/src/main/java/pps/core/base/service/BasePowerLineService.java
View file @
de571930
...
...
@@ -17,6 +17,7 @@ import pps.core.base.service.data.base_power_line_plant.GetBasePowerLinePlantVie
import
pps.core.base.service.data.base_power_line_storage.GetBasePowerLineStorageViewOutput
;
import
pps.core.base.service.data.base_power_line_wellhead.GetBasePowerLineWellheadViewOutput
;
import
pps.core.base.utils.DictUtils
;
import
pps.core.common.entity.BaseEnt
;
import
pps.core.common.session.PpsUserSession
;
import
pps.core.common.utils.BaseEntUtils
;
import
pps.core.system.constant.DictTypeConstant
;
...
...
@@ -24,6 +25,7 @@ import xstartup.annotation.XService;
import
xstartup.annotation.XText
;
import
xstartup.base.XContext
;
import
xstartup.base.util.XCopyUtils
;
import
xstartup.data.XListResult
;
import
xstartup.data.XPageResult
;
import
xstartup.data.XServiceResult
;
import
xstartup.data.XSingleResult
;
...
...
@@ -223,6 +225,39 @@ public class BasePowerLineService {
return
XPageResult
.
success
(
outputs
,
input
,
pageInfo
.
getTotal
());
}
/**
* 输电线路配置--列表
*
* @param context 上下文
* @param input 输入
* @return {@link XListResult}<{@link QueryBasePowerLineOutput}>
*/
@XApiAnonymous
@XApiGet
@XText
(
"输电线路配置--列表"
)
public
XListResult
<
DynamicQueryBasePowerLineOutput
>
queryBasePowerLineList
(
XContext
context
,
DynamicQueryBasePowerLineInput
input
)
{
String
lineId
=
input
.
getId
();
String
ouId
=
input
.
getOuId
();
String
upperLineId
=
input
.
getUpperLineId
();
String
lineName
=
input
.
getLineName
();
String
gridTypeKey
=
input
.
getGridTypeKey
();
String
lineTypeKey
=
input
.
getLineTypeKey
();
String
strategyId
=
input
.
getStrategyId
();
BasePowerLineMapper
mapper
=
context
.
getBean
(
BasePowerLineMapper
.
class
);
List
<
BasePowerLineEnt
>
selectList
=
mapper
.
selectList
(
new
LambdaQueryWrapper
<
BasePowerLineEnt
>()
.
select
(
BaseEnt:
:
getId
,
BasePowerLineEnt:
:
getLineName
)
.
eq
(
StringUtils
.
isNotBlank
(
lineId
),
BaseEnt:
:
getId
,
lineId
)
.
eq
(
StringUtils
.
isNotBlank
(
ouId
),
BasePowerLineEnt:
:
getOuId
,
ouId
)
.
eq
(
StringUtils
.
isNotBlank
(
upperLineId
),
BasePowerLineEnt:
:
getUpperLineId
,
upperLineId
)
.
like
(
StringUtils
.
isNotBlank
(
lineName
),
BasePowerLineEnt:
:
getLineName
,
lineName
)
.
eq
(
StringUtils
.
isNotBlank
(
gridTypeKey
),
BasePowerLineEnt:
:
getGridTypeKey
,
gridTypeKey
)
.
eq
(
StringUtils
.
isNotBlank
(
lineTypeKey
),
BasePowerLineEnt:
:
getLineTypeKey
,
lineTypeKey
)
.
eq
(
StringUtils
.
isNotBlank
(
strategyId
),
BasePowerLineEnt:
:
getStrategyId
,
strategyId
)
);
List
<
DynamicQueryBasePowerLineOutput
>
lineOutputList
=
XCopyUtils
.
copyNewList
(
selectList
,
DynamicQueryBasePowerLineOutput
.
class
);
return
XListResult
.
success
(
lineOutputList
);
}
/*-----------------------------------private-----------------------------------*/
...
...
C09-base/pps-core-base/src/main/java/pps/core/base/service/data/base_power_line/DynamicQueryBasePowerLineInput.java
View file @
de571930
package
pps.core.base.service.data.base_power_line
;
import
lombok.Data
;
import
xstartup.annotation.XText
;
import
java.util.Date
;
import
java.math.BigDecimal
;
/**
* 输电线路配置
*
* @author ZWT
* @date 2023/08/29
*/
@Data
public
class
DynamicQueryBasePowerLineInput
{
@XText
(
"ID"
)
private
String
id
;
@XText
(
"是否删除(0_是;1_否)"
)
private
Integer
isDeleted
;
@XText
(
"创建人ID"
)
private
String
createById
;
@XText
(
"创建人名称"
)
private
String
createByName
;
@XText
(
"创建时间"
)
private
Date
createTime
;
@XText
(
"修改人ID"
)
private
String
modifyById
;
@XText
(
"修改人名称"
)
private
String
modifyByName
;
@XText
(
"修改时间"
)
private
Date
modifyTime
;
@XText
(
"线路ID"
)
private
String
id
;
@XText
(
"组织机构ID"
)
private
String
ouId
;
...
...
@@ -46,139 +32,4 @@ public class DynamicQueryBasePowerLineInput {
@XText
(
"市电峰谷配置ID"
)
private
String
strategyId
;
@XText
(
"是否激活共享调度(0_激活;1_关闭)"
)
private
Integer
isShareDispatch
;
@XText
(
"是否激活返输调度(0_激活;1_关闭)"
)
private
Integer
isReverseDispatch
;
public
String
getId
()
{
return
this
.
id
;
}
public
void
setId
(
String
value
)
{
this
.
id
=
value
;
}
public
Integer
getIsDeleted
()
{
return
this
.
isDeleted
;
}
public
void
setIsDeleted
(
Integer
value
)
{
this
.
isDeleted
=
value
;
}
public
String
getCreateById
()
{
return
this
.
createById
;
}
public
void
setCreateById
(
String
value
)
{
this
.
createById
=
value
;
}
public
String
getCreateByName
()
{
return
this
.
createByName
;
}
public
void
setCreateByName
(
String
value
)
{
this
.
createByName
=
value
;
}
public
Date
getCreateTime
()
{
return
this
.
createTime
;
}
public
void
setCreateTime
(
Date
value
)
{
this
.
createTime
=
value
;
}
public
String
getModifyById
()
{
return
this
.
modifyById
;
}
public
void
setModifyById
(
String
value
)
{
this
.
modifyById
=
value
;
}
public
String
getModifyByName
()
{
return
this
.
modifyByName
;
}
public
void
setModifyByName
(
String
value
)
{
this
.
modifyByName
=
value
;
}
public
Date
getModifyTime
()
{
return
this
.
modifyTime
;
}
public
void
setModifyTime
(
Date
value
)
{
this
.
modifyTime
=
value
;
}
public
String
getOuId
()
{
return
this
.
ouId
;
}
public
void
setOuId
(
String
value
)
{
this
.
ouId
=
value
;
}
public
String
getUpperLineId
()
{
return
this
.
upperLineId
;
}
public
void
setUpperLineId
(
String
value
)
{
this
.
upperLineId
=
value
;
}
public
String
getLineName
()
{
return
this
.
lineName
;
}
public
void
setLineName
(
String
value
)
{
this
.
lineName
=
value
;
}
public
String
getGridTypeKey
()
{
return
this
.
gridTypeKey
;
}
public
void
setGridTypeKey
(
String
value
)
{
this
.
gridTypeKey
=
value
;
}
public
String
getLineTypeKey
()
{
return
this
.
lineTypeKey
;
}
public
void
setLineTypeKey
(
String
value
)
{
this
.
lineTypeKey
=
value
;
}
public
String
getStrategyId
()
{
return
this
.
strategyId
;
}
public
void
setStrategyId
(
String
value
)
{
this
.
strategyId
=
value
;
}
public
Integer
getIsShareDispatch
()
{
return
this
.
isShareDispatch
;
}
public
void
setIsShareDispatch
(
Integer
value
)
{
this
.
isShareDispatch
=
value
;
}
public
Integer
getIsReverseDispatch
()
{
return
this
.
isReverseDispatch
;
}
public
void
setIsReverseDispatch
(
Integer
value
)
{
this
.
isReverseDispatch
=
value
;
}
}
C09-base/pps-core-base/src/main/java/pps/core/base/service/data/base_power_line/DynamicQueryBasePowerLineOutput.java
View file @
de571930
package
pps.core.base.service.data.base_power_line
;
import
lombok.Data
;
import
xstartup.annotation.XText
;
import
java.util.Date
;
import
java.math.BigDecimal
;
/**
* 输电线路配置
*
* @author ZWT
* @date 2023/08/29
*/
@Data
public
class
DynamicQueryBasePowerLineOutput
{
@XText
(
"ID"
)
private
String
id
;
@XText
(
"是否删除(0_是;1_否)"
)
private
Integer
isDeleted
;
@XText
(
"创建人ID"
)
private
String
createById
;
@XText
(
"创建人名称"
)
private
String
createByName
;
@XText
(
"创建时间"
)
private
Date
createTime
;
@XText
(
"修改人ID"
)
private
String
modifyById
;
@XText
(
"修改人名称"
)
private
String
modifyByName
;
@XText
(
"修改时间"
)
private
Date
modifyTime
;
@XText
(
"组织机构ID"
)
private
String
ouId
;
@XText
(
"上级线路ID"
)
private
String
upperLineId
;
@XText
(
"线路名称"
)
private
String
lineName
;
@XText
(
"电网类型key(字典获取)"
)
private
String
gridTypeKey
;
@XText
(
"线路类型key(字典获取)"
)
private
String
lineTypeKey
;
@XText
(
"市电峰谷配置ID"
)
private
String
strategyId
;
@XText
(
"是否激活共享调度(0_激活;1_关闭)"
)
private
Integer
isShareDispatch
;
@XText
(
"是否激活返输调度(0_激活;1_关闭)"
)
private
Integer
isReverseDispatch
;
public
String
getId
()
{
return
this
.
id
;
}
public
void
setId
(
String
value
)
{
this
.
id
=
value
;
}
public
Integer
getIsDeleted
()
{
return
this
.
isDeleted
;
}
public
void
setIsDeleted
(
Integer
value
)
{
this
.
isDeleted
=
value
;
}
public
String
getCreateById
()
{
return
this
.
createById
;
}
public
void
setCreateById
(
String
value
)
{
this
.
createById
=
value
;
}
public
String
getCreateByName
()
{
return
this
.
createByName
;
}
public
void
setCreateByName
(
String
value
)
{
this
.
createByName
=
value
;
}
public
Date
getCreateTime
()
{
return
this
.
createTime
;
}
public
void
setCreateTime
(
Date
value
)
{
this
.
createTime
=
value
;
}
public
String
getModifyById
()
{
return
this
.
modifyById
;
}
public
void
setModifyById
(
String
value
)
{
this
.
modifyById
=
value
;
}
public
String
getModifyByName
()
{
return
this
.
modifyByName
;
}
public
void
setModifyByName
(
String
value
)
{
this
.
modifyByName
=
value
;
}
public
Date
getModifyTime
()
{
return
this
.
modifyTime
;
}
public
void
setModifyTime
(
Date
value
)
{
this
.
modifyTime
=
value
;
}
public
String
getOuId
()
{
return
this
.
ouId
;
}
public
void
setOuId
(
String
value
)
{
this
.
ouId
=
value
;
}
public
String
getUpperLineId
()
{
return
this
.
upperLineId
;
}
public
void
setUpperLineId
(
String
value
)
{
this
.
upperLineId
=
value
;
}
public
String
getLineName
()
{
return
this
.
lineName
;
}
public
void
setLineName
(
String
value
)
{
this
.
lineName
=
value
;
}
public
String
getGridTypeKey
()
{
return
this
.
gridTypeKey
;
}
public
void
setGridTypeKey
(
String
value
)
{
this
.
gridTypeKey
=
value
;
}
public
String
getLineTypeKey
()
{
return
this
.
lineTypeKey
;
}
public
void
setLineTypeKey
(
String
value
)
{
this
.
lineTypeKey
=
value
;
}
public
String
getStrategyId
()
{
return
this
.
strategyId
;
}
public
void
setStrategyId
(
String
value
)
{
this
.
strategyId
=
value
;
}
public
Integer
getIsShareDispatch
()
{
return
this
.
isShareDispatch
;
}
public
void
setIsShareDispatch
(
Integer
value
)
{
this
.
isShareDispatch
=
value
;
}
public
Integer
getIsReverseDispatch
()
{
return
this
.
isReverseDispatch
;
}
public
void
setIsReverseDispatch
(
Integer
value
)
{
this
.
isReverseDispatch
=
value
;
}
}
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