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
253975e0
Commit
253975e0
authored
Apr 12, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(JG):使用登记证添加气瓶类别
parent
15631a14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+4
-6
RegUnitInfoServiceImpl.java
...dule/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/CommonServiceImpl.java
View file @
253975e0
...
...
@@ -1484,12 +1484,10 @@ public class CommonServiceImpl implements ICommonService {
String
equCategory
=
equipRegistrationInfo
.
getEquCategory
();
// 设备类别 "3100"
String
equDefine
=
equipRegistrationInfo
.
getEquDefine
();
// 设备品种 "3110"
if
(!
ObjectUtils
.
isEmpty
(
equCategory
))
{
// 设备种类简称
String
equCategoryAbbrName
=
Optional
.
ofNullable
(
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
equCategory
)
?
CylinderTypeEnum
.
CYLINDER
.
getName
()
:
equCategory
)
.
map
(
category
->
category
.
substring
(
0
,
1
))
.
map
(
EquipTypeEnum:
:
getMessage
)
.
orElse
(
null
);
// 设备种类简称,如果是气瓶返回瓶
String
equCategoryAbbrName
=
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
equCategory
)
?
CylinderTypeEnum
.
CYLINDER
.
getName
()
:
EquipTypeEnum
.
getMessage
(
equCategory
.
substring
(
0
,
1
));
// 设备代码中间两位
String
equipType2MidDigits
;
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
View file @
253975e0
...
...
@@ -268,9 +268,9 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
public
void
addNotInDJJGDictionary
(
List
<
BaseUnitLicence
>
baseUnitLicences
)
{
List
<
String
>
approvedOrganList
=
baseUnitLicences
.
stream
()
.
map
(
BaseUnitLicence:
:
getApprovedOrgan
)
.
distinct
()
.
collect
(
Collectors
.
toList
());
List
<
DataDictionary
>
allDictionaryList
=
this
.
initAllDataDictionaryList
();
Set
<
String
>
existingNames
=
allDictionaryList
.
stream
()
.
filter
(
d
->
d
.
getType
().
equals
(
DICT_TYPE_DJJG
))
.
map
(
DataDictionary:
:
getName
)
...
...
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