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
347f9ad1
Commit
347f9ad1
authored
Jul 10, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
c15892cf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
8 deletions
+31
-8
PeasantHouseholdDto.java
...in/amos/boot/module/hygf/api/dto/PeasantHouseholdDto.java
+1
-1
SurveyInformationDto.java
...n/amos/boot/module/hygf/api/dto/SurveyInformationDto.java
+6
-0
SurveyInformation.java
...n/amos/boot/module/hygf/api/entity/SurveyInformation.java
+1
-1
SurveyInformationServiceImpl.java
...e/hygf/biz/service/impl/SurveyInformationServiceImpl.java
+23
-6
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/PeasantHouseholdDto.java
View file @
347f9ad1
...
@@ -59,7 +59,7 @@ public class PeasantHouseholdDto extends BaseDto {
...
@@ -59,7 +59,7 @@ public class PeasantHouseholdDto extends BaseDto {
private
String
permanentAddress
;
private
String
permanentAddress
;
@ApiModelProperty
(
value
=
"常住地址Arr"
)
@ApiModelProperty
(
value
=
"常住地址Arr"
)
private
String
permanentAddressArr
;
private
String
[]
permanentAddressArr
;
@ApiModelProperty
(
value
=
"是否勘察 0,1"
)
@ApiModelProperty
(
value
=
"是否勘察 0,1"
)
private
Integer
surveyOrNot
;
private
Integer
surveyOrNot
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/SurveyInformationDto.java
View file @
347f9ad1
...
@@ -75,4 +75,10 @@ public class SurveyInformationDto extends BaseDto {
...
@@ -75,4 +75,10 @@ public class SurveyInformationDto extends BaseDto {
@ApiModelProperty
(
value
=
"常住地址"
)
@ApiModelProperty
(
value
=
"常住地址"
)
private
String
permanentAddress
;
private
String
permanentAddress
;
@ApiModelProperty
(
value
=
"项目地址Arr"
)
private
Integer
[]
projectAddressArr
;
@ApiModelProperty
(
value
=
"常住地址Arr"
)
private
Integer
[]
permanentAddressArr
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/SurveyInformation.java
View file @
347f9ad1
...
@@ -49,7 +49,7 @@ public class SurveyInformation extends BaseEntity {
...
@@ -49,7 +49,7 @@ public class SurveyInformation extends BaseEntity {
/**
/**
* 业务员id
* 业务员id
*/
*/
@TableField
(
"salesman
_id"
)
@TableField
(
"salesman_id"
)
private
String
salesmanId
;
private
String
salesmanId
;
/**
/**
...
...
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 @
347f9ad1
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.*
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.*
;
...
@@ -11,6 +12,8 @@ import com.yeejoin.amos.boot.module.hygf.api.util.BeanDtoUtils;
...
@@ -11,6 +12,8 @@ import com.yeejoin.amos.boot.module.hygf.api.util.BeanDtoUtils;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.model.RegionModel
;
import
com.yeejoin.amos.feign.systemctl.model.RegionModel
;
import
org.apache.commons.beanutils.ConvertUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
...
@@ -91,36 +94,50 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
...
@@ -91,36 +94,50 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
SurveyInfoAllDto
surveyInfoAllDto
=
new
SurveyInfoAllDto
();
SurveyInfoAllDto
surveyInfoAllDto
=
new
SurveyInfoAllDto
();
SurveyInformation
surveyInformation
=
this
.
getById
(
surveyInformationId
);
LambdaQueryWrapper
<
SurveyInformation
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
SurveyInformation:
:
getSequenceNbr
,
surveyInformationId
);
SurveyInformation
surveyInformation
=
this
.
baseMapper
.
selectOne
(
queryWrapper
);
surveyInfoAllDto
.
setSurveyInformation
(
BeanDtoUtils
.
convert
(
surveyInformation
,
SurveyInformationDto
.
class
));
surveyInfoAllDto
.
setSurveyInformation
(
BeanDtoUtils
.
convert
(
surveyInformation
,
SurveyInformationDto
.
class
));
QueryWrapper
<
PeasantHousehold
>
peasantHouseholdQueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
PeasantHousehold
>
peasantHouseholdQueryWrapper
=
new
QueryWrapper
<>();
peasantHouseholdQueryWrapper
.
eq
(
"survey
InformationI
d"
,
surveyInformationId
);
peasantHouseholdQueryWrapper
.
eq
(
"survey
_information_i
d"
,
surveyInformationId
);
PeasantHousehold
peasantHousehold
=
peasantHouseholdServiceImpl
.
getBaseMapper
().
selectOne
(
peasantHouseholdQueryWrapper
);
PeasantHousehold
peasantHousehold
=
peasantHouseholdServiceImpl
.
getBaseMapper
().
selectOne
(
peasantHouseholdQueryWrapper
);
BeanUtils
.
copyProperties
(
peasantHousehold
,
surveyInfoAllDto
.
getSurveyInformation
());
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
);
}
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
<>();
QueryWrapper
<
SurveyDetails
>
surveyDetailsQueryWrapper
=
new
QueryWrapper
<>();
surveyDetailsQueryWrapper
.
eq
(
"survey
InformationI
d"
,
surveyInformationId
);
surveyDetailsQueryWrapper
.
eq
(
"survey
_information_i
d"
,
surveyInformationId
);
SurveyDetails
surveyDetails
=
surveyDetailsService
.
getBaseMapper
().
selectOne
(
surveyDetailsQueryWrapper
);
SurveyDetails
surveyDetails
=
surveyDetailsService
.
getBaseMapper
().
selectOne
(
surveyDetailsQueryWrapper
);
surveyInfoAllDto
.
setSurveyDetails
(
BeanDtoUtils
.
convert
(
surveyDetails
,
SurveyDetailsDto
.
class
));
surveyInfoAllDto
.
setSurveyDetails
(
BeanDtoUtils
.
convert
(
surveyDetails
,
SurveyDetailsDto
.
class
));
QueryWrapper
<
Information
>
informationQueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
Information
>
informationQueryWrapper
=
new
QueryWrapper
<>();
surveyDetailsQueryWrapper
.
eq
(
"survey
InformationI
d"
,
surveyInformationId
);
surveyDetailsQueryWrapper
.
eq
(
"survey
_information_i
d"
,
surveyInformationId
);
Information
information
=
informationService
.
getBaseMapper
().
selectOne
(
informationQueryWrapper
);
Information
information
=
informationService
.
getBaseMapper
().
selectOne
(
informationQueryWrapper
);
surveyInfoAllDto
.
setInformation
(
BeanDtoUtils
.
convert
(
information
,
InformationDto
.
class
));
surveyInfoAllDto
.
setInformation
(
BeanDtoUtils
.
convert
(
information
,
InformationDto
.
class
));
QueryWrapper
<
Commercial
>
commercialQueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
Commercial
>
commercialQueryWrapper
=
new
QueryWrapper
<>();
surveyDetailsQueryWrapper
.
eq
(
"survey
InformationI
d"
,
surveyInformationId
);
surveyDetailsQueryWrapper
.
eq
(
"survey
_information_i
d"
,
surveyInformationId
);
Commercial
commercial
=
commercialService
.
getBaseMapper
().
selectOne
(
commercialQueryWrapper
);
Commercial
commercial
=
commercialService
.
getBaseMapper
().
selectOne
(
commercialQueryWrapper
);
surveyInfoAllDto
.
setCommercial
(
BeanDtoUtils
.
convert
(
commercial
,
CommercialDto
.
class
));
surveyInfoAllDto
.
setCommercial
(
BeanDtoUtils
.
convert
(
commercial
,
CommercialDto
.
class
));
QueryWrapper
<
ExtendedInformation
>
extendedInformationQueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
ExtendedInformation
>
extendedInformationQueryWrapper
=
new
QueryWrapper
<>();
surveyDetailsQueryWrapper
.
eq
(
"survey
InformationI
d"
,
surveyInformationId
);
surveyDetailsQueryWrapper
.
eq
(
"survey
_information_i
d"
,
surveyInformationId
);
ExtendedInformation
extendedInformation
=
extendedInformationService
.
getBaseMapper
().
selectOne
(
extendedInformationQueryWrapper
);
ExtendedInformation
extendedInformation
=
extendedInformationService
.
getBaseMapper
().
selectOne
(
extendedInformationQueryWrapper
);
surveyInfoAllDto
.
setExtendedInformation
(
BeanDtoUtils
.
convert
(
extendedInformation
,
ExtendedInformationDto
.
class
));
surveyInfoAllDto
.
setExtendedInformation
(
BeanDtoUtils
.
convert
(
extendedInformation
,
ExtendedInformationDto
.
class
));
...
...
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