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
6be70214
Commit
6be70214
authored
Jan 16, 2024
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
施工自审
parent
6a462d9c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
8 deletions
+53
-8
ConstructionRecordsDto.java
...amos/boot/module/hygf/api/dto/ConstructionRecordsDto.java
+3
-0
PowerStationEngineeringInfoAllDto.java
...odule/hygf/api/dto/PowerStationEngineeringInfoAllDto.java
+5
-7
ConstructionRecords.java
...amos/boot/module/hygf/api/entity/ConstructionRecords.java
+26
-0
HygfOnGrid.java
.../yeejoin/amos/boot/module/hygf/api/entity/HygfOnGrid.java
+1
-1
WorkOrderController.java
.../boot/module/hygf/biz/controller/WorkOrderController.java
+18
-0
WorkOrderServiceImpl.java
...ot/module/hygf/biz/service/impl/WorkOrderServiceImpl.java
+0
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/ConstructionRecordsDto.java
View file @
6be70214
...
...
@@ -42,4 +42,7 @@ public class ConstructionRecordsDto extends BaseDto {
@ApiModelProperty
(
value
=
"农户id"
)
private
Long
peasantHouseholdId
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
notes
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/PowerStationEngineeringInfoAllDto.java
View file @
6be70214
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
dto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.HygfOnGrid
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.PowerStationConstructionData
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.PowerStationEngineeringInfo
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.WorkOrder
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.*
;
import
lombok.Data
;
/**
...
...
@@ -14,10 +11,12 @@ import lombok.Data;
@Data
public
class
PowerStationEngineeringInfoAllDto
{
// 基本信息
SurveyInformationDto
surveyInformation
;
//自审信息
ConstructionRecords
constructionRecords
;
// 基本信息
SurveyInformationDto
surveyInformation
;
Long
workOrderPowerStationId
;
...
...
@@ -28,7 +27,6 @@ public class PowerStationEngineeringInfoAllDto {
SurveyDetailsDto
surveyDetails
;
// 扩展信息
ExtendedInformationDto
extendedInformation
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/ConstructionRecords.java
View file @
6be70214
...
...
@@ -3,10 +3,12 @@ package com.yeejoin.amos.boot.module.hygf.api.entity;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
import
java.util.List
;
/**
* 施工日志
...
...
@@ -64,4 +66,28 @@ public class ConstructionRecords extends BaseEntity {
@TableField
(
"peasant_household_id"
)
private
Long
peasantHouseholdId
;
@TableField
(
"notes"
)
private
String
notes
;
public
ConstructionRecords
(
String
operator
,
String
operationContent
,
Date
operationTime
,
String
operationResults
,
Long
workOrderId
,
Long
workOrderPowerStationId
,
Long
peasantHouseholdId
,
String
notes
)
{
this
.
operator
=
operator
;
this
.
operationContent
=
operationContent
;
this
.
operationTime
=
operationTime
;
this
.
operationResults
=
operationResults
;
this
.
workOrderId
=
workOrderId
;
this
.
workOrderPowerStationId
=
workOrderPowerStationId
;
this
.
peasantHouseholdId
=
peasantHouseholdId
;
this
.
notes
=
notes
;
}
public
ConstructionRecords
()
{
}
@TableField
(
exist
=
false
)
List
<
ConstructionRecords
>
constructionRecordsList
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/HygfOnGrid.java
View file @
6be70214
...
...
@@ -21,7 +21,7 @@ import java.util.List;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
value
=
"hygf_on_grid"
,
autoResultMap
=
true
)
@TableName
(
value
=
"hygf_on_grid
_and_acceptance
"
,
autoResultMap
=
true
)
public
class
HygfOnGrid
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/WorkOrderController.java
View file @
6be70214
...
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.hygf.biz.controller;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.*
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.ConstructionRecords
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.PeasantHousehold
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.PowerStationConstructionData
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.WorkOrder
;
...
...
@@ -272,9 +273,26 @@ public class WorkOrderController extends BaseController {
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"完工登记审核详情"
,
notes
=
"完工登记审核详情"
)
@GetMapping
(
value
=
"/getConstructionRecords"
)
public
ResponseModel
<
PowerStationEngineeringInfoAllDto
>
getConstructionRecords
(
@RequestParam
(
value
=
"workOrderPowerStationId"
)
Long
workOrderPowerStationId
)
{
PowerStationEngineeringInfoAllDto
returnDto
=
workOrderServiceImpl
.
getConstructionRecords
(
workOrderPowerStationId
,
getUserInfo
().
getRealName
());
return
ResponseHelper
.
buildResponse
(
returnDto
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"完工登记审核"
,
notes
=
"完工登记审核"
)
@PostMapping
(
value
=
"/addConstructionRecords"
)
public
ResponseModel
<
ConstructionRecords
>
addConstructionRecords
(
@RequestBody
PowerStationEngineeringInfoAllDto
constructionRecords
)
{
ConstructionRecords
da
=
constructionRecords
.
getConstructionRecords
();
da
.
setWorkOrderPowerStationId
(
constructionRecords
.
getWorkOrderPowerStationId
());
ConstructionRecords
returnDto
=
workOrderServiceImpl
.
addConstructionRecords
(
da
);
return
ResponseHelper
.
buildResponse
(
returnDto
);
}
...
...
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 @
6be70214
This diff is collapsed.
Click to expand it.
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