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
4f467c0e
Commit
4f467c0e
authored
Jul 29, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_tzs_register_to_0715' of…
Merge branch 'develop_tzs_register_to_0715' of
http://36.40.66.175:5000/moa/amos-boot-biz
into develop_tzs_register_to_0715
parents
09efbd22
f2336627
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
120 additions
and
57 deletions
+120
-57
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+9
-11
JgChangeRegistrationTransferServiceImpl.java
...service/impl/JgChangeRegistrationTransferServiceImpl.java
+2
-2
JgChangeVehicleRegistrationUnitServiceImpl.java
...vice/impl/JgChangeVehicleRegistrationUnitServiceImpl.java
+12
-12
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+35
-32
IEquipmentCategoryService.java
...oot/module/ymt/api/service/IEquipmentCategoryService.java
+1
-0
EquipmentCategoryController.java
...odule/ymt/biz/controller/EquipmentCategoryController.java
+7
-0
EquipmentCategoryServiceImpl.java
...le/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
+54
-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 @
4f467c0e
...
...
@@ -1750,7 +1750,7 @@ public class CommonServiceImpl implements ICommonService {
* @param supervisoryCompanyCode 接收机构单位代码
* @return 使用登记编号
*/
public
String
generateRegistrationCode
(
String
equipId
,
String
supervisoryCode
,
String
supervisoryCompanyCode
)
{
public
String
generateRegistrationCode
(
String
equipId
,
String
supervisoryCode
,
String
supervisoryCompanyCode
,
boolean
isUnit
)
{
// 根据设备id查询设备类别、品种
LambdaQueryWrapper
<
RegistrationInfo
>
equipWrapper
=
new
LambdaQueryWrapper
<>();
equipWrapper
.
eq
(
RegistrationInfo:
:
getRecord
,
equipId
);
...
...
@@ -1765,16 +1765,14 @@ public class CommonServiceImpl implements ICommonService {
EquipTypeEnum
.
getMessage
(
equCategory
.
substring
(
0
,
1
));
// 设备代码中间两位
String
equipType2MidDigits
;
equipType2MidDigits
=
equCategory
.
substring
(
1
,
3
);
//if (ValidationUtil.isEmpty(equDefine)) {
// 没有设备品种的设备取设备类别代码中间两位
//}
//else {
// // 设备品种代码中间两位
// equipType2MidDigits = equDefine.substring(1, 3);
//}
String
equipType2MidDigits
=
equCategory
.
substring
(
1
,
3
);
//台套还是取品种的中间两位
if
(!
isUnit
)
{
if
(!
ValidationUtil
.
isEmpty
(
equDefine
))
{
equipType2MidDigits
=
equDefine
.
substring
(
1
,
3
);
}
}
// 登记机关代号
String
city
=
supervisoryCode
.
substring
(
0
,
1
);
// 西咸新区监管码对应的设备使用登记证还按咸阳(D)生成
...
...
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 @
4f467c0e
...
...
@@ -920,7 +920,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
Map
<
String
,
String
>
supervisoryCodeMap
=
this
.
createSupervisoryCode
(
historyData
);
supervisoryCode
=
supervisoryCodeMap
.
get
(
"superviseCode"
);
code96333
=
supervisoryCodeMap
.
get
(
"code96333"
);
useRegistrationCode
.
set
(
commonServiceImpl
.
generateRegistrationCode
(
device
.
getEquId
(),
supervisoryCode
,
transfer
.
getReceiveCompanyCode
()));
useRegistrationCode
.
set
(
commonServiceImpl
.
generateRegistrationCode
(
device
.
getEquId
(),
supervisoryCode
,
transfer
.
getReceiveCompanyCode
()
,
false
));
useRegistrationCodeList
.
add
(
String
.
valueOf
(
useRegistrationCode
));
isUpdateRegistrationCode
.
set
(
true
);
}
else
{
...
...
@@ -934,7 +934,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
Map
<
String
,
String
>
supervisoryCodeMap
=
this
.
createSupervisoryCode
(
historyData
);
supervisoryCode
=
supervisoryCodeMap
.
get
(
"superviseCode"
);
code96333
=
supervisoryCodeMap
.
get
(
"code96333"
);
useRegistrationCode
.
set
(
commonServiceImpl
.
generateRegistrationCode
(
device
.
getEquId
(),
supervisoryCode
,
transfer
.
getReceiveCompanyCode
()));
useRegistrationCode
.
set
(
commonServiceImpl
.
generateRegistrationCode
(
device
.
getEquId
(),
supervisoryCode
,
transfer
.
getReceiveCompanyCode
()
,
false
));
useRegistrationCodeList
.
add
(
String
.
valueOf
(
useRegistrationCode
));
isUpdateRegistrationCode
.
set
(
true
);
}
...
...
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/JgChangeVehicleRegistrationUnitServiceImpl.java
View file @
4f467c0e
...
...
@@ -458,18 +458,6 @@ public class JgChangeVehicleRegistrationUnitServiceImpl extends BaseService<JgCh
jgCertificateChangeRecord
.
setEquCategory
(
manage
.
getEquCategory
());
jgCertificateChangeRecord
.
setReceiveCompanyCode
(
jgChangeVehicleRegistrationUnit
.
getReceiveCompanyCode
());
jgCertificateChangeRecord
.
setRoutePath
(
taskV2Model
.
getRoutePath
());
// 组装设备流水
dataList
.
forEach
(
item
->
{
JSONObject
object
=
JSONObject
.
parseObject
(
JSON
.
toJSONString
(
item
));
JgCertificateChangeRecordEq
jgCertificateChangeRecordEq
=
new
JgCertificateChangeRecordEq
();
jgCertificateChangeRecordEq
.
setEquId
(
object
.
get
(
"record"
).
toString
());
jgCertificateChangeRecordEq
.
setChangeRecordId
(
jgCertificateChangeRecord
.
getSequenceNbr
().
toString
());
jgCertificateChangeRecordEq
.
setProductCode
(
object
.
get
(
"factoryNum"
).
toString
());
jgCertificateChangeRecordEqs
.
add
(
jgCertificateChangeRecordEq
);
});
// 保存设备流水信息
jgCertificateChangeRecordEqService
.
saveBatch
(
jgCertificateChangeRecordEqs
);
List
<
String
>
collect
=
jgCertificateChangeRecordEqs
.
stream
().
map
(
JgCertificateChangeRecordEq:
:
getEquId
).
collect
(
Collectors
.
toList
());
if
(
"0"
.
equals
(
jgChangeVehicleRegistrationUnit
.
getChangeType
())
&&
!
ObjectUtils
.
isEmpty
(
collect
))
{
// 区外变更
...
...
@@ -509,6 +497,18 @@ public class JgChangeVehicleRegistrationUnitServiceImpl extends BaseService<JgCh
// 保存证流水信息
jgCertificateChangeRecord
.
setUseRegistrationCode
(
manage
.
getUseRegistrationCode
());
jgCertificateChangeRecordService
.
save
(
jgCertificateChangeRecord
);
// 组装设备流水
dataList
.
forEach
(
item
->
{
JSONObject
object
=
JSONObject
.
parseObject
(
JSON
.
toJSONString
(
item
));
JgCertificateChangeRecordEq
jgCertificateChangeRecordEq
=
new
JgCertificateChangeRecordEq
();
jgCertificateChangeRecordEq
.
setEquId
(
object
.
get
(
"record"
).
toString
());
jgCertificateChangeRecordEq
.
setChangeRecordId
(
jgCertificateChangeRecord
.
getSequenceNbr
().
toString
());
jgCertificateChangeRecordEq
.
setProductCode
(
object
.
get
(
"factoryNum"
).
toString
());
jgCertificateChangeRecordEqs
.
add
(
jgCertificateChangeRecordEq
);
});
// 保存设备流水信息
jgCertificateChangeRecordEqService
.
saveBatch
(
jgCertificateChangeRecordEqs
);
}
/**
...
...
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 @
4f467c0e
...
...
@@ -674,10 +674,11 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
.
map
(
v
->
(
String
)
v
.
get
(
"record"
))
.
collect
(
Collectors
.
toList
())
);
if
(!
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
map
.
get
(
"EQU_CATEGORY_CODE"
))
&&
inspectionDetectionInfoList
.
stream
().
anyMatch
(
info
->
ObjectUtils
.
isEmpty
(
info
)
||
ObjectUtils
.
isEmpty
(
info
.
getInspectType
())
||
if
(!
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
map
.
get
(
"EQU_CATEGORY_CODE"
))
&&
(
inspectionDetectionInfoList
.
isEmpty
()
||
inspectionDetectionInfoList
.
stream
().
anyMatch
(
info
->
ObjectUtils
.
isEmpty
(
info
)
||
ObjectUtils
.
isEmpty
(
info
.
getInspectType
())
||
ObjectUtils
.
isEmpty
(
info
.
getInspectConclusion
())
||
ObjectUtils
.
isEmpty
(
info
.
getInspectOrgCode
())
||
ObjectUtils
.
isEmpty
(
info
.
getInspectOrgName
())))
{
ObjectUtils
.
isEmpty
(
info
.
getInspectOrgName
())))
)
{
throw
new
BadRequest
(
"请补充设备检验检测信息后提交!"
);
}
...
...
@@ -1203,7 +1204,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
if
(!
ObjectUtils
.
isEmpty
(
jgUseRegistration
.
getSupervisoryCode
()))
{
if
(
"unit"
.
equals
(
jgUseRegistration
.
getManageType
()))
{
if
((
Boolean
)
mapData
.
get
(
"isFirstEquip"
))
{
String
code
=
flag
?
useRegistrationCode
:
commonServiceImpl
.
generateRegistrationCode
(
String
.
valueOf
(
mapData
.
get
(
"equipId"
)),
jgUseRegistration
.
getSupervisoryCode
(),
jgUseRegistration
.
getReceiveCompanyCode
());
String
code
=
flag
?
useRegistrationCode
:
commonServiceImpl
.
generateRegistrationCode
(
String
.
valueOf
(
mapData
.
get
(
"equipId"
)),
jgUseRegistration
.
getSupervisoryCode
(),
jgUseRegistration
.
getReceiveCompanyCode
(),
true
);
jgUseRegistration
.
setUseRegistrationCode
(
code
);
jgUseRegistration
.
setAuditPassDate
(
new
Date
());
registerInfo
.
setUseOrgCode
(
code
);
...
...
@@ -1223,7 +1225,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
idxBizJgRegisterInfoService
.
update
(
lambda
);
}
}
else
{
String
code
=
commonServiceImpl
.
generateRegistrationCode
(
String
.
valueOf
(
mapData
.
get
(
"equipId"
)),
jgUseRegistration
.
getSupervisoryCode
(),
jgUseRegistration
.
getReceiveCompanyCode
());
String
code
=
commonServiceImpl
.
generateRegistrationCode
(
String
.
valueOf
(
mapData
.
get
(
"equipId"
)),
jgUseRegistration
.
getSupervisoryCode
(),
jgUseRegistration
.
getReceiveCompanyCode
()
,
false
);
jgUseRegistration
.
setUseRegistrationCode
(
code
);
jgUseRegistration
.
setAuditPassDate
(
new
Date
());
registerInfo
.
setUseOrgCode
(
code
);
...
...
@@ -2024,36 +2026,37 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
* @return
*/
private
List
<
CompletableFuture
<
byte
[]>>
pressurePipeDataPreparation
(
int
page
,
JSONObject
jsonObject
,
int
size
,
double
total
,
JSONArray
equipmentLists
,
String
wordPath
,
String
filePrefix
,
AgencyUserModel
result
)
{
Map
<
String
,
Object
>
exportParamsMap
=
new
HashMap
<>();
exportParamsMap
.
put
(
"page"
,
page
);
LocalDate
currentDate
=
LocalDate
.
now
();
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
);
String
formattedDate
=
currentDate
.
format
(
formatter
);
exportParamsMap
.
put
(
"printDate"
,
formattedDate
);
// 使用单位
exportParamsMap
.
put
(
"useUnitName"
,
jsonObject
.
get
(
"useUnitName"
));
// 使用单位地址
String
useUnitCreditCode
=
String
.
valueOf
(
jsonObject
.
get
(
"useUnitCreditCode"
));
CompanyModel
companyModel
=
Privilege
.
companyClient
.
queryByCompanyCode
(
useUnitCreditCode
).
getResult
();
exportParamsMap
.
put
(
"fullAddress"
,
companyModel
.
getAddress
());
// 工程(装置)名称 取第一个设备的技术参数”工程装置名称“
JSONObject
eqJSON
=
(
JSONObject
)
equipmentLists
.
get
(
0
);
String
eqId
=
!
ValidationUtil
.
isEmpty
(
eqJSON
)
?
String
.
valueOf
(
eqJSON
.
get
(
"record"
))
:
""
;
IdxBizJgUseInfo
idxBizJgUseInfo
=
useInfoMapper
.
selectOne
(
new
LambdaQueryWrapper
<
IdxBizJgUseInfo
>().
eq
(
IdxBizJgUseInfo:
:
getRecord
,
eqId
));
exportParamsMap
.
put
(
"nameOfProjectDevice"
,
ValidationUtil
.
isEmpty
(
idxBizJgUseInfo
)
?
""
:
idxBizJgUseInfo
.
getProjectContraption
());
// 安全管理部门
exportParamsMap
.
put
(
"orgBranchName"
,
String
.
valueOf
(
jsonObject
.
get
(
"orgBranchCode"
)).
split
(
"_"
)[
1
]);
// 安全管理员
exportParamsMap
.
put
(
"safetyManager"
,
String
.
valueOf
(
jsonObject
.
get
(
"safetyManager"
)).
split
(
"_"
)[
1
]);
// 联系电话
exportParamsMap
.
put
(
"phone"
,
ValidationUtil
.
isEmpty
(
result
.
getMobile
())
?
""
:
result
.
getMobile
());
// 经办人
exportParamsMap
.
put
(
"agent"
,
ValidationUtil
.
isEmpty
(
result
.
getRealName
())
?
""
:
result
.
getRealName
());
// 电子邮箱
exportParamsMap
.
put
(
"email"
,
ValidationUtil
.
isEmpty
(
result
.
getEmail
())
?
""
:
result
.
getEmail
());
List
<
CompletableFuture
<
byte
[]>>
futures
=
IntStream
.
rangeClosed
(
1
,
page
)
.
mapToObj
(
current
->
CompletableFuture
.
supplyAsync
(()
->
{
Map
<
String
,
Object
>
exportParamsMap
=
new
HashMap
<>();
exportParamsMap
.
put
(
"current"
,
current
);
exportParamsMap
.
put
(
"page"
,
page
);
LocalDate
currentDate
=
LocalDate
.
now
();
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
);
String
formattedDate
=
currentDate
.
format
(
formatter
);
exportParamsMap
.
put
(
"printDate"
,
formattedDate
);
// 使用单位
exportParamsMap
.
put
(
"useUnitName"
,
jsonObject
.
get
(
"useUnitName"
));
// 使用单位地址
String
useUnitCreditCode
=
String
.
valueOf
(
jsonObject
.
get
(
"useUnitCreditCode"
));
CompanyModel
companyModel
=
Privilege
.
companyClient
.
queryByCompanyCode
(
useUnitCreditCode
).
getResult
();
exportParamsMap
.
put
(
"fullAddress"
,
companyModel
.
getAddress
());
// 工程(装置)名称 取第一个设备的技术参数”工程装置名称“
JSONObject
eqJSON
=
(
JSONObject
)
equipmentLists
.
get
(
0
);
String
eqId
=
!
ValidationUtil
.
isEmpty
(
eqJSON
)
?
String
.
valueOf
(
eqJSON
.
get
(
"record"
))
:
""
;
IdxBizJgUseInfo
idxBizJgUseInfo
=
useInfoMapper
.
selectOne
(
new
LambdaQueryWrapper
<
IdxBizJgUseInfo
>().
eq
(
IdxBizJgUseInfo:
:
getRecord
,
eqId
));
exportParamsMap
.
put
(
"nameOfProjectDevice"
,
ValidationUtil
.
isEmpty
(
idxBizJgUseInfo
)
?
""
:
idxBizJgUseInfo
.
getProjectContraption
());
// 安全管理部门
exportParamsMap
.
put
(
"orgBranchName"
,
String
.
valueOf
(
jsonObject
.
get
(
"orgBranchCode"
)).
split
(
"_"
)[
1
]);
// 安全管理员
exportParamsMap
.
put
(
"safetyManager"
,
String
.
valueOf
(
jsonObject
.
get
(
"safetyManager"
)).
split
(
"_"
)[
1
]);
// 联系电话
exportParamsMap
.
put
(
"phone"
,
ValidationUtil
.
isEmpty
(
result
.
getMobile
())
?
""
:
result
.
getMobile
());
// 经办人
exportParamsMap
.
put
(
"agent"
,
ValidationUtil
.
isEmpty
(
result
.
getRealName
())
?
""
:
result
.
getRealName
());
// 电子邮箱
exportParamsMap
.
put
(
"email"
,
ValidationUtil
.
isEmpty
(
result
.
getEmail
())
?
""
:
result
.
getEmail
());
// 数据分页
int
start
=
(
current
-
1
)
*
size
;
int
end
=
((
current
-
1
)
*
size
+
size
)
<
total
?
(
current
-
1
)
*
size
+
size
:
(
int
)
total
;
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/service/IEquipmentCategoryService.java
View file @
4f467c0e
...
...
@@ -34,6 +34,7 @@ public interface IEquipmentCategoryService {
List
<
String
>
updateOtherInfo
(
Map
<
String
,
Object
>
map
);
Map
<
String
,
Map
<
String
,
Object
>>
getFormRecordById
(
Map
<
String
,
Object
>
map
);
Map
<
String
,
Object
>
getFormRecordByIdMap
(
Map
<
String
,
Object
>
map
);
void
checkEsData
(
String
id
);
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/controller/EquipmentCategoryController.java
View file @
4f467c0e
...
...
@@ -288,6 +288,13 @@ public class EquipmentCategoryController extends BaseController {
return
ResponseHelper
.
buildResponse
(
equipmentCategoryService
.
getFormRecordById
(
map
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/getFormRecordById/map"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"表格查询详情"
,
notes
=
"表格查询详情"
)
public
ResponseModel
<
Object
>
getFormRecordByIdMap
(
@RequestParam
Map
<
String
,
Object
>
map
)
{
return
ResponseHelper
.
buildResponse
(
equipmentCategoryService
.
getFormRecordByIdMap
(
map
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/checkCode"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"校验使用登记证编号、设备代码、96333码重复"
,
notes
=
"校验使用登记证编号、设备代码、96333码重复"
)
...
...
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 @
4f467c0e
...
...
@@ -909,6 +909,60 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
return
result
;
}
@Override
public
Map
<
String
,
Object
>
getFormRecordByIdMap
(
Map
<
String
,
Object
>
map
)
{
// ResponseModel<Map<String, Map<String, Object>>> responseModel = idxFeignService.getFormRecordById(map);
// Map<String, Map<String, Object>> result = responseModel.getResult();
String
alias
=
String
.
valueOf
(
map
.
get
(
"alias"
));
if
(
ObjectUtils
.
isEmpty
(
alias
))
{
return
new
HashMap
<>();
}
EquipmentTypeEnum
equipmentMessage
=
EquipmentTypeEnum
.
getEnumByCode
(
alias
);
if
(
equipmentMessage
==
null
&&
ObjectUtils
.
isEmpty
(
equipmentMessage
))
{
return
new
HashMap
<>();
}
HashMap
<
String
,
Map
<
String
,
Object
>>
result
=
new
HashMap
<>();
// 使用信息
Map
<
String
,
Object
>
useInfo
=
getUseInfo
(
map
);
result
.
put
(
equipmentMessage
.
getUseInfo
(),
useInfo
);
// 设计信息
Map
<
String
,
Object
>
desInfo
=
getDesInfo
(
map
);
result
.
put
(
equipmentMessage
.
getDesInfo
(),
desInfo
);
// 监督管理信息
Map
<
String
,
Object
>
supInfo
=
getSupInfo
(
map
);
if
(
"1"
.
equals
(
useInfo
.
get
(
"IS_NOT_XIXIAN"
)))
{
supInfo
.
put
(
"CITY"
,
"咸阳"
);
}
else
{
supInfo
.
put
(
"CITY"
,
useInfo
.
get
(
"CITY_NAME"
));
}
result
.
put
(
equipmentMessage
.
getSupInfo
(),
supInfo
);
// 施工信息
Map
<
String
,
Object
>
comInfo
=
getComInfo
(
map
);
result
.
put
(
equipmentMessage
.
getComInfo
(),
comInfo
);
// 维保信息(只有电梯有)
if
(!
ObjectUtils
.
isEmpty
(
map
)
&&
EquipmentTypeEnum
.
DT
.
getCode
().
equals
(
alias
))
{
Map
<
String
,
Object
>
mainInfo
=
getMainInfo
(
map
);
result
.
put
(
equipmentMessage
.
getMainInfo
(),
mainInfo
);
}
// 检验检测信息
Map
<
String
,
Object
>
insInfo
=
getInsInfo
(
map
);
result
.
put
(
equipmentMessage
.
getInsInfo
(),
insInfo
);
// 注册信息
Map
<
String
,
Object
>
jriInfo
=
getJriInfo
(
map
,
equipmentMessage
);
result
.
put
(
equipmentMessage
.
getJriInfo
(),
jriInfo
);
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
COPY_KEY
)))
{
result
.
get
(
EquipmentTypeEnum
.
DT
.
getSupInfo
()).
remove
(
"CLAIM_STATUS"
);
result
.
get
(
EquipmentTypeEnum
.
DT
.
getSupInfo
()).
remove
(
"CODE96333"
);
result
.
get
(
EquipmentTypeEnum
.
DT
.
getSupInfo
()).
remove
(
"SUPERVISORY_CODE"
);
}
Map
<
String
,
Object
>
resultMapNew
=
new
HashMap
<>();
result
.
forEach
((
key
,
value
)
->
{
resultMapNew
.
putAll
(
value
);
});
return
resultMapNew
;
}
/**
* 使用信息
*
...
...
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