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
cc5ed809
Commit
cc5ed809
authored
Mar 22, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):历史数据处理=》使用登记流程中的单子添加安装信息和维保信息;附件转化统一处理
parent
75161075
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+27
-0
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+0
-0
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 @
cc5ed809
...
...
@@ -1620,4 +1620,30 @@ public class CommonServiceImpl implements ICommonService {
return
commonMapper
.
countEquipInUseTimesForDel
(
record
);
}
/**
* string转化为jsonObject
* @param obj jsonobject/map对象
* @param jsonFields 要转化的字段数据
*/
public
void
convertStringToJsonobject
(
Object
obj
,
String
[]
jsonFields
)
{
if
(
obj
instanceof
JSONObject
)
{
JSONObject
jsonObject
=
(
JSONObject
)
obj
;
for
(
String
field
:
jsonFields
)
{
if
(
jsonObject
.
get
(
field
)
!=
null
&&
jsonObject
.
get
(
field
)
instanceof
String
)
{
jsonObject
.
put
(
field
,
JSON
.
parse
(
jsonObject
.
get
(
field
).
toString
()));
}
}
}
else
if
(
obj
instanceof
Map
)
{
Map
<
String
,
Object
>
map
=
(
Map
<
String
,
Object
>)
obj
;
for
(
String
field
:
jsonFields
)
{
if
(
map
.
containsKey
(
field
)
&&
map
.
get
(
field
)
instanceof
String
)
{
map
.
put
(
field
,
JSON
.
parse
(
map
.
get
(
field
).
toString
()));
}
}
}
else
{
// 处理其他类型
System
.
out
.
println
(
"Unsupported Object Type"
);
}
}
}
\ No newline at end of file
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/JgUseRegistrationServiceImpl.java
View file @
cc5ed809
This diff is collapsed.
Click to expand it.
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