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
6f37197d
Commit
6f37197d
authored
Sep 02, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的电站添加电站规模
parent
7c420062
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
0 deletions
+23
-0
PeasantHousehold.java
...in/amos/boot/module/hygf/api/entity/PeasantHousehold.java
+6
-0
PeasantHouseholdMapper.java
...s/boot/module/hygf/api/mapper/PeasantHouseholdMapper.java
+2
-0
PeasantHouseholdMapper.xml
...rc/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
+4
-0
PeasantHouseholdServiceImpl.java
...le/hygf/biz/service/impl/PeasantHouseholdServiceImpl.java
+11
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/PeasantHousehold.java
View file @
6f37197d
...
@@ -215,4 +215,10 @@ public class PeasantHousehold extends BaseEntity {
...
@@ -215,4 +215,10 @@ public class PeasantHousehold extends BaseEntity {
*/
*/
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
Integer
isAllRevoke
;
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/PeasantHouseholdMapper.java
View file @
6f37197d
...
@@ -50,4 +50,6 @@ public interface PeasantHouseholdMapper extends BaseMapper<PeasantHousehold> {
...
@@ -50,4 +50,6 @@ public interface PeasantHouseholdMapper extends BaseMapper<PeasantHousehold> {
void
deleteHphByNo
(
String
peasantHouseholdNo
);
void
deleteHphByNo
(
String
peasantHouseholdNo
);
void
deleteHhcByNo
(
String
peasantHouseholdNo
);
void
deleteHhcByNo
(
String
peasantHouseholdNo
);
String
getHygfCommercialScale
(
Long
surveyInformationId
);
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PeasantHouseholdMapper.xml
View file @
6f37197d
...
@@ -133,4 +133,8 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
...
@@ -133,4 +133,8 @@ on hygf_document_station.preparation_money_id=hygf_preparation_money.sequence_nb
<select
id=
"deleteHhcByNo"
>
<select
id=
"deleteHhcByNo"
>
DELETE FROM hygf_household_contract WHERE peasant_household_number=#{peasantHouseholdNo}
DELETE FROM hygf_household_contract WHERE peasant_household_number=#{peasantHouseholdNo}
</select>
</select>
<select
id=
"getHygfCommercialScale"
resultType=
"String"
>
select scale from hygf_commercial where survey_information_id=${surveyInformationId}
</select>
</mapper>
</mapper>
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 @
6f37197d
...
@@ -916,6 +916,16 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
...
@@ -916,6 +916,16 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
queryWrapper
.
orderByDesc
(
"rec_date"
);
queryWrapper
.
orderByDesc
(
"rec_date"
);
IPage
<
PeasantHousehold
>
peasantHouseholdIPage
=
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
;
return
peasantHouseholdIPage
;
}
}
}
}
\ No newline at end of file
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