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
fad8996f
Commit
fad8996f
authored
Mar 08, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.使用登记修改撤回及一级一撤回时详情显示新的
parent
ea048c5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
11 deletions
+40
-11
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+40
-11
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/JgUseRegistrationServiceImpl.java
View file @
fad8996f
...
@@ -697,41 +697,41 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -697,41 +697,41 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
this
.
update
(
jgUseRegistration
,
lambda
);
this
.
update
(
jgUseRegistration
,
lambda
);
}
}
public
Map
<
String
,
Object
>
getDetail
(
String
i
d
,
Long
sequenceNbr
)
{
public
Map
<
String
,
Object
>
getDetail
(
String
recor
d
,
Long
sequenceNbr
)
{
if
(!
ObjectUtils
.
isEmpty
(
sequenceNbr
))
{
if
(!
ObjectUtils
.
isEmpty
(
sequenceNbr
))
{
JgUseRegistration
jgUseRegistration
=
this
.
getBaseMapper
().
selectById
(
sequenceNbr
);
JgUseRegistration
jgUseRegistration
=
this
.
getBaseMapper
().
selectById
(
sequenceNbr
);
LambdaQueryWrapper
<
JgRegistrationHistory
>
lambda
=
new
QueryWrapper
<
JgRegistrationHistory
>().
lambda
();
LambdaQueryWrapper
<
JgRegistrationHistory
>
lambda
=
new
QueryWrapper
<
JgRegistrationHistory
>().
lambda
();
lambda
.
eq
(
JgRegistrationHistory:
:
getCurrentDocumentId
,
sequenceNbr
);
lambda
.
eq
(
JgRegistrationHistory:
:
getCurrentDocumentId
,
sequenceNbr
);
// lambda.eq(JgRegistrationHistory::getEquId, id);
JgRegistrationHistory
jgRegistrationHistory
=
jgRegistrationHistoryService
.
getBaseMapper
().
selectOne
(
lambda
);
JgRegistrationHistory
jgRegistrationHistory
=
jgRegistrationHistoryService
.
getBaseMapper
().
selectOne
(
lambda
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
jgRegistrationHistory
.
getChangeData
());
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
jgRegistrationHistory
.
getChangeData
());
// 需求:当申请信息由于设备信息错误被驳回及撤回时显示的数据还是旧设备数据,导致该申请单无法使用
// 解决方案:在当前状态为:使用单位已撤回、一级受理已驳回时显示最新的:设备基本信息、制造信息、设计信息
this
.
fillHistoryDataWithNewEquip
(
jsonObject
,
jgUseRegistration
,
record
);
jsonObject
.
put
(
"receiveOrgCode"
,
jgUseRegistration
.
getReceiveCompanyCode
()
+
"_"
+
jgUseRegistration
.
getReceiveOrgName
());
jsonObject
.
put
(
"receiveOrgCode"
,
jgUseRegistration
.
getReceiveCompanyCode
()
+
"_"
+
jgUseRegistration
.
getReceiveOrgName
());
jsonObject
.
put
(
"status"
,
jgUseRegistration
.
getStatus
());
jsonObject
.
put
(
"status"
,
jgUseRegistration
.
getStatus
());
jsonObject
.
put
(
"applyNo"
,
jgUseRegistration
.
getApplyNo
());
jsonObject
.
put
(
"applyNo"
,
jgUseRegistration
.
getApplyNo
());
jsonObject
.
remove
(
"submit"
);
jsonObject
.
remove
(
"submit"
);
jsonObject
.
remove
(
"instanceId"
);
jsonObject
.
remove
(
"instanceId"
);
// 补充"车牌号"字段
// 补充"车牌号"字段
JgUseRegistration
jgUseRegistration1
=
this
.
getBaseMapper
().
selectById
(
sequenceNbr
);
jsonObject
.
put
(
"licensePlateNum"
,
jgUseRegistration
.
getLicensePlateNum
());
jsonObject
.
put
(
"licensePlateNum"
,
jgUseRegistration1
.
getLicensePlateNum
());
return
jsonObject
;
return
jsonObject
;
}
}
// 基本信息 + 制造信息
// 基本信息 + 制造信息
Map
<
String
,
Object
>
detail
=
this
.
baseMapper
.
getDetail
(
i
d
);
Map
<
String
,
Object
>
detail
=
this
.
baseMapper
.
getDetail
(
recor
d
);
// 检验信息
// 检验信息
Map
<
String
,
Object
>
inspectDetail
=
this
.
baseMapper
.
getInspectDetail
(
i
d
);
Map
<
String
,
Object
>
inspectDetail
=
this
.
baseMapper
.
getInspectDetail
(
recor
d
);
// 使用信息
// 使用信息
Map
<
String
,
Object
>
useDetail
=
this
.
baseMapper
.
getUseDetail
(
i
d
);
Map
<
String
,
Object
>
useDetail
=
this
.
baseMapper
.
getUseDetail
(
recor
d
);
// 设计信息
// 设计信息
Map
<
String
,
Object
>
de
gDestail
=
this
.
baseMapper
.
getDesDetail
(
i
d
);
Map
<
String
,
Object
>
de
sDetail
=
this
.
baseMapper
.
getDesDetail
(
recor
d
);
if
(!
ObjectUtils
.
isEmpty
(
inspectDetail
))
{
if
(!
ObjectUtils
.
isEmpty
(
inspectDetail
))
{
detail
.
putAll
(
inspectDetail
);
detail
.
putAll
(
inspectDetail
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
useDetail
))
{
if
(!
ObjectUtils
.
isEmpty
(
useDetail
))
{
detail
.
putAll
(
useDetail
);
detail
.
putAll
(
useDetail
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
de
gDes
tail
))
{
if
(!
ObjectUtils
.
isEmpty
(
de
sDe
tail
))
{
detail
.
putAll
(
de
gDes
tail
);
detail
.
putAll
(
de
sDe
tail
);
}
}
detail
.
remove
(
"safetyManager"
);
detail
.
remove
(
"safetyManager"
);
detail
.
put
(
"proDuctPhoto"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"proDuctPhoto"
))));
detail
.
put
(
"proDuctPhoto"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"proDuctPhoto"
))));
...
@@ -747,6 +747,35 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -747,6 +747,35 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
}
}
/**
/**
* 填充设备最新的数据至历史json
* @param jsonObject 历史json
* @param jgUseRegistration 使用信息
* @param record 设备唯一标识
*/
private
void
fillHistoryDataWithNewEquip
(
JSONObject
jsonObject
,
JgUseRegistration
jgUseRegistration
,
String
record
)
{
if
(
jgUseRegistration
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
USE_SUBMIT
.
getReject
())
||
jgUseRegistration
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
USE_SUBMIT
.
getRollBack
())){
// 基本信息 + 制造信息
Map
<
String
,
Object
>
detail
=
this
.
baseMapper
.
getDetail
(
record
);
// 设计信息
Map
<
String
,
Object
>
desDetail
=
this
.
baseMapper
.
getDesDetail
(
record
);
if
(!
ObjectUtils
.
isEmpty
(
desDetail
))
{
detail
.
putAll
(
desDetail
);
}
// 将字符串数据转为对象
detail
.
put
(
"proDuctPhoto"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"proDuctPhoto"
))));
detail
.
put
(
"factoryStandard"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"factoryStandard"
))));
detail
.
put
(
"productQualityYieldProve"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"productQualityYieldProve"
))));
detail
.
put
(
"insUseMaintainExplain"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"insUseMaintainExplain"
))));
detail
.
put
(
"designStandard"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"designStandard"
))));
detail
.
put
(
"designDoc"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"designDoc"
))));
// 格式化必要字段,当前页面的字段,来源his
detail
.
put
(
"longitudeLatitude"
,
JSON
.
parse
(
String
.
valueOf
(
jsonObject
.
get
(
"longitudeLatitude"
))));
jsonObject
.
putAll
(
detail
);
}
}
/**
* 参数为监管码
* 参数为监管码
*
*
* @param supervisoryCode
* @param supervisoryCode
...
...
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