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
5a46c82e
Commit
5a46c82e
authored
Nov 24, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(jyjc):检验检测业务管理
1.按照要求进行调整
parent
bf88de2f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
JyjcBizManageModel.java
...n/amos/boot/module/jyjc/api/model/JyjcBizManageModel.java
+5
-0
JyjcBizManageServiceImpl.java
...odule/jyjc/biz/service/impl/JyjcBizManageServiceImpl.java
+2
-10
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/model/JyjcBizManageModel.java
View file @
5a46c82e
...
@@ -28,4 +28,9 @@ public class JyjcBizManageModel extends JyjcOpeningApplicationModel {
...
@@ -28,4 +28,9 @@ public class JyjcBizManageModel extends JyjcOpeningApplicationModel {
* 新开通区域
* 新开通区域
*/
*/
private
List
<
String
>
newDetectionRegion
;
private
List
<
String
>
newDetectionRegion
;
/**
* 是否启用登录人区域-是否开通
*/
private
Boolean
logUserEnable
;
}
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcBizManageServiceImpl.java
View file @
5a46c82e
...
@@ -81,6 +81,7 @@ public class JyjcBizManageServiceImpl {
...
@@ -81,6 +81,7 @@ public class JyjcBizManageServiceImpl {
bizManageModel
.
setDetectionRegionName
(
this
.
buildRegionName
(
detectionRegionCodeNameMap
,
r
.
getDetectionRegion
()));
bizManageModel
.
setDetectionRegionName
(
this
.
buildRegionName
(
detectionRegionCodeNameMap
,
r
.
getDetectionRegion
()));
bizManageModel
.
setExclusionRegionName
(
this
.
buildRegionName
(
detectionRegionCodeNameMap
,
r
.
getExclusionRegion
()));
bizManageModel
.
setExclusionRegionName
(
this
.
buildRegionName
(
detectionRegionCodeNameMap
,
r
.
getExclusionRegion
()));
bizManageModel
.
setAgencyClassifyName
(
agencyClassifyNameCodeNameMap
.
getOrDefault
(
bizManageModel
.
getAgencyClassify
(),
""
));
bizManageModel
.
setAgencyClassifyName
(
agencyClassifyNameCodeNameMap
.
getOrDefault
(
bizManageModel
.
getAgencyClassify
(),
""
));
bizManageModel
.
setLogUserEnable
(!
Optional
.
ofNullable
(
r
.
getExclusionRegion
()).
orElse
(
new
ArrayList
<>()).
contains
(
company
.
getCompanyCode
()));
return
bizManageModel
;
return
bizManageModel
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
page
.
setRecords
(
manageModels
);
page
.
setRecords
(
manageModels
);
...
@@ -134,14 +135,10 @@ public class JyjcBizManageServiceImpl {
...
@@ -134,14 +135,10 @@ public class JyjcBizManageServiceImpl {
throw
new
BadRequest
(
"其他机构同时在操作该业务,请稍后重试!"
);
throw
new
BadRequest
(
"其他机构同时在操作该业务,请稍后重试!"
);
}
}
JyjcOpeningApplication
openingApplication
=
openingApplicationService
.
getById
(
appSeq
);
JyjcOpeningApplication
openingApplication
=
openingApplicationService
.
getById
(
appSeq
);
List
<
String
>
detectionRegion
=
openingApplication
.
getDetectionRegion
();
Set
<
String
>
detectionRegionSet
=
new
HashSet
<>(
detectionRegion
);
detectionRegionSet
.
add
(
company
.
getCompanyCode
());
List
<
String
>
exclusionRegion
=
openingApplication
.
getExclusionRegion
();
List
<
String
>
exclusionRegion
=
openingApplication
.
getExclusionRegion
();
if
(
exclusionRegion
!=
null
)
{
if
(
exclusionRegion
!=
null
)
{
exclusionRegion
.
remove
(
company
.
getCompanyCode
());
exclusionRegion
.
remove
(
company
.
getCompanyCode
());
}
}
openingApplication
.
setDetectionRegion
(
new
ArrayList
<>(
detectionRegionSet
));
openingApplication
.
setExclusionRegion
(
exclusionRegion
);
openingApplication
.
setExclusionRegion
(
exclusionRegion
);
openingApplicationService
.
saveOrUpdate
(
openingApplication
);
openingApplicationService
.
saveOrUpdate
(
openingApplication
);
...
@@ -166,14 +163,9 @@ public class JyjcBizManageServiceImpl {
...
@@ -166,14 +163,9 @@ public class JyjcBizManageServiceImpl {
throw
new
BadRequest
(
"其他机构同时在操作该业务,请稍后重试!"
);
throw
new
BadRequest
(
"其他机构同时在操作该业务,请稍后重试!"
);
}
}
JyjcOpeningApplication
openingApplication
=
openingApplicationService
.
getById
(
appSeq
);
JyjcOpeningApplication
openingApplication
=
openingApplicationService
.
getById
(
appSeq
);
List
<
String
>
detectionRegion
=
openingApplication
.
getDetectionRegion
();
if
(
detectionRegion
!=
null
)
{
detectionRegion
.
remove
(
company
.
getCompanyCode
());
}
List
<
String
>
exclusionRegion
=
openingApplication
.
getExclusionRegion
();
List
<
String
>
exclusionRegion
=
openingApplication
.
getExclusionRegion
();
Set
<
String
>
exclusionRegionSet
=
Optional
.
ofNullable
(
exclusionRegion
).
map
(
HashSet:
:
new
).
orElse
(
new
HashSet
<>());
Set
<
String
>
exclusionRegionSet
=
Optional
.
ofNullable
(
exclusionRegion
).
map
(
HashSet:
:
new
).
orElse
(
new
HashSet
<>());
exclusionRegionSet
.
add
(
company
.
getCompanyCode
());
exclusionRegionSet
.
add
(
company
.
getCompanyCode
());
openingApplication
.
setDetectionRegion
(
detectionRegion
);
openingApplication
.
setExclusionRegion
(
new
ArrayList
<>(
exclusionRegionSet
));
openingApplication
.
setExclusionRegion
(
new
ArrayList
<>(
exclusionRegionSet
));
openingApplicationService
.
saveOrUpdate
(
openingApplication
);
openingApplicationService
.
saveOrUpdate
(
openingApplication
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
...
@@ -281,7 +273,7 @@ public class JyjcBizManageServiceImpl {
...
@@ -281,7 +273,7 @@ public class JyjcBizManageServiceImpl {
public
JyjcBizManageModel
getBasicInfo
(
String
appSeq
)
{
public
JyjcBizManageModel
getBasicInfo
(
String
appSeq
)
{
JyjcOpeningApplication
openingApplication
=
openingApplicationService
.
getById
(
appSeq
);
JyjcOpeningApplication
openingApplication
=
openingApplicationService
.
getById
(
appSeq
);
JyjcBizManageModel
manageModel
=
BeanUtil
.
copyProperties
(
openingApplication
,
JyjcBizManageModel
.
class
);
JyjcBizManageModel
manageModel
=
BeanUtil
.
copyProperties
(
openingApplication
,
JyjcBizManageModel
.
class
);
manageModel
.
setNewDetectionRegion
(
openingApplication
.
getDetectionRegion
()
.
stream
().
filter
(
e
->
!
Optional
.
ofNullable
(
openingApplication
.
getExclusionRegion
()).
orElse
(
new
ArrayList
<>()).
contains
(
e
)).
collect
(
Collectors
.
toList
())
);
manageModel
.
setNewDetectionRegion
(
openingApplication
.
getDetectionRegion
());
return
manageModel
;
return
manageModel
;
}
}
...
...
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