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
1bd766b2
Commit
1bd766b2
authored
Sep 02, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
派工发料列表添加字段
parent
56677fe9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
PreparationMoneyController.java
...odule/hygf/biz/controller/PreparationMoneyController.java
+13
-0
WorkOrderServiceImpl.java
...ot/module/hygf/biz/service/impl/WorkOrderServiceImpl.java
+12
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/PreparationMoneyController.java
View file @
1bd766b2
...
...
@@ -12,6 +12,7 @@ import com.yeejoin.amos.boot.module.hygf.api.entity.HygfReplenishment;
import
com.yeejoin.amos.boot.module.hygf.api.entity.PeasantHousehold
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.PreparationMoney
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.DocumentStationMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.HouseholdContractMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.PersonnelBusinessMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.PreparationMoneyMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseNewUtil
;
...
...
@@ -53,6 +54,8 @@ public class PreparationMoneyController extends BaseController {
PreparationMoneyServiceImpl
preparationMoneyServiceImpl
;
@Autowired
PreparationMoneyMapper
preparationMoneyMapper
;
@Autowired
HouseholdContractMapper
householdContractMapper
;
@Autowired
DesignInformationServiceImpl
designInformationService
;
@Autowired
...
...
@@ -226,6 +229,16 @@ public class PreparationMoneyController extends BaseController {
)
{
List
<
PeasantHousehold
>
list
=
preparationMoneyMapper
.
getPeasantHouseholdData
(
sequenceNbr
,
ownersName
);
if
(
list
!=
null
&&
list
.
size
()
>
0
)
{
list
.
forEach
(
e
->
{
if
(
e
.
getPeasantHouseholdNo
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNo
()));
}
});
}
Page
<
PeasantHousehold
>
pagenew
=
new
Page
<>();
pagenew
.
setRecords
(
list
);
pagenew
.
setTotal
(
list
.
size
());
...
...
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 @
1bd766b2
...
...
@@ -99,7 +99,8 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
PowerStationEngineeringInfoMapper
powerStationEngineeringInfoMapper
;
@Autowired
PowerStationEngineeringInfoServiceImpl
powerStationEngineeringInfoService
;
@Autowired
HouseholdContractMapper
householdContractMapper
;
@Autowired
HygfOnGridMapper
hygfOnGridMapper
;
@Autowired
...
...
@@ -267,6 +268,9 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
for
(
PeasantHousehold
documentStation
:
lih
)
{
ids
.
add
(
documentStation
.
getSequenceNbr
());
}
QueryWrapper
<
DesignInformation
>
designInformationQueryWrapper
=
new
QueryWrapper
<>();
designInformationQueryWrapper
.
in
(
"peasant_household_id"
,
ids
);
List
<
DesignInformation
>
li
=
designInformationMapper
.
selectList
(
designInformationQueryWrapper
);
...
...
@@ -294,6 +298,13 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
}
}
List
<
PeasantHousehold
>
list
=
workOrderPowerStationMapper
.
selectPeasantHousehold
(
sequenceNbr
,
null
);
if
(
list
!=
null
&&
list
.
size
()
>
0
)
{
list
.
forEach
(
e
->
{
if
(
e
.
getPeasantHouseholdNo
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNo
()));
}
});
}
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
designInformation
.
setAssembly
(
assembly
);
designInformation
.
setInverter
(
inverter
);
...
...
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