Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
9c87d14f
Commit
9c87d14f
authored
Jun 24, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
26854 【智信户用(管理端)】迁移工作台相关代码
parent
161531ed
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
88 additions
and
54 deletions
+88
-54
BasicGridAcceptanceServiceImpl.java
...hygf/biz/service/impl/BasicGridAcceptanceServiceImpl.java
+0
-0
FinancingInfoServiceImpl.java
...odule/hygf/biz/service/impl/FinancingInfoServiceImpl.java
+21
-0
UnitInfoServiceImpl.java
...oot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
+67
-54
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/BasicGridAcceptanceServiceImpl.java
View file @
9c87d14f
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/FinancingInfoServiceImpl.java
View file @
9c87d14f
...
...
@@ -217,6 +217,8 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
financingInfo
.
setFinancingCompaniesName
(
null
);
this
.
updateById
(
financingInfo
);
}
//停止流程
// commonService.rollbackTask();
}
@Override
...
...
@@ -313,8 +315,27 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
financingRectificationOrder
.
setResponsibleUserPhone
(
params
.
getOrDefault
(
"responsibleUserPhone"
,
""
).
toString
());
financingRectificationOrderService
.
save
(
financingRectificationOrder
);
}
//更新待办
// commonService.updateTaskModelNew(buildDZTRZUpdateTaskParams(params,financingAuditing));
}
private
Map
<
String
,
Object
>
buildDZTRZUpdateTaskParams
(
Map
<
String
,
Object
>
params
,
FinancingAuditing
financingAuditing
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
if
(
"0"
.
equals
(
params
.
get
(
"approvalStatus"
)))
{
map
.
put
(
"flowStatus"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
());
map
.
put
(
"flowStatusLabel"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
());
map
.
put
(
"taskStatus"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
());
map
.
put
(
"taskStatusLabel"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
());
}
else
{
map
.
put
(
"flowStatus"
,
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
());
map
.
put
(
"flowStatusLabel"
,
FlowStatusEnum
.
TO_BE_PROCESSED
.
getName
());
map
.
put
(
"taskStatus"
,
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
());
map
.
put
(
"taskStatusLabel"
,
FlowStatusEnum
.
TO_BE_PROCESSED
.
getName
());
}
map
.
put
(
"model"
,
financingAuditing
);
map
.
put
(
"relationId"
,
financingAuditing
.
getInstanceId
());
return
map
;
}
public
List
<
Map
<
String
,
Object
>>
selectOrgList
()
{
...
...
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 @
9c87d14f
...
...
@@ -677,7 +677,8 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
dealerReviewService
.
saveDealerReview
(
dealerReview
,
false
,
true
,
unitInfo
.
getName
(),
approvalStatue
);
this
.
saveOrUpdate
(
unitInfo
);
//更新待办
// commonService.updateTaskModelNew(buildJXSSHUpdateTaskModel(basicGridAcceptance, unitInfo, kv));
}
catch
(
Exception
e
)
{
...
...
@@ -704,7 +705,6 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
}
// // 2.更新审核记录表
// UnitInfo unitInfo=null;
// try{
...
...
@@ -815,6 +815,24 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
return
code
;
}
private
Map
<
String
,
Object
>
buildJXSSHUpdateTaskModel
(
BasicGridAcceptance
basicGridAcceptance
,
UnitInfo
unitInfo
,
Map
<
String
,
Object
>
params
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
if
(
"0"
.
equals
(
params
.
get
(
"approvalStatus"
)))
{
map
.
put
(
"flowStatus"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
());
map
.
put
(
"flowStatusLabel"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
());
map
.
put
(
"taskStatus"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
());
map
.
put
(
"taskStatusLabel"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
());
}
else
{
map
.
put
(
"flowStatus"
,
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
());
map
.
put
(
"flowStatusLabel"
,
FlowStatusEnum
.
TO_BE_PROCESSED
.
getName
());
map
.
put
(
"taskStatus"
,
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
());
map
.
put
(
"taskStatusLabel"
,
FlowStatusEnum
.
TO_BE_PROCESSED
.
getName
());
}
map
.
put
(
"model"
,
unitInfo
);
map
.
put
(
"relationId"
,
basicGridAcceptance
.
getInstanceId
());
return
map
;
}
@Override
public
IPage
<
CompanyDto
>
getCompanyDto
(
CompanyDto
dto
)
{
//列表数据组装
...
...
@@ -921,67 +939,62 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
commerceInfoMapper
.
updateById
(
commerceInfo
);
//区域公司
LambdaQueryWrapper
<
RegionalCompanies
>
qu
=
new
LambdaQueryWrapper
<>();
qu
.
eq
(
RegionalCompanies:
:
getUnitId
,
unitInfo
.
getAmosCompanySeq
());
List
<
RegionalCompanies
>
oldList
=
regionalCompaniesMapper
.
selectList
(
qu
);
regionalCompaniesMapper
.
delete
(
qu
);
List
<
RegionalCompanies
>
regionalComp
=
new
ArrayList
<>();
FeignClientResult
<
Collection
<
CompanyModel
>>
feignClientResult
=
Privilege
.
companyClient
.
querySubAgencyTree
(
regionalCompanies
);
List
<
CompanyModel
>
companyModel
=
(
List
<
CompanyModel
>)
feignClientResult
.
getResult
();
List
<
String
>
lisd
=
unitInfo
.
getRegionalCompaniesSeq
();
if
(
oldList
==
null
)
{
oldList
=
new
ArrayList
<>();
}
if
(
companyModel
!=
null
&&!
companyModel
.
isEmpty
()&&
lisd
!=
null
&&!
lisd
.
isEmpty
()){
for
(
Object
aLong
:
lisd
)
{
RegionalCompanies
oldRe
=
oldList
.
stream
().
filter
(
s
->
Objects
.
equals
(
s
.
getRegionalCompaniesSeq
().
toString
(),
aLong
.
toString
())).
findFirst
().
orElse
(
null
);
if
(
oldRe
!=
null
)
{
lisk
.
add
(
oldRe
.
getRegionalCompaniesCode
());
regionalComp
.
add
(
oldRe
);
}
else
{
for
(
CompanyModel
compan
:
companyModel
)
{
if
(
compan
.
getSequenceNbr
().
longValue
()==
Long
.
valueOf
(
aLong
.
toString
()).
longValue
()){
RegionalCompanies
re
=
new
RegionalCompanies
(
Long
.
valueOf
(
aLong
.
toString
()),
compan
.
getCompanyName
(),
compan
.
getOrgCode
(),
unitInfo
.
getAmosCompanySeq
(),
unitInfo
.
getSequenceNbr
());
lisk
.
add
(
compan
.
getOrgCode
());
regionalComp
.
add
(
re
);
continue
;
}
}
}
}
}
//区域公司
LambdaQueryWrapper
<
RegionalCompanies
>
qu
=
new
LambdaQueryWrapper
<>();
qu
.
eq
(
RegionalCompanies:
:
getUnitId
,
unitInfo
.
getAmosCompanySeq
());
List
<
RegionalCompanies
>
oldList
=
regionalCompaniesMapper
.
selectList
(
qu
);
regionalCompaniesMapper
.
delete
(
qu
);
List
<
RegionalCompanies
>
regionalComp
=
new
ArrayList
<>();
FeignClientResult
<
Collection
<
CompanyModel
>>
feignClientResult
=
Privilege
.
companyClient
.
querySubAgencyTree
(
regionalCompanies
);
List
<
CompanyModel
>
companyModel
=
(
List
<
CompanyModel
>)
feignClientResult
.
getResult
();
List
<
String
>
lisd
=
unitInfo
.
getRegionalCompaniesSeq
();
if
(
oldList
==
null
)
{
oldList
=
new
ArrayList
<>();
}
if
(
companyModel
!=
null
&&
!
companyModel
.
isEmpty
()
&&
lisd
!=
null
&&
!
lisd
.
isEmpty
())
{
for
(
Object
aLong
:
lisd
)
{
RegionalCompanies
oldRe
=
oldList
.
stream
().
filter
(
s
->
Objects
.
equals
(
s
.
getRegionalCompaniesSeq
().
toString
(),
aLong
.
toString
())).
findFirst
().
orElse
(
null
);
if
(
oldRe
!=
null
)
{
lisk
.
add
(
oldRe
.
getRegionalCompaniesCode
());
regionalComp
.
add
(
oldRe
);
}
else
{
for
(
CompanyModel
compan
:
companyModel
)
{
if
(
compan
.
getSequenceNbr
().
longValue
()
==
Long
.
valueOf
(
aLong
.
toString
()).
longValue
())
{
RegionalCompanies
re
=
new
RegionalCompanies
(
Long
.
valueOf
(
aLong
.
toString
()),
compan
.
getCompanyName
(),
compan
.
getOrgCode
(),
unitInfo
.
getAmosCompanySeq
(),
unitInfo
.
getSequenceNbr
());
lisk
.
add
(
compan
.
getOrgCode
());
regionalComp
.
add
(
re
);
continue
;
}
}
}
}
}
regionalCompaniesService
.
saveBatch
(
regionalComp
);
//修改管理员权限
//管理员绑定角色权限
LambdaQueryWrapper
<
StdUserEmpower
>
uo
=
new
LambdaQueryWrapper
();
uo
.
eq
(
StdUserEmpower:
:
getAmosUserId
,
unitInfo
.
getAdminUserId
());
StdUserEmpower
stdUserEmpower
=
userEmpowerMapper
.
selectOne
(
uo
);
regionalCompaniesService
.
saveBatch
(
regionalComp
);
if
(
stdUserEmpower
!=
null
){
stdUserEmpower
.
setAmosUserId
(
unitInfo
.
getAdminUserId
());
stdUserEmpower
.
setAmosOrgCode
(
lisk
);
userEmpowerMapper
.
updateById
(
stdUserEmpower
);
}
else
{
stdUserEmpower
=
new
StdUserEmpower
();
stdUserEmpower
.
setAmosUserId
(
unitInfo
.
getAdminUserId
());
stdUserEmpower
.
setAmosOrgCode
(
lisk
);
stdUserEmpower
.
setPermissionType
(
"HYGF"
);
userEmpowerMapper
.
insert
(
stdUserEmpower
);
}
//修改管理员权限
//管理员绑定角色权限
LambdaQueryWrapper
<
StdUserEmpower
>
uo
=
new
LambdaQueryWrapper
();
uo
.
eq
(
StdUserEmpower:
:
getAmosUserId
,
unitInfo
.
getAdminUserId
());
StdUserEmpower
stdUserEmpower
=
userEmpowerMapper
.
selectOne
(
uo
);
if
(
stdUserEmpower
!=
null
)
{
stdUserEmpower
.
setAmosUserId
(
unitInfo
.
getAdminUserId
());
stdUserEmpower
.
setAmosOrgCode
(
lisk
);
userEmpowerMapper
.
updateById
(
stdUserEmpower
);
}
else
{
stdUserEmpower
=
new
StdUserEmpower
();
stdUserEmpower
.
setAmosUserId
(
unitInfo
.
getAdminUserId
());
stdUserEmpower
.
setAmosOrgCode
(
lisk
);
stdUserEmpower
.
setPermissionType
(
"HYGF"
);
userEmpowerMapper
.
insert
(
stdUserEmpower
);
}
return
true
;
...
...
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