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
efcf7bdf
Commit
efcf7bdf
authored
Oct 09, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改户用光伏单位编辑
parent
e012e7c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
UnitInfoServiceImpl.java
...oot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
+7
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
View file @
efcf7bdf
...
@@ -535,6 +535,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
...
@@ -535,6 +535,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
//验证二维码
//验证二维码
UnitInfo
unitInfo
=
new
UnitInfo
();
UnitInfo
unitInfo
=
new
UnitInfo
();
unitInfo
=
unitInfoMapper
.
selectById
(
unitDataDto
.
getUnitInformation
().
getSequenceNbr
());
unitInfo
=
unitInfoMapper
.
selectById
(
unitDataDto
.
getUnitInformation
().
getSequenceNbr
());
UnitInformation
unitInformation
=
unitDataDto
.
getUnitInformation
();
UnitInformation
unitInformation
=
unitDataDto
.
getUnitInformation
();
JSONArray
regionName
=
getRegionName
();
JSONArray
regionName
=
getRegionName
();
List
<
RegionModel
>
list
=
JSONArray
.
parseArray
(
regionName
.
toJSONString
(),
RegionModel
.
class
);
List
<
RegionModel
>
list
=
JSONArray
.
parseArray
(
regionName
.
toJSONString
(),
RegionModel
.
class
);
...
@@ -575,6 +576,9 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
...
@@ -575,6 +576,9 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
unitInformation
.
setHeadCardPhotoFrontUrl
(
unitInformation
.
getHeadCardPhotoFrontUrl
());
unitInformation
.
setHeadCardPhotoFrontUrl
(
unitInformation
.
getHeadCardPhotoFrontUrl
());
unitInformation
.
setRegisterPcdCodeList
(
unitInformation
.
getRegisterPcdCodeList
());
unitInformation
.
setRegisterPcdCodeList
(
unitInformation
.
getRegisterPcdCodeList
());
unitInformation
.
setWorkPcdCodeList
(
unitInformation
.
getWorkPcdCodeList
());
unitInformation
.
setWorkPcdCodeList
(
unitInformation
.
getWorkPcdCodeList
());
List
<
Long
>
dis
=
unitInformation
.
getRegionalCompaniesSeq
();
List
<
String
>
disST
=
dis
.
stream
().
map
(
x
->
x
+
""
).
collect
(
Collectors
.
toList
());
BeanUtils
.
copyProperties
(
unitInformation
,
unitInfo
);
BeanUtils
.
copyProperties
(
unitInformation
,
unitInfo
);
CommerceInfo
commerceInfo
=
new
CommerceInfo
();
CommerceInfo
commerceInfo
=
new
CommerceInfo
();
commerceInfo
=
commerceInfoMapper
.
selectById
(
unitDataDto
.
getCommerceDto
().
getSequenceNbr
());
commerceInfo
=
commerceInfoMapper
.
selectById
(
unitDataDto
.
getCommerceDto
().
getSequenceNbr
());
...
@@ -583,12 +587,13 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
...
@@ -583,12 +587,13 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
commerceDto
.
setLegalPersonCardPhotoBackUrl
(
commerceDto
.
getLegalPersonCardPhotoBackUrl
());
commerceDto
.
setLegalPersonCardPhotoBackUrl
(
commerceDto
.
getLegalPersonCardPhotoBackUrl
());
commerceDto
.
setLegalPersonCardPhotoFrontUrl
(
commerceDto
.
getLegalPersonCardPhotoFrontUrl
());
commerceDto
.
setLegalPersonCardPhotoFrontUrl
(
commerceDto
.
getLegalPersonCardPhotoFrontUrl
());
BeanUtils
.
copyProperties
(
commerceDto
,
commerceInfo
);
BeanUtils
.
copyProperties
(
commerceDto
,
commerceInfo
);
unitInfo
.
setRegionalCompaniesSeq
(
disST
);
unitInfoMapper
.
updateById
(
unitInfo
);
unitInfoMapper
.
updateById
(
unitInfo
);
commerceInfoMapper
.
updateById
(
commerceInfo
);
commerceInfoMapper
.
updateById
(
commerceInfo
);
//区域公司
//区域公司
LambdaQueryWrapper
<
RegionalCompanies
>
qu
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
RegionalCompanies
>
qu
=
new
LambdaQueryWrapper
<>();
qu
.
eq
(
RegionalCompanies:
:
getUnitId
,
unitInfo
.
get
SequenceNbr
());
qu
.
eq
(
RegionalCompanies:
:
getUnitId
,
unitInfo
.
get
AmosCompanySeq
());
regionalCompaniesMapper
.
delete
(
qu
);
regionalCompaniesMapper
.
delete
(
qu
);
List
<
RegionalCompanies
>
regionalComp
=
new
ArrayList
<>();
List
<
RegionalCompanies
>
regionalComp
=
new
ArrayList
<>();
FeignClientResult
<
Collection
<
CompanyModel
>>
feignClientResult
=
Privilege
.
companyClient
.
querySubAgencyTree
(
regionalCompanies
);
FeignClientResult
<
Collection
<
CompanyModel
>>
feignClientResult
=
Privilege
.
companyClient
.
querySubAgencyTree
(
regionalCompanies
);
...
@@ -598,7 +603,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
...
@@ -598,7 +603,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
for
(
Object
aLong
:
lisd
)
{
for
(
Object
aLong
:
lisd
)
{
for
(
CompanyModel
compan
:
companyModel
)
{
for
(
CompanyModel
compan
:
companyModel
)
{
if
(
compan
.
getSequenceNbr
().
longValue
()==
Long
.
valueOf
(
aLong
.
toString
()).
longValue
()){
if
(
compan
.
getSequenceNbr
().
longValue
()==
Long
.
valueOf
(
aLong
.
toString
()).
longValue
()){
RegionalCompanies
re
=
new
RegionalCompanies
(
Long
.
valueOf
(
aLong
.
toString
()),
compan
.
getCompanyName
(),
compan
.
getOrgCode
(),
unitInfo
.
get
SequenceNbr
());
RegionalCompanies
re
=
new
RegionalCompanies
(
Long
.
valueOf
(
aLong
.
toString
()),
compan
.
getCompanyName
(),
compan
.
getOrgCode
(),
unitInfo
.
get
AmosCompanySeq
());
regionalComp
.
add
(
re
);
regionalComp
.
add
(
re
);
continue
;
continue
;
}
}
...
...
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