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
f5dd77b6
Commit
f5dd77b6
authored
Jul 11, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
bf3e4296
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
11 deletions
+24
-11
SurveyInformationDto.java
...n/amos/boot/module/hygf/api/dto/SurveyInformationDto.java
+6
-2
SurveyInformationServiceImpl.java
...e/hygf/biz/service/impl/SurveyInformationServiceImpl.java
+18
-9
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/SurveyInformationDto.java
View file @
f5dd77b6
...
...
@@ -6,6 +6,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
import
java.util.List
;
/**
* 勘察信息
...
...
@@ -76,9 +77,12 @@ public class SurveyInformationDto extends BaseDto {
private
String
permanentAddress
;
@ApiModelProperty
(
value
=
"项目地址Arr"
)
private
Integer
[]
projectAddressArr
;
private
List
<
Integer
>
projectAddressArr
;
@ApiModelProperty
(
value
=
"常住地址Arr"
)
private
Integer
[]
permanentAddressArr
;
private
List
<
Integer
>
permanentAddressArr
;
@ApiModelProperty
(
value
=
"常住是否相同"
)
private
List
<
String
>
isPermanent
;
}
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 @
f5dd77b6
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
...
...
@@ -106,17 +107,25 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
BeanUtils
.
copyProperties
(
peasantHousehold
,
surveyInfoAllDto
.
getSurveyInformation
());
if
(
StringUtils
.
isNotEmpty
(
peasantHousehold
.
getProjectAddress
()))
{
String
[]
pArr
=
peasantHousehold
.
getProjectAddress
().
split
(
","
);
Integer
[]
convert
=
(
Integer
[])
ConvertUtils
.
convert
(
pArr
,
Integer
.
class
);
surveyInfoAllDto
.
getSurveyInformation
().
setProjectAddressArr
(
convert
);
surveyInfoAllDto
.
getSurveyInformation
().
setProjectAddressArr
(
JSON
.
parseArray
(
peasantHousehold
.
getProjectAddress
(),
Integer
.
class
));
if
(!
StringUtils
.
isEmpty
(
peasantHousehold
.
getPermanentAddress
())){
surveyInfoAllDto
.
getSurveyInformation
().
setPermanentAddressArr
(
JSON
.
parseArray
(
peasantHousehold
.
getPermanentAddress
(),
Integer
.
class
));
}
else
{
surveyInfoAllDto
.
getSurveyInformation
().
setPermanentAddressArr
(
JSON
.
parseArray
(
"[]"
,
Integer
.
class
));
surveyInfoAllDto
.
getSurveyInformation
().
setIsPermanent
(
JSON
.
parseArray
(
"[1]"
,
String
.
class
));
}
if
(
StringUtils
.
isNotEmpty
(
peasantHousehold
.
getPermanentAddress
()))
{
String
[]
eArr
=
peasantHousehold
.
getPermanentAddress
().
split
(
","
);
Integer
[]
convert1
=
(
Integer
[])
ConvertUtils
.
convert
(
eArr
,
Integer
.
class
);
surveyInfoAllDto
.
getSurveyInformation
().
setPermanentAddressArr
(
convert1
);
}
// if(StringUtils.isNotEmpty(peasantHousehold.getProjectAddress())) {
// String[] pArr = peasantHousehold.getProjectAddress().split(",");
// Integer[] convert = (Integer[]) ConvertUtils.convert(pArr, Integer.class);
// surveyInfoAllDto.getSurveyInformation().setProjectAddressArr(convert);
// }
//
// if(StringUtils.isNotEmpty(peasantHousehold.getPermanentAddress())) {
// String[] eArr = peasantHousehold.getPermanentAddress().split(",");
// Integer[] convert1 = (Integer[]) ConvertUtils.convert(eArr, Integer.class);
// surveyInfoAllDto.getSurveyInformation().setPermanentAddressArr(convert1);
// }
QueryWrapper
<
SurveyDetails
>
surveyDetailsQueryWrapper
=
new
QueryWrapper
<>();
surveyDetailsQueryWrapper
.
eq
(
"survey_information_id"
,
surveyInformationId
);
...
...
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