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
a6564a74
Commit
a6564a74
authored
Sep 06, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加字段
parent
8d7bf2c7
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
88 additions
and
17 deletions
+88
-17
AcceptanceCheckDto.java
...oin/amos/boot/module/hygf/api/dto/AcceptanceCheckDto.java
+1
-0
BasicGridRecordDto.java
...oin/amos/boot/module/hygf/api/dto/BasicGridRecordDto.java
+2
-0
PowerStationDto.java
...eejoin/amos/boot/module/hygf/api/dto/PowerStationDto.java
+2
-0
WorkOrderPage.java
.../yeejoin/amos/boot/module/hygf/api/dto/WorkOrderPage.java
+2
-0
HouseholdContract.java
...n/amos/boot/module/hygf/api/entity/HouseholdContract.java
+3
-0
PeasantHousehold.java
...in/amos/boot/module/hygf/api/entity/PeasantHousehold.java
+7
-1
PowerStationEngineeringInfo.java
...t/module/hygf/api/entity/PowerStationEngineeringInfo.java
+6
-0
PeasantHouseholdMapper.java
...s/boot/module/hygf/api/mapper/PeasantHouseholdMapper.java
+1
-1
PowerStationEngineeringInfoMapper.java
...le/hygf/api/mapper/PowerStationEngineeringInfoMapper.java
+1
-0
PeasantHouseholdMapper.xml
...rc/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
+3
-3
PowerStationEngineeringInfoMapper.xml
...ources/mapper/mysql/PowerStationEngineeringInfoMapper.xml
+12
-1
PreparationMoneyController.java
...odule/hygf/biz/controller/PreparationMoneyController.java
+4
-4
WorkOrderController.java
.../boot/module/hygf/biz/controller/WorkOrderController.java
+4
-0
AcceptanceCheckServiceImpl.java
...ule/hygf/biz/service/impl/AcceptanceCheckServiceImpl.java
+4
-0
BasicGridAcceptanceServiceImpl.java
...hygf/biz/service/impl/BasicGridAcceptanceServiceImpl.java
+3
-0
FinancingInfoServiceImpl.java
...odule/hygf/biz/service/impl/FinancingInfoServiceImpl.java
+4
-0
HouseholdContractServiceImpl.java
...e/hygf/biz/service/impl/HouseholdContractServiceImpl.java
+4
-0
HygfIcbcServiceImpl.java
...oot/module/hygf/biz/service/impl/HygfIcbcServiceImpl.java
+6
-0
PeasantHouseholdServiceImpl.java
...le/hygf/biz/service/impl/PeasantHouseholdServiceImpl.java
+11
-7
PowerStationServiceImpl.java
...module/hygf/biz/service/impl/PowerStationServiceImpl.java
+3
-0
UnitInfoServiceImpl.java
...oot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
+3
-0
WorkOrderServiceImpl.java
...ot/module/hygf/biz/service/impl/WorkOrderServiceImpl.java
+2
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/AcceptanceCheckDto.java
View file @
a6564a74
...
...
@@ -79,4 +79,5 @@ public class AcceptanceCheckDto extends BaseDto {
// 电站安装规模
private
String
scale
;
private
String
realScale
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/BasicGridRecordDto.java
View file @
a6564a74
...
...
@@ -76,4 +76,6 @@ public class BasicGridRecordDto extends BaseDto {
// 电站安装规模(kW)
private
String
scale
;
private
String
realScale
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/PowerStationDto.java
View file @
a6564a74
...
...
@@ -97,4 +97,6 @@ public class PowerStationDto extends BaseDto {
@ApiModelProperty
(
value
=
"电站安装规模"
)
private
String
scale
;
@ApiModelProperty
(
value
=
"电站实际规模"
)
private
String
realScale
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/WorkOrderPage.java
View file @
a6564a74
...
...
@@ -86,4 +86,6 @@ public class WorkOrderPage {
@ApiModelProperty
(
value
=
"电站安装规模"
)
private
String
scale
;
@ApiModelProperty
(
value
=
"电站实际规模"
)
private
String
realScale
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/HouseholdContract.java
View file @
a6564a74
...
...
@@ -260,4 +260,7 @@ public class HouseholdContract extends BaseEntity {
@TableField
(
exist
=
false
)
private
String
scale
;
@TableField
(
exist
=
false
)
private
String
realScale
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/PeasantHousehold.java
View file @
a6564a74
...
...
@@ -217,8 +217,14 @@ public class PeasantHousehold extends BaseEntity {
private
Integer
isAllRevoke
;
/**
*
商务信息安装
规模
*
电站
规模
*/
@TableField
(
exist
=
false
)
private
String
scale
;
/**
* 电站规模
*/
@TableField
(
exist
=
false
)
private
String
realScale
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/PowerStationEngineeringInfo.java
View file @
a6564a74
...
...
@@ -45,6 +45,12 @@ public class PowerStationEngineeringInfo extends BaseEntity {
private
Integer
componentQuantity
;
/**
* 组件数量
*/
@TableField
(
"real_scale"
)
private
Double
realScale
;
/**
* 逆变器数量
*/
@TableField
(
"inverter_quantity"
)
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/PeasantHouseholdMapper.java
View file @
a6564a74
...
...
@@ -51,5 +51,5 @@ public interface PeasantHouseholdMapper extends BaseMapper<PeasantHousehold> {
void
deleteHhcByNo
(
String
peasantHouseholdNo
);
String
getHygfCommercialScale
(
Long
surveyInformationId
);
//
String getHygfCommercialScale(Long surveyInformationId);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/PowerStationEngineeringInfoMapper.java
View file @
a6564a74
...
...
@@ -11,4 +11,5 @@ import com.yeejoin.amos.boot.module.hygf.api.entity.PowerStationEngineeringInfo;
*/
public
interface
PowerStationEngineeringInfoMapper
extends
BaseMapper
<
PowerStationEngineeringInfo
>
{
String
getRealScaleByPeasantHouseholdNo
(
String
peasantHouseholdNumber
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
View file @
a6564a74
...
...
@@ -134,7 +134,7 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
DELETE FROM hygf_household_contract WHERE peasant_household_number=#{peasantHouseholdNo}
</select>
<select
id=
"getHygfCommercialScale"
resultType=
"String"
>
select scale from hygf_commercial where survey_information_id=${surveyInformationId}
</select
>
<!-- <select id="getHygfCommercialScale" resultType="String">--
>
<!-- select scale from hygf_commercial where survey_information_id=${surveyInformationId}-->
<!-- </select>--
>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PowerStationEngineeringInfoMapper.xml
View file @
a6564a74
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.hygf.api.mapper.PowerStationEngineeringInfoMapper"
>
<select
id=
"getRealScaleByPeasantHouseholdNo"
resultType=
"String"
>
select
hpsei.real_scale realScale
from
hygf_peasant_household hph,
hygf_work_order_power_station hwops,
hygf_power_station_engineering_info hpsei
where
hph.peasant_household_no = #{peasantHouseholdNo} and
hph.sequence_nbr = hwops.peasant_household_id and
hwops.sequence_nbr = hpsei.work_order_power_station_id
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/PreparationMoneyController.java
View file @
a6564a74
...
...
@@ -11,10 +11,7 @@ import com.yeejoin.amos.boot.module.hygf.api.entity.DesignInformation;
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.mapper.*
;
import
com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseNewUtil
;
import
com.yeejoin.amos.boot.module.hygf.biz.service.impl.DesignInformationServiceImpl
;
import
com.yeejoin.amos.boot.module.hygf.biz.service.impl.HygfReplenishmentServiceImpl
;
...
...
@@ -56,6 +53,8 @@ public class PreparationMoneyController extends BaseController {
PreparationMoneyMapper
preparationMoneyMapper
;
@Autowired
HouseholdContractMapper
householdContractMapper
;
@Autowired
PowerStationEngineeringInfoMapper
powerStationEngineeringInfoMapper
;
@Autowired
DesignInformationServiceImpl
designInformationService
;
@Autowired
...
...
@@ -233,6 +232,7 @@ public class PreparationMoneyController extends BaseController {
list
.
forEach
(
e
->
{
if
(
e
.
getPeasantHouseholdNo
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNo
()));
e
.
setRealScale
(
powerStationEngineeringInfoMapper
.
getRealScaleByPeasantHouseholdNo
(
e
.
getPeasantHouseholdNo
()));
}
});
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/WorkOrderController.java
View file @
a6564a74
...
...
@@ -46,6 +46,8 @@ public class WorkOrderController extends BaseController {
WorkOrderMapper
workOrderMapper
;
@Autowired
HouseholdContractMapper
householdContractMapper
;
@Autowired
PowerStationEngineeringInfoMapper
powerStationEngineeringInfoMapper
;
@Autowired
PersonnelBusinessMapper
personnelBusinessMapper
;
...
...
@@ -231,6 +233,7 @@ public class WorkOrderController extends BaseController {
}
if
(
e
.
getPeasantHouseholdNo
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNo
()));
e
.
setRealScale
(
powerStationEngineeringInfoMapper
.
getRealScaleByPeasantHouseholdNo
(
e
.
getPeasantHouseholdNo
()));
}
});
...
...
@@ -256,6 +259,7 @@ public class WorkOrderController extends BaseController {
list
.
forEach
(
e
->
{
if
(
e
.
getPeasantHouseholdNo
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNo
()));
e
.
setRealScale
(
powerStationEngineeringInfoMapper
.
getRealScaleByPeasantHouseholdNo
(
e
.
getPeasantHouseholdNo
()));
}
});
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/AcceptanceCheckServiceImpl.java
View file @
a6564a74
...
...
@@ -18,6 +18,7 @@ import com.yeejoin.amos.boot.module.hygf.api.entity.*;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.AcceptanceCheckMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.HouseholdContractMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.PeasantHouseholdMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.PowerStationEngineeringInfoMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.service.IAcceptanceCheckService
;
import
com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseNewUtil
;
import
com.yeejoin.amos.component.robot.BadRequest
;
...
...
@@ -56,6 +57,8 @@ public class AcceptanceCheckServiceImpl extends BaseService<AcceptanceCheckDto,A
@Autowired
AcceptanceCheckMapper
acceptanceCheckMapper
;
@Autowired
PowerStationEngineeringInfoMapper
powerStationEngineeringInfoMapper
;
@Autowired
PeasantHouseholdMapper
peasantHouseholdMapper
;
@Autowired
HouseholdContractMapper
householdContractMapper
;
...
...
@@ -88,6 +91,7 @@ public class AcceptanceCheckServiceImpl extends BaseService<AcceptanceCheckDto,A
list
.
forEach
(
e
->
{
if
(
e
.
getPeasantHouseholdNo
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNo
()));
e
.
setRealScale
(
powerStationEngineeringInfoMapper
.
getRealScaleByPeasantHouseholdNo
(
e
.
getPeasantHouseholdNo
()));
}
});
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/BasicGridAcceptanceServiceImpl.java
View file @
a6564a74
...
...
@@ -57,6 +57,8 @@ public class BasicGridAcceptanceServiceImpl
@Autowired
PersonnelBusinessMapper
personnelBusinessMapper
;
@Autowired
PowerStationEngineeringInfoMapper
powerStationEngineeringInfoMapper
;
@Autowired
WorkflowImpl
workflow
;
@Autowired
AcceptanceCheckItemMapper
acceptanceCheckItemMapper
;
...
...
@@ -120,6 +122,7 @@ public class BasicGridAcceptanceServiceImpl
page
.
getList
().
forEach
(
e
->
{
if
(
e
.
getPeasantHouseholdNo
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNo
()));
e
.
setRealScale
(
powerStationEngineeringInfoMapper
.
getRealScaleByPeasantHouseholdNo
(
e
.
getPeasantHouseholdNo
()));
}
});
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/FinancingInfoServiceImpl.java
View file @
a6564a74
...
...
@@ -30,6 +30,7 @@ import com.yeejoin.amos.boot.module.hygf.api.entity.FinancingRectificationOrder;
import
com.yeejoin.amos.boot.module.hygf.api.entity.StdUserEmpower
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.FinancingInfoMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.HouseholdContractMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.PowerStationEngineeringInfoMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.service.IFinancingInfoService
;
import
com.yeejoin.amos.boot.module.hygf.api.util.RedisLockUtil
;
import
com.yeejoin.amos.feign.workflow.model.ActWorkflowBatchDTO
;
...
...
@@ -74,6 +75,8 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
@Autowired
private
HouseholdContractMapper
householdContractMapper
;
@Autowired
private
PowerStationEngineeringInfoMapper
powerStationEngineeringInfoMapper
;
@Autowired
private
CommonServiceImpl
commonService
;
@Resource
(
type
=
RedisLockUtil
.
class
)
...
...
@@ -104,6 +107,7 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
List
<
Map
<
String
,
Object
>>
list
=
financingInfoMapper
.
getStationFinancingInfoList
(
params
,
amosOrgCodes
);
list
.
forEach
(
e
->
{
e
.
put
(
"scale"
,
householdContractMapper
.
getHygfCommercialScale
((
String
)
e
.
get
(
"peasantHouseholdNo"
)));
e
.
put
(
"realScale"
,
powerStationEngineeringInfoMapper
.
getRealScaleByPeasantHouseholdNo
((
String
)
e
.
get
(
"peasantHouseholdNo"
)));
if
(
null
!=
e
.
get
(
"instanceId"
)
&&
e
.
get
(
"instanceId"
).
toString
().
contains
(
","
))
{
String
[]
instanceIds
=
e
.
get
(
"instanceId"
).
toString
().
split
(
","
);
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/HouseholdContractServiceImpl.java
View file @
a6564a74
...
...
@@ -49,6 +49,9 @@ public class HouseholdContractServiceImpl extends BaseService<HouseholdContractD
ContractTemplateMapper
contractTemplateMapper
;
@Autowired
PowerStationEngineeringInfoMapper
powerStationEngineeringInfoMapper
;
@Autowired
ToDoTasksServiceImpl
toDoTasksServiceImpl
;
@Autowired
...
...
@@ -97,6 +100,7 @@ public class HouseholdContractServiceImpl extends BaseService<HouseholdContractD
warningQuestionInfoIPage
.
getRecords
().
forEach
(
e
->
{
if
(
e
.
getPeasantHouseholdNumber
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNumber
()));
e
.
setRealScale
(
powerStationEngineeringInfoMapper
.
getRealScaleByPeasantHouseholdNo
(
e
.
getPeasantHouseholdNumber
()));
}
});
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/HygfIcbcServiceImpl.java
View file @
a6564a74
...
...
@@ -22,7 +22,9 @@ import javax.annotation.Resource;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.PowerStationEngineeringInfo
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.HouseholdContractMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.PowerStationEngineeringInfoMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
...
...
@@ -134,6 +136,9 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
@Resource
(
type
=
HouseholdContractMapper
.
class
)
private
HouseholdContractMapper
householdContractMapper
;
@Resource
(
type
=
PowerStationEngineeringInfoMapper
.
class
)
private
PowerStationEngineeringInfoMapper
powerStationEngineeringInfoMapper
;
@Resource
(
type
=
HygfIcbcRequestMapper
.
class
)
private
HygfIcbcRequestMapper
hygfIcbcRequestMapper
;
...
...
@@ -424,6 +429,7 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
peasantHouseholdList
.
forEach
(
e
->
{
if
(
e
.
getSurveyInformationId
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNo
()));
e
.
setRealScale
(
powerStationEngineeringInfoMapper
.
getRealScaleByPeasantHouseholdNo
(
e
.
getPeasantHouseholdNo
()));
}
});
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/PeasantHouseholdServiceImpl.java
View file @
a6564a74
...
...
@@ -22,9 +22,7 @@ import com.yeejoin.amos.boot.module.hygf.api.Enum.TaskTypeStationEnum;
import
com.yeejoin.amos.boot.module.hygf.api.config.UserEmpower
;
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.mapper.PeasantHouseholdMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.PersonnelBusinessMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.RegionalCompaniesMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.*
;
import
com.yeejoin.amos.boot.module.hygf.api.service.IPeasantHouseholdService
;
import
com.yeejoin.amos.boot.module.hygf.api.service.IWxService
;
import
com.yeejoin.amos.boot.module.hygf.api.util.NumberUtil
;
...
...
@@ -77,6 +75,10 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
@Autowired
PeasantHouseholdMapper
peasantHouseholdMapper
;
@Autowired
HouseholdContractMapper
householdContractMapper
;
@Autowired
PowerStationEngineeringInfoMapper
powerStationEngineeringInfoMapper
;
@Autowired
SurveyInformationServiceImpl
surveyInformationServiceImpl
;
@Autowired
HouseholdContractServiceImpl
householdContractServiceImpl
;
...
...
@@ -274,8 +276,9 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
if
(
newRecords
!=
null
&&
newRecords
.
size
()
>
0
)
{
newRecords
.
forEach
(
e
->
{
if
(
e
.
getSurveyInformationId
()
!=
null
)
{
e
.
setScale
(
peasantHouseholdMapper
.
getHygfCommercialScale
(
e
.
getSurveyInformationId
()));
if
(
e
.
getPeasantHouseholdNo
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNo
()));
e
.
setRealScale
(
powerStationEngineeringInfoMapper
.
getRealScaleByPeasantHouseholdNo
(
e
.
getPeasantHouseholdNo
()));
}
});
...
...
@@ -929,8 +932,9 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
if
(
peasantHouseholdIPage
.
getRecords
()
!=
null
&&
peasantHouseholdIPage
.
getRecords
().
size
()
>
0
)
{
peasantHouseholdIPage
.
getRecords
().
forEach
(
e
->
{
if
(
e
.
getSurveyInformationId
()
!=
null
)
{
e
.
setScale
(
peasantHouseholdMapper
.
getHygfCommercialScale
(
e
.
getSurveyInformationId
()));
if
(
e
.
getPeasantHouseholdNo
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNo
()));
e
.
setRealScale
(
powerStationEngineeringInfoMapper
.
getRealScaleByPeasantHouseholdNo
(
e
.
getPeasantHouseholdNo
()));
}
});
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/PowerStationServiceImpl.java
View file @
a6564a74
...
...
@@ -61,6 +61,8 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
DesignInformationMapper
designInformationMapper
;
@Autowired
DesignInformationServiceImpl
designInformationService
;
@Autowired
PowerStationEngineeringInfoMapper
powerStationEngineeringInfoMapper
;
@Autowired
PeasantHouseholdServiceImpl
peasantHouseholdService
;
...
...
@@ -126,6 +128,7 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
powerStationDtoPage
.
getRecords
().
forEach
(
e
->
{
if
(
e
.
getPowerStationCode
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPowerStationCode
()));
e
.
setRealScale
(
powerStationEngineeringInfoMapper
.
getRealScaleByPeasantHouseholdNo
(
e
.
getPowerStationCode
()));
}
});
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
View file @
a6564a74
...
...
@@ -78,6 +78,8 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
@Autowired
PeasantHouseholdMapper
peasantHouseholdMapper
;
@Autowired
PowerStationEngineeringInfoMapper
powerStationEngineeringInfoMapper
;
@Autowired
HouseholdContractMapper
householdContractMapper
;
@Autowired
CommerceInfoMapper
commerceInfoMapper
;
...
...
@@ -1086,6 +1088,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
list
.
forEach
(
e
->
{
if
(
e
.
getPeasantHouseholdNo
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNo
()));
e
.
setRealScale
(
powerStationEngineeringInfoMapper
.
getRealScaleByPeasantHouseholdNo
(
e
.
getPeasantHouseholdNo
()));
}
});
}
...
...
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 @
a6564a74
...
...
@@ -314,6 +314,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
list
.
forEach
(
e
->
{
if
(
e
.
getPeasantHouseholdNo
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNo
()));
e
.
setRealScale
(
powerStationEngineeringInfoMapper
.
getRealScaleByPeasantHouseholdNo
(
e
.
getPeasantHouseholdNo
()));
}
});
}
...
...
@@ -532,6 +533,7 @@ public class WorkOrderServiceImpl extends BaseService<WorkOrderDto, WorkOrder, W
list
.
forEach
(
e
->
{
if
(
e
.
getPeasantHouseholdNo
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNo
()));
e
.
setRealScale
(
powerStationEngineeringInfoMapper
.
getRealScaleByPeasantHouseholdNo
(
e
.
getPeasantHouseholdNo
()));
}
});
...
...
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