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
57ad59c6
Commit
57ad59c6
authored
Dec 02, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.移转变更不再更新监管码
2.ymt码生成接口接收参数监管码,有则不再重新生成
parent
04b3b1a2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
9 deletions
+7
-9
JgChangeRegistrationTransferServiceImpl.java
...service/impl/JgChangeRegistrationTransferServiceImpl.java
+4
-4
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+0
-2
EquipmentCategoryServiceImpl.java
...le/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
+3
-3
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/JgChangeRegistrationTransferServiceImpl.java
View file @
57ad59c6
...
@@ -838,21 +838,21 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
...
@@ -838,21 +838,21 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
.
map
(
s
->
s
.
split
(
"_"
)[
0
])
.
map
(
s
->
s
.
split
(
"_"
)[
0
])
.
orElse
(
""
);
.
orElse
(
""
);
String
isXiXian
=
"0"
.
equals
(
changeData
.
get
(
"transferIsXixian"
))
?
"null"
:
"1"
;
String
isXiXian
=
"0"
.
equals
(
changeData
.
get
(
"transferIsXixian"
))
?
"null"
:
"1"
;
// 移转不需要重新生成监管码,只需要新生成96333码,接口上送supervis
ory
Code则不再生成监管码
// 移转不需要重新生成监管码,只需要新生成96333码,接口上送supervis
e
Code则不再生成监管码
IdxBizJgOtherInfo
otherInfo
=
otherInfoService
.
getOneData
(
record
);
IdxBizJgOtherInfo
otherInfo
=
otherInfoService
.
getOneData
(
record
);
String
supervis
ory
Code
=
otherInfo
.
getSupervisoryCode
();
String
supervis
e
Code
=
otherInfo
.
getSupervisoryCode
();
ImmutableMap
<
String
,
Object
>
map
=
ImmutableMap
.<
String
,
Object
>
builder
()
ImmutableMap
<
String
,
Object
>
map
=
ImmutableMap
.<
String
,
Object
>
builder
()
.
put
(
"cityCode"
,
cityCode
)
.
put
(
"cityCode"
,
cityCode
)
.
put
(
"countyCode"
,
countyCode
)
.
put
(
"countyCode"
,
countyCode
)
.
put
(
"equCategory"
,
equCategoryCode
)
.
put
(
"equCategory"
,
equCategoryCode
)
.
put
(
"isXiXian"
,
isXiXian
)
.
put
(
"isXiXian"
,
isXiXian
)
.
put
(
"superviseCode"
,
supervis
ory
Code
)
.
put
(
"superviseCode"
,
supervis
e
Code
)
.
build
();
.
build
();
Map
<
String
,
Object
>
result
=
tzsServiceFeignClient
.
createCode
(
map
).
getResult
();
Map
<
String
,
Object
>
result
=
tzsServiceFeignClient
.
createCode
(
map
).
getResult
();
return
ImmutableMap
.<
String
,
String
>
builder
()
return
ImmutableMap
.<
String
,
String
>
builder
()
.
put
(
"superviseCode"
,
supervis
ory
Code
)
.
put
(
"superviseCode"
,
supervis
e
Code
)
.
put
(
"code96333"
,
Optional
.
ofNullable
(
result
)
.
put
(
"code96333"
,
Optional
.
ofNullable
(
result
)
.
map
(
r
->
(
String
)
r
.
get
(
"code96333"
))
.
map
(
r
->
(
String
)
r
.
get
(
"code96333"
))
.
orElse
(
""
))
.
orElse
(
""
))
...
...
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/JgInstallationNoticeServiceImpl.java
View file @
57ad59c6
...
@@ -1134,8 +1134,6 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -1134,8 +1134,6 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
ResponseModel
<
String
>
responseModel
=
tzsServiceFeignClient
.
deviceRegistrationCode
(
registrationCode
);
ResponseModel
<
String
>
responseModel
=
tzsServiceFeignClient
.
deviceRegistrationCode
(
registrationCode
);
String
deviceRegistrationCode
=
responseModel
.
getResult
();
String
deviceRegistrationCode
=
responseModel
.
getResult
();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"code96333"
,
tzsJgOtherInfo
.
getCode96333
());
map
.
put
(
"superviseCode"
,
tzsJgOtherInfo
.
getSupervisoryCode
());
map
.
put
(
"cityCode"
,
jgInstallationNotice
.
getCity
());
map
.
put
(
"cityCode"
,
jgInstallationNotice
.
getCity
());
map
.
put
(
"countyCode"
,
jgInstallationNotice
.
getCounty
());
map
.
put
(
"countyCode"
,
jgInstallationNotice
.
getCounty
());
map
.
put
(
"equCategory"
,
idxBizJgRegisterInfo
.
getEquCategory
());
map
.
put
(
"equCategory"
,
idxBizJgRegisterInfo
.
getEquCategory
());
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
57ad59c6
...
@@ -431,12 +431,12 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -431,12 +431,12 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
*/
*/
@Override
@Override
public
Map
<
String
,
String
>
createSupervisorCode
(
Map
<
String
,
Object
>
map
)
{
public
Map
<
String
,
String
>
createSupervisorCode
(
Map
<
String
,
Object
>
map
)
{
String
city
,
county
,
equipCategory
,
isNotXiXian
,
code96333
,
supervis
ion
Code
;
String
city
,
county
,
equipCategory
,
isNotXiXian
,
code96333
,
supervis
e
Code
;
// 获取对应行政区划
// 获取对应行政区划
city
=
String
.
valueOf
(
map
.
get
(
"cityCode"
));
city
=
String
.
valueOf
(
map
.
get
(
"cityCode"
));
county
=
String
.
valueOf
(
map
.
get
(
"countyCode"
));
county
=
String
.
valueOf
(
map
.
get
(
"countyCode"
));
code96333
=
String
.
valueOf
(
map
.
get
(
"code96333"
));
code96333
=
String
.
valueOf
(
map
.
get
(
"code96333"
));
supervis
ionCode
=
String
.
valueOf
(
map
.
get
(
"supervision
Code"
));
supervis
eCode
=
String
.
valueOf
(
map
.
get
(
"supervise
Code"
));
// 获取对应设备分类
// 获取对应设备分类
equipCategory
=
String
.
valueOf
(
map
.
get
(
"equCategory"
));
equipCategory
=
String
.
valueOf
(
map
.
get
(
"equCategory"
));
if
(
"null"
.
equals
(
equipCategory
)
||
"null"
.
equals
(
city
)
||
"null"
.
equals
(
county
))
{
if
(
"null"
.
equals
(
equipCategory
)
||
"null"
.
equals
(
city
)
||
"null"
.
equals
(
county
))
{
...
@@ -444,7 +444,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -444,7 +444,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
}
}
isNotXiXian
=
Optional
.
ofNullable
(
map
.
get
(
"isXiXian"
)).
orElse
(
"0"
).
toString
();
isNotXiXian
=
Optional
.
ofNullable
(
map
.
get
(
"isXiXian"
)).
orElse
(
"0"
).
toString
();
// 生成码
// 生成码
Map
<
String
,
String
>
codeMap
=
creatCode
(
isNotXiXian
,
city
,
county
,
equipCategory
,
code96333
,
supervis
ion
Code
);
Map
<
String
,
String
>
codeMap
=
creatCode
(
isNotXiXian
,
city
,
county
,
equipCategory
,
code96333
,
supervis
e
Code
);
if
(
ObjectUtils
.
isEmpty
(
codeMap
))
{
if
(
ObjectUtils
.
isEmpty
(
codeMap
))
{
throw
new
BadRequest
(
"该请求参数未生成监管码或96333码,请核对参数"
);
throw
new
BadRequest
(
"该请求参数未生成监管码或96333码,请核对参数"
);
}
}
...
...
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