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
86051b9f
Commit
86051b9f
authored
Apr 26, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
勘察信息显示字段调整
parent
24bc64a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
5 deletions
+30
-5
SurveyInformationServiceImpl.java
...e/hygf/biz/service/impl/SurveyInformationServiceImpl.java
+30
-5
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/SurveyInformationServiceImpl.java
View file @
86051b9f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
...
@@ -37,6 +38,8 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
...
@@ -37,6 +38,8 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
/**
/**
* 勘察信息服务实现类
* 勘察信息服务实现类
...
@@ -458,17 +461,20 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
...
@@ -458,17 +461,20 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
informationQueryWrapper
.
eq
(
"survey_information_id"
,
surveyInformationId
);
informationQueryWrapper
.
eq
(
"survey_information_id"
,
surveyInformationId
);
Information
information
=
informationService
.
getBaseMapper
().
selectOne
(
informationQueryWrapper
);
Information
information
=
informationService
.
getBaseMapper
().
selectOne
(
informationQueryWrapper
);
if
(
information
==
null
){
surveyInfoAllDto
.
setInformation
(
new
InformationDto
());
}
else
{
surveyInfoAllDto
.
setInformation
(
BeanDtoUtils
.
convert
(
information
,
InformationDto
.
class
));
}
QueryWrapper
<
Commercial
>
commercialQueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
Commercial
>
commercialQueryWrapper
=
new
QueryWrapper
<>();
commercialQueryWrapper
.
eq
(
"survey_information_id"
,
surveyInformationId
);
commercialQueryWrapper
.
eq
(
"survey_information_id"
,
surveyInformationId
);
Commercial
commercial
=
commercialService
.
getBaseMapper
().
selectOne
(
commercialQueryWrapper
);
Commercial
commercial
=
commercialService
.
getBaseMapper
().
selectOne
(
commercialQueryWrapper
);
if
(
commercial
==
null
){
if
(
commercial
==
null
){
commercial
=
new
Commercial
();
commercial
=
new
Commercial
();
}
}
if
(
information
==
null
){
surveyInfoAllDto
.
setInformation
(
new
InformationDto
());
}
else
{
information
.
setCardFile
(
null
==
commercial
?
new
ArrayList
<>()
:(
CollectionUtil
.
isNotEmpty
(
commercial
.
getIdCardCredit
())?
commercial
.
getIdCardCredit
():
new
ArrayList
<>()));
surveyInfoAllDto
.
setInformation
(
BeanDtoUtils
.
convert
(
information
,
InformationDto
.
class
));
}
commercial
.
setApplicant
(
peasantHousehold
.
getOwnersName
());
commercial
.
setApplicant
(
peasantHousehold
.
getOwnersName
());
commercial
.
setIdCard
(
peasantHousehold
.
getIdCard
());
commercial
.
setIdCard
(
peasantHousehold
.
getIdCard
());
commercial
.
setTelephone
(
peasantHousehold
.
getTelephone
());
commercial
.
setTelephone
(
peasantHousehold
.
getTelephone
());
...
@@ -477,6 +483,25 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
...
@@ -477,6 +483,25 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
commercial
.
setProjectAddressDetail
(
peasantHousehold
.
getProjectAddressDetail
());
commercial
.
setProjectAddressDetail
(
peasantHousehold
.
getProjectAddressDetail
());
commercial
.
setLegalContactTelephone
(
peasantHousehold
.
getTelephone
());
commercial
.
setLegalContactTelephone
(
peasantHousehold
.
getTelephone
());
List
<
Object
>
list
=
new
ArrayList
<>();
if
(
null
!=
surveyDetails
){
if
(
CollectionUtil
.
isNotEmpty
(
surveyDetails
.
getSurroundingHouseSurvey
())){
list
.
addAll
(
surveyDetails
.
getSurroundingHouseSurvey
());
}
if
(
CollectionUtil
.
isNotEmpty
(
surveyDetails
.
getOverallHousingSurvey
())){
list
.
addAll
(
surveyDetails
.
getOverallHousingSurvey
());
}
if
(
CollectionUtil
.
isNotEmpty
(
surveyDetails
.
getPanoramaSurvey
())){
list
.
addAll
(
surveyDetails
.
getPanoramaSurvey
());
}
if
(
CollectionUtil
.
isNotEmpty
(
surveyDetails
.
getPlanSketchSurvey
())){
list
.
addAll
(
surveyDetails
.
getPlanSketchSurvey
());
}
if
(
CollectionUtil
.
isNotEmpty
(
surveyDetails
.
getAzimuthSurvey
())){
list
.
addAll
(
surveyDetails
.
getAzimuthSurvey
());
}
}
commercial
.
setSurveyPhotosWeb
(
list
);
if
(
information
==
null
){
if
(
information
==
null
){
...
...
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