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
dc126a43
Commit
dc126a43
authored
Aug 27, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
并网详情整改单添加
parent
98d4ed3d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
5 deletions
+34
-5
RectificationOrderEnum.java
...mos/boot/module/hygf/api/Enum/RectificationOrderEnum.java
+3
-1
HygfOnGrid.java
.../yeejoin/amos/boot/module/hygf/api/entity/HygfOnGrid.java
+17
-0
WorkOrderServiceImpl.java
...ot/module/hygf/biz/service/impl/WorkOrderServiceImpl.java
+14
-4
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/Enum/RectificationOrderEnum.java
View file @
dc126a43
...
@@ -8,7 +8,9 @@ import lombok.Getter;
...
@@ -8,7 +8,9 @@ import lombok.Getter;
public
enum
RectificationOrderEnum
{
public
enum
RectificationOrderEnum
{
施工
(
"ProcessEngineering"
,
"area,design,engineering"
);
施工
(
"ProcessEngineering"
,
"area,design,engineering"
),
并网
(
"GridConnected"
,
"bw-area,bw-design,bw-engineering"
),
验收
(
"AcceptanceCheck"
,
"ys-area,ys-tourong,ys-fawu"
);
/**
/**
* 名称,描述
* 名称,描述
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/HygfOnGrid.java
View file @
dc126a43
...
@@ -149,4 +149,21 @@ public class HygfOnGrid extends BaseEntity {
...
@@ -149,4 +149,21 @@ public class HygfOnGrid extends BaseEntity {
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
type
;
private
String
type
;
/**
* 片区整改单
*/
@TableField
(
exist
=
false
)
private
List
<
HygfRectificationOrder
>
areaOrders
;
/**
* 工程整改单
*/
@TableField
(
exist
=
false
)
private
List
<
HygfRectificationOrder
>
engineeringOrders
;
/**
* 设计整改单
*/
@TableField
(
exist
=
false
)
private
List
<
HygfRectificationOrder
>
designOrders
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/WorkOrderServiceImpl.java
View file @
dc126a43
...
@@ -9,10 +9,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -9,10 +9,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.module.hygf.api.Enum.ArrivalStateeEnum
;
import
com.yeejoin.amos.boot.module.hygf.api.Enum.*
;
import
com.yeejoin.amos.boot.module.hygf.api.Enum.CodeEnum
;
import
com.yeejoin.amos.boot.module.hygf.api.Enum.DeliveryStateeEnum
;
import
com.yeejoin.amos.boot.module.hygf.api.Enum.WorkOrderEnum
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.*
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.*
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.*
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.*
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.*
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.*
;
...
@@ -849,6 +846,19 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
...
@@ -849,6 +846,19 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
up4
.
eq
(
HygfOnGrid:
:
getWorkOrderId
,
workOrderId
);
up4
.
eq
(
HygfOnGrid:
:
getWorkOrderId
,
workOrderId
);
up4
.
eq
(
HygfOnGrid:
:
getWorkOrderPowerStationId
,
workOrderPowerStationId
);
up4
.
eq
(
HygfOnGrid:
:
getWorkOrderPowerStationId
,
workOrderPowerStationId
);
HygfOnGrid
hygfOnGrid
=
hygfOnGridMapper
.
selectOne
(
up4
);
HygfOnGrid
hygfOnGrid
=
hygfOnGridMapper
.
selectOne
(
up4
);
//增加整改单数据
List
<
HygfRectificationOrder
>
hygfRectificationOrderList
=
rectificationOrderService
.
selectForListBySource
(
String
.
valueOf
(
peasantHousehold
.
getSequenceNbr
()),
RectificationOrderEnum
.
并网
.
getCode
());
if
(
CollectionUtil
.
isNotEmpty
(
hygfRectificationOrderList
)){
List
<
HygfRectificationOrder
>
areaOrders
=
hygfRectificationOrderList
.
stream
().
filter
(
e
->
e
.
getRectificationSource
().
equals
(
"area"
)).
collect
(
Collectors
.
toList
());
List
<
HygfRectificationOrder
>
engineeringOrders
=
hygfRectificationOrderList
.
stream
().
filter
(
e
->
e
.
getRectificationSource
().
equals
(
"engineering"
)).
collect
(
Collectors
.
toList
());
List
<
HygfRectificationOrder
>
designOrders
=
hygfRectificationOrderList
.
stream
().
filter
(
e
->
e
.
getRectificationSource
().
equals
(
"design"
)).
collect
(
Collectors
.
toList
());
powerStationConstructionData
.
setAreaOrders
(
areaOrders
.
size
()>
0
?
areaOrders:
null
);
powerStationConstructionData
.
setEngineeringOrders
(
engineeringOrders
.
size
()>
0
?
engineeringOrders:
null
);
powerStationConstructionData
.
setDesignOrders
(
designOrders
.
size
()>
0
?
designOrders:
null
);
}
surveyInfoAllDto
.
setHygfOnGrid
(
hygfOnGrid
!=
null
?
hygfOnGrid
:
new
HygfOnGrid
());
surveyInfoAllDto
.
setHygfOnGrid
(
hygfOnGrid
!=
null
?
hygfOnGrid
:
new
HygfOnGrid
());
surveyInfoAllDto
.
setPowerStationConstructionData
(
powerStationConstructionData
);
surveyInfoAllDto
.
setPowerStationConstructionData
(
powerStationConstructionData
);
surveyInfoAllDto
.
setPowerStationEngineeringInfo
(
powerStationEngineeringInfo
);
surveyInfoAllDto
.
setPowerStationEngineeringInfo
(
powerStationEngineeringInfo
);
...
...
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