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
b666c0df
Commit
b666c0df
authored
Sep 02, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
a24b3ad2
56677fe9
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
113 additions
and
3 deletions
+113
-3
BasicGridAcceptanceDto.java
...amos/boot/module/hygf/api/dto/BasicGridAcceptanceDto.java
+3
-0
HygfIcbcRecordDTO.java
...join/amos/boot/module/hygf/api/dto/HygfIcbcRecordDTO.java
+7
-0
PowerStationDto.java
...eejoin/amos/boot/module/hygf/api/dto/PowerStationDto.java
+3
-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
+6
-0
HouseholdContractMapper.java
.../boot/module/hygf/api/mapper/HouseholdContractMapper.java
+2
-0
PeasantHouseholdMapper.java
...s/boot/module/hygf/api/mapper/PeasantHouseholdMapper.java
+2
-0
HouseholdContractMapper.xml
...c/main/resources/mapper/mysql/HouseholdContractMapper.xml
+6
-0
PeasantHouseholdMapper.xml
...rc/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
+4
-0
BasicGridAcceptanceServiceImpl.java
...hygf/biz/service/impl/BasicGridAcceptanceServiceImpl.java
+11
-0
HouseholdContractServiceImpl.java
...e/hygf/biz/service/impl/HouseholdContractServiceImpl.java
+10
-0
HygfIcbcServiceImpl.java
...oot/module/hygf/biz/service/impl/HygfIcbcServiceImpl.java
+17
-0
PeasantHouseholdServiceImpl.java
...le/hygf/biz/service/impl/PeasantHouseholdServiceImpl.java
+24
-1
PowerStationServiceImpl.java
...module/hygf/biz/service/impl/PowerStationServiceImpl.java
+15
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/BasicGridAcceptanceDto.java
View file @
b666c0df
...
...
@@ -73,4 +73,7 @@ public class BasicGridAcceptanceDto extends BaseDto {
//并网登记id
private
Long
fonGridId
;
// 电站安装规模(kW)
private
String
scale
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/HygfIcbcRecordDTO.java
View file @
b666c0df
...
...
@@ -158,6 +158,12 @@ public class HygfIcbcRecordDTO {
* */
@ApiModelProperty
(
value
=
"区域公司名称"
)
private
String
regionalCompaniesName
;
/*
* 商务信息-电站安装规模
* */
@ApiModelProperty
(
value
=
"电站安装规模(kW)"
)
private
String
scale
;
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/PowerStationDto.java
View file @
b666c0df
...
...
@@ -94,4 +94,7 @@ public class PowerStationDto extends BaseDto {
@ApiModelProperty
(
value
=
"合同状态"
)
private
String
status
;
@ApiModelProperty
(
value
=
"电站安装规模"
)
private
String
scale
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/HouseholdContract.java
View file @
b666c0df
...
...
@@ -257,4 +257,7 @@ public class HouseholdContract extends BaseEntity {
//查询一个农户拥有的合同是否全是已废弃
@TableField
(
exist
=
false
)
private
Boolean
isAllDisuse
;
@TableField
(
exist
=
false
)
private
String
scale
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/PeasantHousehold.java
View file @
b666c0df
...
...
@@ -215,4 +215,10 @@ public class PeasantHousehold extends BaseEntity {
*/
@TableField
(
exist
=
false
)
private
Integer
isAllRevoke
;
/**
* 商务信息安装规模
*/
@TableField
(
exist
=
false
)
private
String
scale
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/HouseholdContractMapper.java
View file @
b666c0df
...
...
@@ -19,4 +19,6 @@ public interface HouseholdContractMapper extends BaseMapper<HouseholdContract> {
@UserEmpower
(
field
={
"hygf_household_contract.regional_companies_code"
}
,
dealerField
={
"dealer_code"
,
"hygf_household_contract.regional_companies_code"
,
"developer_user_id"
}
,
fieldConditions
={
"eq"
,
"in"
,
"eq"
}
,
relationship
=
"and"
)
IPage
<
HouseholdContract
>
selectPage
(
@Param
(
"dto"
)
HouseholdContractPageDto
dto
);
String
getHygfCommercialScale
(
String
peasantHouseholdNumber
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/PeasantHouseholdMapper.java
View file @
b666c0df
...
...
@@ -50,4 +50,6 @@ public interface PeasantHouseholdMapper extends BaseMapper<PeasantHousehold> {
void
deleteHphByNo
(
String
peasantHouseholdNo
);
void
deleteHhcByNo
(
String
peasantHouseholdNo
);
String
getHygfCommercialScale
(
Long
surveyInformationId
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/HouseholdContractMapper.xml
View file @
b666c0df
...
...
@@ -53,4 +53,10 @@
ORDER BY hygf_household_contract.rec_date DESC, hygf_household_contract.${orderBy} ${dto.isAsc}
</if>
</select>
<select
id=
"getHygfCommercialScale"
resultType=
"String"
>
select scale from hygf_commercial where survey_information_id = (select survey_information_id from hygf_peasant_household where peasant_household_no = #{peasantHouseholdNumber} )
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
View file @
b666c0df
...
...
@@ -133,4 +133,8 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
<select
id=
"deleteHhcByNo"
>
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>
</mapper>
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 @
b666c0df
...
...
@@ -54,6 +54,8 @@ public class BasicGridAcceptanceServiceImpl
@Autowired
PeasantHouseholdMapper
peasantHouseholdMapper
;
@Autowired
HouseholdContractMapper
householdContractMapper
;
@Autowired
private
CommonServiceImpl
commonService
;
private
final
String
OK
=
"0"
;
...
...
@@ -82,6 +84,15 @@ public class BasicGridAcceptanceServiceImpl
pageNew
.
setCurrent
(
current
);
pageNew
.
setTotal
(
page
.
getTotal
());
pageNew
.
setSize
(
size
);
if
(
page
.
getList
()
!=
null
&&
page
.
getList
().
size
()
>
0
)
{
page
.
getList
().
forEach
(
e
->
{
if
(
e
.
getPeasantHouseholdNo
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNo
()));
}
});
}
pageNew
.
setRecords
(
page
.
getList
());
return
pageNew
;
}
...
...
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 @
b666c0df
...
...
@@ -93,6 +93,16 @@ public class HouseholdContractServiceImpl extends BaseService<HouseholdContractD
// }
IPage
<
HouseholdContract
>
warningQuestionInfoIPage
=
householdContractMapper
.
selectPage
(
dto
);
if
(
warningQuestionInfoIPage
.
getRecords
()
!=
null
&&
warningQuestionInfoIPage
.
getRecords
().
size
()
>
0
)
{
warningQuestionInfoIPage
.
getRecords
().
forEach
(
e
->
{
if
(
e
.
getPeasantHouseholdNumber
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNumber
()));
}
});
}
return
warningQuestionInfoIPage
;
}
...
...
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 @
b666c0df
...
...
@@ -22,6 +22,8 @@ import javax.annotation.Resource;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.HouseholdContractMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
...
...
@@ -62,6 +64,9 @@ import lombok.extern.slf4j.Slf4j;
@Service
@Slf4j
public
class
HygfIcbcServiceImpl
extends
BaseService
<
HygfIcbcRecordDTO
,
HygfIcbcRecord
,
HygfIcbcRecordMapper
>
implements
IHygfIcbcService
{
private
static
final
String
trxChannel
=
"05"
;
// 05表示小程序
...
...
@@ -126,6 +131,9 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
@Resource
(
type
=
HygfIcbcRecordMapper
.
class
)
private
HygfIcbcRecordMapper
hygfIcbcRecordMapper
;
@Resource
(
type
=
HouseholdContractMapper
.
class
)
private
HouseholdContractMapper
householdContractMapper
;
@Resource
(
type
=
HygfIcbcRequestMapper
.
class
)
private
HygfIcbcRequestMapper
hygfIcbcRequestMapper
;
...
...
@@ -412,6 +420,15 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
Map
<
String
,
List
<
PeasantHousehold
>>
peasantHouseholdMap
=
peasantHouseholds
.
stream
()
.
collect
(
Collectors
.
groupingBy
(
PeasantHousehold:
:
getAmosUserId
));
// 根据农户 ID 分组
List
<
PeasantHousehold
>
peasantHouseholdList
=
peasantHouseholdMap
.
get
(
amosUserId
);
if
(
peasantHouseholdList
!=
null
&&
peasantHouseholdList
.
size
()
>
0
)
{
peasantHouseholdList
.
forEach
(
e
->
{
if
(
e
.
getSurveyInformationId
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPeasantHouseholdNo
()));
}
});
}
hygfIcbcRecordDTO
.
setPeasantHouseholds
(
Bean
.
toModels
(
peasantHouseholdList
,
HygfIcbcRecordDTO
.
IcbcPeasantHousehold
.
class
));
return
hygfIcbcRecordDTO
;
...
...
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 @
b666c0df
...
...
@@ -271,6 +271,16 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
pagenew
.
setCurrent
(
current
);
pagenew
.
setTotal
(
objectPageInfo
.
getTotal
());
pagenew
.
setSize
(
size
);
if
(
newRecords
!=
null
&&
newRecords
.
size
()
>
0
)
{
newRecords
.
forEach
(
e
->
{
if
(
e
.
getSurveyInformationId
()
!=
null
)
{
e
.
setScale
(
peasantHouseholdMapper
.
getHygfCommercialScale
(
e
.
getSurveyInformationId
()));
}
});
}
pagenew
.
setRecords
(
newRecords
);
return
pagenew
;
...
...
@@ -914,6 +924,18 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
queryWrapper
.
like
(
StrUtil
.
isNotEmpty
(
peasantHouseholdPageDto
.
getRegionalCompaniesName
()),
"regional_companies_name"
,
"%"
+
peasantHouseholdPageDto
.
getRegionalCompaniesName
()+
"%"
);
queryWrapper
.
like
(
StrUtil
.
isNotEmpty
(
peasantHouseholdPageDto
.
getDeveloperName
()),
"developer_name"
,
"%"
+
peasantHouseholdPageDto
.
getDeveloperName
()+
"%"
);
queryWrapper
.
orderByDesc
(
"rec_date"
);
return
this
.
baseMapper
.
selectPage
(
new
Page
<>(
peasantHouseholdPageDto
.
getCurrent
(),
peasantHouseholdPageDto
.
getSize
()),
queryWrapper
);
IPage
<
PeasantHousehold
>
peasantHouseholdIPage
=
this
.
baseMapper
.
selectPage
(
new
Page
<>(
peasantHouseholdPageDto
.
getCurrent
(),
peasantHouseholdPageDto
.
getSize
()),
queryWrapper
);
if
(
peasantHouseholdIPage
.
getRecords
()
!=
null
&&
peasantHouseholdIPage
.
getRecords
().
size
()
>
0
)
{
peasantHouseholdIPage
.
getRecords
().
forEach
(
e
->
{
if
(
e
.
getSurveyInformationId
()
!=
null
)
{
e
.
setScale
(
peasantHouseholdMapper
.
getHygfCommercialScale
(
e
.
getSurveyInformationId
()));
}
});
}
return
peasantHouseholdIPage
;
}
}
\ No newline at end of file
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 @
b666c0df
...
...
@@ -118,8 +118,21 @@ public class PowerStationServiceImpl extends BaseService<PowerStationDto, PowerS
// return
// this.queryForPowerStationPage(page,powerStationCode,ownersName,serviceAgent);
return
this
.
queryPage
((
int
)
page
.
getCurrent
(),
(
int
)
page
.
getSize
(),
powerStationCode
,
ownersName
,
serviceAgent
,
regionalCompaniesName
,
processStatus
);
Page
<
PowerStationDto
>
powerStationDtoPage
=
this
.
queryPage
((
int
)
page
.
getCurrent
(),
(
int
)
page
.
getSize
(),
powerStationCode
,
ownersName
,
serviceAgent
,
regionalCompaniesName
,
processStatus
);
if
(
powerStationDtoPage
.
getRecords
()
!=
null
&&
powerStationDtoPage
.
getRecords
().
size
()
>
0
)
{
powerStationDtoPage
.
getRecords
().
forEach
(
e
->
{
if
(
e
.
getPowerStationCode
()
!=
null
)
{
e
.
setScale
(
householdContractMapper
.
getHygfCommercialScale
(
e
.
getPowerStationCode
()));
}
});
}
return
powerStationDtoPage
;
}
// 查询电站审核记录
...
...
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