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
1ba3fd03
Commit
1ba3fd03
authored
Jan 24, 2024
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改并网时间,以及增加并网自审记录
parent
98e6fb42
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
6 deletions
+15
-6
PowerStationEngineeringInfo.java
...t/module/hygf/api/entity/PowerStationEngineeringInfo.java
+0
-1
WorkOrder.java
...m/yeejoin/amos/boot/module/hygf/api/entity/WorkOrder.java
+4
-0
PowerStationConstructionDataServiceImpl.java
...service/impl/PowerStationConstructionDataServiceImpl.java
+3
-4
WorkOrderServiceImpl.java
...ot/module/hygf/biz/service/impl/WorkOrderServiceImpl.java
+8
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/PowerStationEngineeringInfo.java
View file @
1ba3fd03
...
...
@@ -104,7 +104,6 @@ public class PowerStationEngineeringInfo extends BaseEntity {
private
Long
workOrderPowerStationId
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@TableField
(
"completion_date"
)
private
Date
completionDate
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/WorkOrder.java
View file @
1ba3fd03
...
...
@@ -8,6 +8,7 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -43,12 +44,14 @@ public class WorkOrder extends BaseEntity {
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@TableField
(
"issue_date"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
issueDate
;
/**
* 计划开工日期
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@TableField
(
"planned_start_date"
)
private
Date
plannedStartDate
;
...
...
@@ -56,6 +59,7 @@ public class WorkOrder extends BaseEntity {
* 计划完工日期
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@TableField
(
"planned_end_date"
)
private
Date
plannedEndDate
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/PowerStationConstructionDataServiceImpl.java
View file @
1ba3fd03
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.PowerStationConstructionDataDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.PowerStationConstructionData
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.PowerStationConstructionDataMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.service.IPowerStationConstructionDataService
;
import
org.springframework.stereotype.Service
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.PowerStationConstructionDataDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
/**
...
...
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 @
1ba3fd03
...
...
@@ -802,7 +802,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto,WorkOrder,Wor
//修改电站状态
workOrderPowerStation
.
setPowerStationConstructionStatus
(
WorkOrderEnum
.
待审核
.
getCode
());
workOrderPowerStationMapper
.
updateById
(
workOrderPowerStation
);
//修改派工单状态
//修改派工单状态
PowerStationEngineeringInfo
LambdaQueryWrapper
<
WorkOrderPowerStation
>
qu1
=
new
LambdaQueryWrapper
();
qu1
.
eq
(
WorkOrderPowerStation:
:
getWorkOrderId
,
workOrderPowerStation
.
getWorkOrderId
());
List
<
String
>
d
=
new
ArrayList
<>();
...
...
@@ -874,6 +874,12 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto,WorkOrder,Wor
//修改电站状态
workOrderPowerStation
.
setPowerStationConstructionStatus
(
WorkOrderEnum
.
已完工
.
getCode
());
//修改完工时间
LambdaUpdateWrapper
<
PowerStationEngineeringInfo
>
upq1
=
new
LambdaUpdateWrapper
();
upq1
.
eq
(
PowerStationEngineeringInfo:
:
getWorkOrderPowerStationId
,
workOrderPowerStation
.
getSequenceNbr
());
upq1
.
set
(
PowerStationEngineeringInfo:
:
getCompletionDate
,
new
Date
());
powerStationEngineeringInfoMapper
.
update
(
null
,
upq1
);
BasicGridAcceptance
dat
=
new
BasicGridAcceptance
();
dat
.
setWorkOrderId
(
workOrderPowerStation
.
getWorkOrderId
());
dat
.
setWorkOrderPowerStationId
(
workOrderPowerStation
.
getSequenceNbr
());
...
...
@@ -913,6 +919,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto,WorkOrder,Wor
//增加操作日志
constructionRecords
.
setWorkOrderId
(
workOrderPowerStation
.
getWorkOrderId
());
constructionRecords
.
setOperationContent
(
"完工自审-"
+
constructionRecords
.
getOperationResults
());
constructionRecords
.
setWorkOrderPowerStationId
(
workOrderPowerStation
.
getSequenceNbr
());
constructionRecords
.
setPeasantHouseholdId
(
workOrderPowerStation
.
getPeasantHouseholdId
());
constructionRecordsServiceImpl
.
save
(
constructionRecords
);
...
...
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