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
f8e871d5
Commit
f8e871d5
authored
May 16, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改户用光伏导入导出
parent
e381f685
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
43 additions
and
24 deletions
+43
-24
HouseholdPvExport.java
...oin/amos/boot/module/jxiop/api/dto/HouseholdPvExport.java
+1
-0
HouseholdPvImport.java
...oin/amos/boot/module/jxiop/api/dto/HouseholdPvImport.java
+10
-7
HouseholdPvMapper.xml
...jxiop-api/src/main/resources/mapper/HouseholdPvMapper.xml
+5
-0
HouseholdPvController.java
...ot/module/jxiop/biz/controller/HouseholdPvController.java
+7
-6
HouseholdPvDistrictServiceImpl.java
...xiop/biz/service/impl/HouseholdPvDistrictServiceImpl.java
+12
-10
HouseholdPvServiceImpl.java
...module/jxiop/biz/service/impl/HouseholdPvServiceImpl.java
+8
-1
householdExportAll.xls
...p-biz/src/main/resources/templates/householdExportAll.xls
+0
-0
householdTemplates.xls
...p-biz/src/main/resources/templates/householdTemplates.xls
+0
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/HouseholdPvExport.java
View file @
f8e871d5
...
...
@@ -25,6 +25,7 @@ public class HouseholdPvExport {
private
String
address
;
private
String
postcode
;
private
String
serviceAddress
;
private
String
isPermanently
;
/**
* 合同信息
*/
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/HouseholdPvImport.java
View file @
f8e871d5
...
...
@@ -25,25 +25,28 @@ public class HouseholdPvImport {
@ExcelProperty
(
value
=
"身份证号"
,
index
=
5
)
private
String
idNumber
;
@ColumnWidth
(
20
)
@ExcelProperty
(
value
=
"证件过期时间"
,
index
=
6
)
@ExcelProperty
(
value
=
"是否长期有效"
,
index
=
6
)
private
String
isPermanently
;
@ColumnWidth
(
20
)
@ExcelProperty
(
value
=
"证件过期时间"
,
index
=
7
)
private
String
expiryTime
;
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"签发机关"
,
index
=
7
)
@ExcelProperty
(
value
=
"签发机关"
,
index
=
8
)
private
String
issuingAuthority
;
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"户籍地址"
,
index
=
8
)
@ExcelProperty
(
value
=
"户籍地址"
,
index
=
9
)
private
String
residenceAddress
;
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"手机号码"
,
index
=
9
)
@ExcelProperty
(
value
=
"手机号码"
,
index
=
10
)
private
String
phone
;
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"居住地"
,
index
=
1
0
)
@ExcelProperty
(
value
=
"居住地"
,
index
=
1
1
)
private
String
address
;
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"居住地邮编"
,
index
=
1
1
)
@ExcelProperty
(
value
=
"居住地邮编"
,
index
=
1
2
)
private
String
postcode
;
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"送达地址"
,
index
=
1
2
)
@ExcelProperty
(
value
=
"送达地址"
,
index
=
1
3
)
private
String
serviceAddress
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/HouseholdPvMapper.xml
View file @
f8e871d5
...
...
@@ -18,6 +18,11 @@
hp.postcode,
hp.service_address AS serviceAddress,
hp.district_id AS districtId,
CASE
hp.is_permanently
WHEN 1 THEN
'是' ELSE '否'
END AS isPermanently,
hpc.number AS contactNumber,
hpc.period,
hpc.description ,
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/HouseholdPvController.java
View file @
f8e871d5
...
...
@@ -312,12 +312,13 @@ public class HouseholdPvController extends BaseController {
row
.
createCell
(
4
).
setCellValue
(
ObjectUtils
.
isEmpty
(
item
.
getName
())
?
""
:
item
.
getName
());
row
.
createCell
(
5
).
setCellValue
(
ObjectUtils
.
isEmpty
(
item
.
getSex
())
?
""
:
item
.
getSex
());
row
.
createCell
(
6
).
setCellValue
(
ObjectUtils
.
isEmpty
(
item
.
getIdNumber
())
?
""
:
item
.
getIdNumber
());
row
.
createCell
(
7
).
setCellValue
(
ObjectUtils
.
isEmpty
(
item
.
getExpiryTime
())
?
""
:
item
.
getExpiryTime
());
row
.
createCell
(
8
).
setCellValue
(
ObjectUtils
.
isEmpty
(
item
.
getIssuingAuthority
())
?
""
:
item
.
getIssuingAuthority
());
row
.
createCell
(
9
).
setCellValue
(
ObjectUtils
.
isEmpty
(
item
.
getResidenceAddress
())
?
""
:
item
.
getResidenceAddress
());
row
.
createCell
(
10
).
setCellValue
(
ObjectUtils
.
isEmpty
(
item
.
getPhone
())
?
""
:
item
.
getPhone
());
row
.
createCell
(
11
).
setCellValue
(
ObjectUtils
.
isEmpty
(
item
.
getAddress
())
?
""
:
item
.
getAddress
());
row
.
createCell
(
12
).
setCellValue
(
ObjectUtils
.
isEmpty
(
item
.
getPostcode
())
?
""
:
item
.
getPostcode
());
row
.
createCell
(
7
).
setCellValue
(
ObjectUtils
.
isEmpty
(
item
.
getIsPermanently
())
?
""
:
item
.
getIsPermanently
());
row
.
createCell
(
8
).
setCellValue
(
ObjectUtils
.
isEmpty
(
item
.
getExpiryTime
())
?
""
:
item
.
getExpiryTime
());
row
.
createCell
(
9
).
setCellValue
(
ObjectUtils
.
isEmpty
(
item
.
getIssuingAuthority
())
?
""
:
item
.
getIssuingAuthority
());
row
.
createCell
(
10
).
setCellValue
(
ObjectUtils
.
isEmpty
(
item
.
getResidenceAddress
())
?
""
:
item
.
getResidenceAddress
());
row
.
createCell
(
11
).
setCellValue
(
ObjectUtils
.
isEmpty
(
item
.
getPhone
())
?
""
:
item
.
getPhone
());
row
.
createCell
(
12
).
setCellValue
(
ObjectUtils
.
isEmpty
(
item
.
getAddress
())
?
""
:
item
.
getAddress
());
row
.
createCell
(
13
).
setCellValue
(
ObjectUtils
.
isEmpty
(
item
.
getPostcode
())
?
""
:
item
.
getPostcode
());
}
// 合同信息
num
=
1
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/HouseholdPvDistrictServiceImpl.java
View file @
f8e871d5
...
...
@@ -161,17 +161,19 @@ public class HouseholdPvDistrictServiceImpl extends BaseService<HouseholdPvDistr
CompanyTreeDto
dto
=
new
CompanyTreeDto
();
BeanUtils
.
copyProperties
(
item
,
dto
,
"children"
);
Map
<
String
,
Object
>
detail
=
(
Map
<
String
,
Object
>)
item
.
getObject
();
if
(!
ObjectUtils
.
isEmpty
(
detail
))
{
dto
.
setLevel
(
detail
.
getOrDefault
(
STATION_LEVEL
,
""
).
toString
());
if
(!
ObjectUtils
.
isEmpty
(
detail
.
get
(
STATION_LEVEL
))
&&
"station"
.
equals
(
detail
.
get
(
STATION_LEVEL
))){
dto
.
setDisabled
(
false
);
}
else
{
dto
.
setDisabled
(
true
);
if
(!
ObjectUtils
.
isEmpty
(
detail
)
&&
!
ObjectUtils
.
isEmpty
(
detail
.
get
(
STATION_LEVEL
))
&&
!
detail
.
get
(
STATION_LEVEL
).
equals
(
"debug_division"
)){
if
(!
ObjectUtils
.
isEmpty
(
detail
))
{
dto
.
setLevel
(
detail
.
getOrDefault
(
STATION_LEVEL
,
""
).
toString
());
if
(!
ObjectUtils
.
isEmpty
(
detail
.
get
(
STATION_LEVEL
))
&&
"station"
.
equals
(
detail
.
get
(
STATION_LEVEL
))){
dto
.
setDisabled
(
false
);
}
else
{
dto
.
setDisabled
(
true
);
}
}
result
.
add
(
dto
);
if
(!
ObjectUtils
.
isEmpty
(
item
.
getChildren
()))
{
change
(
item
.
getChildren
(),
result
);
}
}
result
.
add
(
dto
);
if
(!
ObjectUtils
.
isEmpty
(
item
.
getChildren
()))
{
change
(
item
.
getChildren
(),
result
);
}
});
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/HouseholdPvServiceImpl.java
View file @
f8e871d5
...
...
@@ -158,7 +158,10 @@ public class HouseholdPvServiceImpl extends BaseService<HouseholdPvDto, Househol
if
(
ObjectUtils
.
isEmpty
(
dto
.
getIdNumber
()))
{
return
"第 "
+
line
+
" 行身份证号不能为空!"
;
}
if
(
ObjectUtils
.
isEmpty
(
dto
.
getExpiryTime
()))
{
if
(
ObjectUtils
.
isEmpty
(
dto
.
getIsPermanently
()))
{
return
"第 "
+
line
+
" 是否长期有效不能为空!"
;
}
if
(
"否"
.
equals
(
dto
.
getIsPermanently
())
&&
ObjectUtils
.
isEmpty
(
dto
.
getExpiryTime
()))
{
return
"第 "
+
line
+
" 行证件过期时间不能为空!"
;
}
if
(
ObjectUtils
.
isEmpty
(
dto
.
getIssuingAuthority
()))
{
...
...
@@ -275,6 +278,10 @@ public class HouseholdPvServiceImpl extends BaseService<HouseholdPvDto, Househol
householdPv
.
setBizOrgCode
(
getOrgCode
(
householdPv
.
getDistrictId
()));
}
}
// 是否长期有效
if
(!
ObjectUtils
.
isEmpty
(
item
.
getIsPermanently
()))
{
householdPv
.
setIsPermanently
(
"是"
.
equals
(
item
.
getIsPermanently
())
?
"1"
:
"0"
);
}
householdPvs
.
add
(
householdPv
);
});
this
.
saveBatch
(
householdPvs
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/resources/templates/householdExportAll.xls
View file @
f8e871d5
No preview for this file type
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/resources/templates/householdTemplates.xls
View file @
f8e871d5
No preview for this file type
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