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
ce76e1f8
Commit
ce76e1f8
authored
Mar 23, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改监管码生成
parent
f824ab93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
EquipmentCategoryServiceImpl.java
...le/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
+3
-1
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
ce76e1f8
...
@@ -309,6 +309,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -309,6 +309,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
Map
<
String
,
Object
>
divisionMap
=
equipmentCategoryMapper
.
getAdministrativeDivision
(
EquipmentCategoryEnum
.
XZQH
.
getCode
(),
county
);
Map
<
String
,
Object
>
divisionMap
=
equipmentCategoryMapper
.
getAdministrativeDivision
(
EquipmentCategoryEnum
.
XZQH
.
getCode
(),
county
);
String
division
=
ObjectUtils
.
isEmpty
(
divisionMap
)
?
equipmentCategoryMapper
.
getAdministrativeDivision
(
EquipmentCategoryEnum
.
XZQH
.
getCode
(),
city
).
get
(
"code"
).
toString
()
:
divisionMap
.
get
(
"code"
).
toString
();
String
division
=
ObjectUtils
.
isEmpty
(
divisionMap
)
?
equipmentCategoryMapper
.
getAdministrativeDivision
(
EquipmentCategoryEnum
.
XZQH
.
getCode
(),
city
).
get
(
"code"
).
toString
()
:
divisionMap
.
get
(
"code"
).
toString
();
StringBuilder
supervisorCode
=
new
StringBuilder
();
StringBuilder
supervisorCode
=
new
StringBuilder
();
supervisorCode
.
append
(
division
).
append
(
equipCategory
).
append
(
"-"
);
//获取行政区划区县、市是否存在历史监管码
//获取行政区划区县、市是否存在历史监管码
CategoryOtherInfo
supervisor
=
categoryOtherInfoMapper
.
selectSupervisorCode
(
supervisorCode
.
toString
());
CategoryOtherInfo
supervisor
=
categoryOtherInfoMapper
.
selectSupervisorCode
(
supervisorCode
.
toString
());
//查询对应record对应数据
//查询对应record对应数据
...
@@ -317,7 +318,6 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -317,7 +318,6 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
if
(!
ObjectUtils
.
isEmpty
(
otherInfo
.
getSupervisoryCode
()))
{
if
(!
ObjectUtils
.
isEmpty
(
otherInfo
.
getSupervisoryCode
()))
{
supervisorCode
=
new
StringBuilder
(
otherInfo
.
getSupervisoryCode
());
supervisorCode
=
new
StringBuilder
(
otherInfo
.
getSupervisoryCode
());
}
else
{
}
else
{
supervisorCode
.
append
(
division
).
append
(
equipCategory
).
append
(
"-"
);
//生成对应监管码
//生成对应监管码
if
(!
ObjectUtils
.
isEmpty
(
supervisor
))
{
if
(!
ObjectUtils
.
isEmpty
(
supervisor
))
{
if
(
supervisor
.
getSupervisoryCode
()
!=
null
)
{
if
(
supervisor
.
getSupervisoryCode
()
!=
null
)
{
...
@@ -339,6 +339,8 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -339,6 +339,8 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
supervisorCode
.
append
(
EquipmentCategoryEnum
.
JGM
.
getCode
());
supervisorCode
.
append
(
EquipmentCategoryEnum
.
JGM
.
getCode
());
}
}
}
}
}
else
{
supervisorCode
=
null
;
}
}
StringBuilder
elevatorCode
=
new
StringBuilder
();
StringBuilder
elevatorCode
=
new
StringBuilder
();
...
...
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