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
87407767
Commit
87407767
authored
Jan 12, 2026
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg): 解决设备认领服务中的日期转换和组织分支信息处理问题
- 添加CREATE_DATE为空时使用REC_DATE的逻辑处理 - 实现对属地监管部门代码和名称的解析和设置 - 确保日期转换前进行空值验证以避免转换错误
parent
362baaf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
EquipClaimServiceImpl.java
...oot/module/jg/biz/service/impl/EquipClaimServiceImpl.java
+8
-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/EquipClaimServiceImpl.java
View file @
87407767
...
@@ -207,8 +207,13 @@ public class EquipClaimServiceImpl {
...
@@ -207,8 +207,13 @@ public class EquipClaimServiceImpl {
sourceAsJSON
.
put
(
EQU_STATE
,
EquimentEnum
.
getName
.
get
(
Integer
.
valueOf
(
sourceAsJSON
.
get
(
EQU_STATE
).
toString
())));
sourceAsJSON
.
put
(
EQU_STATE
,
EquimentEnum
.
getName
.
get
(
Integer
.
valueOf
(
sourceAsJSON
.
get
(
EQU_STATE
).
toString
())));
}
}
sourceAsJSON
.
put
(
record
,
sourceAsJSON
.
get
(
SEQUENCE_NBR
));
sourceAsJSON
.
put
(
record
,
sourceAsJSON
.
get
(
SEQUENCE_NBR
));
// 录入时间如果CREATE_DATE为空则使用REC_DATE
// 日期转化
// 日期转化
sourceAsJSON
.
put
(
CREATE_DATE
,
Instant
.
ofEpochMilli
(
Long
.
parseLong
(
sourceAsJSON
.
getString
(
CREATE_DATE
))).
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
());
if
(
ValidationUtil
.
isEmpty
(
sourceAsJSON
.
get
(
CREATE_DATE
)))
{
sourceAsJSON
.
put
(
CREATE_DATE
,
Instant
.
ofEpochMilli
(
Long
.
parseLong
(
sourceAsJSON
.
getString
(
"REC_DATE"
))).
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
());
}
else
{
sourceAsJSON
.
put
(
CREATE_DATE
,
Instant
.
ofEpochMilli
(
Long
.
parseLong
(
sourceAsJSON
.
getString
(
CREATE_DATE
))).
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
());
}
list
.
add
(
sourceAsJSON
);
list
.
add
(
sourceAsJSON
);
}
}
if
(
response
.
getInternalResponse
().
hits
().
getTotalHits
()
!=
null
)
{
if
(
response
.
getInternalResponse
().
hits
().
getTotalHits
()
!=
null
)
{
...
@@ -892,6 +897,8 @@ public class EquipClaimServiceImpl {
...
@@ -892,6 +897,8 @@ public class EquipClaimServiceImpl {
supervisionInfo
.
setRecord
(
record
);
supervisionInfo
.
setRecord
(
record
);
supervisionInfo
.
setRecDate
(
timestamp
);
supervisionInfo
.
setRecDate
(
timestamp
);
supervisionInfo
.
setSequenceNbr
(
Objects
.
toString
(
equipInfo
.
get
(
"SUPERVISIONINFO_SEQ"
),
null
));
supervisionInfo
.
setSequenceNbr
(
Objects
.
toString
(
equipInfo
.
get
(
"SUPERVISIONINFO_SEQ"
),
null
));
supervisionInfo
.
setOrgBranchCode
(
Objects
.
toString
(
equipInfo
.
get
(
"orgBranchCode"
),
""
).
split
(
"_"
)[
0
]);
supervisionInfo
.
setOrgBranchName
(
Objects
.
toString
(
equipInfo
.
get
(
"orgBranchCode"
),
""
).
split
(
"_"
)[
1
]);
iIdxBizJgSupervisionInfoService
.
saveOrUpdateData
(
supervisionInfo
);
iIdxBizJgSupervisionInfoService
.
saveOrUpdateData
(
supervisionInfo
);
// 其他信息
// 其他信息
IdxBizJgOtherInfo
otherInfo
=
JSON
.
parseObject
(
toJSONString
(
equipInfo
),
IdxBizJgOtherInfo
.
class
);
IdxBizJgOtherInfo
otherInfo
=
JSON
.
parseObject
(
toJSONString
(
equipInfo
),
IdxBizJgOtherInfo
.
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