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
99e7f983
Commit
99e7f983
authored
Jul 29, 2025
by
hcing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备认领bugfix
parent
92b7e2e8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+4
-4
EquipClaimServiceImpl.java
...oot/module/jg/biz/service/impl/EquipClaimServiceImpl.java
+12
-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 @
99e7f983
...
...
@@ -2312,7 +2312,7 @@ public class CommonServiceImpl implements ICommonService {
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\\D0]*000$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
break
;
case
"2"
:
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\
\D
0]*00$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\0]*00$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
break
;
case
"3"
:
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\\D0A-Za-z]*[A-Za-z0-9]*[^0]0$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
...
...
@@ -2342,7 +2342,7 @@ public class CommonServiceImpl implements ICommonService {
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\\D0]*000$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
break
;
case
"2"
:
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\
\D
0]*00$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\0]*00$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
break
;
case
"3"
:
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\\D0A-Za-z]*[A-Za-z0-9]*[^0]0$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
...
...
@@ -2360,7 +2360,7 @@ public class CommonServiceImpl implements ICommonService {
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\\D0]*000$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
break
;
case
"2"
:
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\
\D
0]*00$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\0]*00$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
break
;
case
"3"
:
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\\D0A-Za-z]*[A-Za-z0-9]*[^0]0$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
...
...
@@ -2378,7 +2378,7 @@ public class CommonServiceImpl implements ICommonService {
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\\D0]*000$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
break
;
case
"2"
:
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\
\D
0]*00$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\0]*00$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
break
;
case
"3"
:
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\\D0A-Za-z]*[A-Za-z0-9]*[^0]0$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
...
...
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/EquipClaimServiceImpl.java
View file @
99e7f983
...
...
@@ -659,6 +659,7 @@ public class EquipClaimServiceImpl {
*/
public
void
addEquipResume
(
JSONObject
equipInfo
,
BusinessTypeEnum
businessTypeEnum
,
JgUseRegistration
useRegistration
)
{
String
record
=
(
String
)
equipInfo
.
get
(
RECORD
);
String
routePath
=
useRegistrationService
.
buildTaskModel
(
useRegistration
,
equipInfo
,
getSelectedOrgInfo
());
JgResumeInfoDto
resumeInfoDto
=
JgResumeInfoDto
.
builder
()
.
applyNo
(
null
)
.
businessType
(
businessTypeEnum
.
getName
())
...
...
@@ -668,7 +669,7 @@ public class EquipClaimServiceImpl {
.
approvalUnitCode
(
useRegistration
.
getReceiveOrgName
())
.
status
(
"正常"
)
.
changeContent
(
businessTypeEnum
.
getName
()
+
"业务"
)
.
routePath
(
null
)
.
routePath
(
routePath
)
.
build
();
JgResumeInfo
resumeInfo
=
new
JgResumeInfo
();
BeanUtils
.
copyProperties
(
resumeInfoDto
,
resumeInfo
);
...
...
@@ -681,8 +682,14 @@ public class EquipClaimServiceImpl {
public
void
checkParams
(
LinkedHashMap
equipInfo
)
{
String
dataSource
=
(
String
)
equipInfo
.
get
(
DATA_SOURCE
);
String
record
=
(
String
)
equipInfo
.
get
(
RECORD
);
String
useRegistrationCode
=
Optional
.
ofNullable
(
equipInfo
.
get
(
"useRegistrationCode"
))
.
map
(
String:
:
valueOf
)
.
map
(
String:
:
trim
)
.
orElse
(
null
);
// 使用登记证校验
if
(!
ObjectUtils
.
isEmpty
(
useRegistrationCode
))
{
jgRegisterInfoService
.
checkUseRegistrationCode
(
equipInfo
);
}
// 设备代码 字段的唯一性校验
jgRegisterInfoService
.
checkEquCodeUniqueness
(
equipInfo
);
// 车用气瓶业务里面的 产品编号 校验唯一性(产品编号在车用气瓶范围内全局唯一)
...
...
@@ -720,6 +727,10 @@ public class EquipClaimServiceImpl {
useInfo
.
setUseUnitCreditCode
(
company
.
getCompanyCode
());
useInfo
.
setUseUnitName
(
company
.
getCompanyName
());
useInfo
.
setSequenceNbr
(
Objects
.
toString
(
equipInfo
.
get
(
"USEINFO_SEQ"
)));
if
(
ObjectUtils
.
isEmpty
(
useInfo
.
getEquState
())
&&
isIntoManagement
)
{
// 有证纳管状态 没填写 给默认值
useInfo
.
setEquState
(
EquimentEnum
.
ZAIYONG
.
getCode
().
toString
());
}
idxBizJgUseInfoService
.
saveOrUpdateData
(
useInfo
);
// 设计信息
IdxBizJgDesignInfo
designInfo
=
JSON
.
parseObject
(
toJSONString
(
equipInfo
),
IdxBizJgDesignInfo
.
class
);
...
...
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