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
9aa9eab1
Commit
9aa9eab1
authored
Apr 01, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):历史有证登记设备详情bug修改
parent
c31bdb59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+4
-5
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+9
-5
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/IdxBizJgRegisterInfoServiceImpl.java
View file @
9aa9eab1
...
@@ -1567,13 +1567,12 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -1567,13 +1567,12 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
IdxBizJgMaintenanceRecordInfo
maintenanceRecordInfo
=
iIdxBizJgMaintenanceRecordInfoService
.
queryNewestDetailByRecord
(
record
);
IdxBizJgMaintenanceRecordInfo
maintenanceRecordInfo
=
iIdxBizJgMaintenanceRecordInfoService
.
queryNewestDetailByRecord
(
record
);
if
(!
ValidationUtil
.
isEmpty
(
maintenanceRecordInfo
))
{
if
(!
ValidationUtil
.
isEmpty
(
maintenanceRecordInfo
))
{
Map
<
String
,
Object
>
maintenanceRecordInfoMap
;
Map
<
String
,
Object
>
maintenanceRecordInfoMap
;
if
(
fieldType
!=
null
&&
!
fieldType
.
isEmpty
())
{
if
(!
ValidationUtil
.
isEmpty
(
fieldType
))
{
maintenanceRecordInfoMap
=
Bean
.
BeantoMap
(
maintenanceRecordInfo
);
maintenanceRecordInfoMap
=
Bean
.
BeantoMap
(
maintenanceRecordInfo
);
maintenanceRecordInfoMap
.
put
(
"repairInform"
,
JSON
.
parse
(
maintenanceRecordInfo
.
getRepairInform
()));
maintenanceRecordInfoMap
.
put
(
"repairInform"
,
JSON
.
parse
(
maintenanceRecordInfo
.
getRepairInform
()));
maintenanceRecordInfoMap
.
put
(
"maintenancerecordinfoSeq"
,
maintenanceRecordInfo
.
getSequenceNbr
());
maintenanceRecordInfoMap
.
put
(
"maintenancerecordinfoSeq"
,
maintenanceRecordInfo
.
getSequenceNbr
());
}
else
{
}
else
{
String
[]
toArrayFields
=
{
"
repairInform
"
};
String
[]
toArrayFields
=
{
"
REPAIR_INFORM
"
};
maintenanceRecordInfoMap
=
convertCamelToUnderscore
(
maintenanceRecordInfo
,
toArrayFields
);
maintenanceRecordInfoMap
=
convertCamelToUnderscore
(
maintenanceRecordInfo
,
toArrayFields
);
maintenanceRecordInfoMap
.
put
(
"MAINTENANCERECORDINFO_SEQ"
,
maintenanceRecordInfo
.
getSequenceNbr
());
maintenanceRecordInfoMap
.
put
(
"MAINTENANCERECORDINFO_SEQ"
,
maintenanceRecordInfo
.
getSequenceNbr
());
}
}
...
@@ -1676,7 +1675,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -1676,7 +1675,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
public
String
judgeTheBusinessAccordingByRecord
(
String
record
,
Map
<
String
,
Object
>
objMap
)
{
public
String
judgeTheBusinessAccordingByRecord
(
String
record
,
Map
<
String
,
Object
>
objMap
)
{
String
business
=
""
;
String
business
=
""
;
// 安装告知
// 安装告知
Map
<
String
,
Object
>
installDetail
=
jgUseRegistrationMapper
.
getiInstallDetail
(
record
);
Map
<
String
,
Object
>
installDetail
=
jgUseRegistrationMapper
.
getiInstallDetail
ByIdx
(
record
);
if
(!
ObjectUtils
.
isEmpty
(
installDetail
))
{
if
(!
ObjectUtils
.
isEmpty
(
installDetail
))
{
business
=
business
+
",安装告知"
;
business
=
business
+
",安装告知"
;
objMap
.
putAll
(
installDetail
);
objMap
.
putAll
(
installDetail
);
...
@@ -1685,7 +1684,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -1685,7 +1684,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
objMap
.
put
(
"installContractAttachment"
,
JSON
.
parse
(
Optional
.
ofNullable
(
installDetail
.
get
(
"installContractAttachment"
)).
orElse
(
""
).
toString
()));
objMap
.
put
(
"installContractAttachment"
,
JSON
.
parse
(
Optional
.
ofNullable
(
installDetail
.
get
(
"installContractAttachment"
)).
orElse
(
""
).
toString
()));
}
}
// 维保备案
// 维保备案
Map
<
String
,
Object
>
maintenanceDetail
=
jgUseRegistrationMapper
.
getMaintenanceDetail
(
record
);
Map
<
String
,
Object
>
maintenanceDetail
=
jgUseRegistrationMapper
.
getMaintenanceDetail
ByIdx
(
record
);
if
(!
ObjectUtils
.
isEmpty
(
maintenanceDetail
))
{
if
(!
ObjectUtils
.
isEmpty
(
maintenanceDetail
))
{
business
=
business
+
",维保合同备案"
;
business
=
business
+
",维保合同备案"
;
objMap
.
putAll
(
maintenanceDetail
);
objMap
.
putAll
(
maintenanceDetail
);
...
...
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 @
9aa9eab1
...
@@ -2147,6 +2147,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -2147,6 +2147,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
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
.
put
(
"installLeaderName"
,
jsonObject
.
getString
(
"installLeaderId"
));
jsonObject
.
put
(
"installProxyStatementAttachment"
,
JSONArray
.
parseArray
(
jsonObject
.
getString
(
"proxyStatementAttachmentList"
)));
jsonObject
.
put
(
"installAddress"
,
jsonObject
.
getString
(
"address"
));
// 前端展示填充数据
jsonObject
.
put
(
"installAddress"
,
jsonObject
.
getString
(
"address"
));
// 前端展示填充数据
Optional
.
ofNullable
(
jsonObject
.
get
(
"safetyManagerName"
)).
ifPresent
(
name
->
jsonObject
.
put
(
"maintenanceManagerName"
,
name
));
Optional
.
ofNullable
(
jsonObject
.
get
(
"safetyManagerName"
)).
ifPresent
(
name
->
jsonObject
.
put
(
"maintenanceManagerName"
,
name
));
Optional
.
ofNullable
(
jsonObject
.
get
(
"phone"
)).
ifPresent
(
phone
->
jsonObject
.
put
(
"maintenanceManagerPhone"
,
phone
));
Optional
.
ofNullable
(
jsonObject
.
get
(
"phone"
)).
ifPresent
(
phone
->
jsonObject
.
put
(
"maintenanceManagerPhone"
,
phone
));
...
@@ -4006,8 +4008,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -4006,8 +4008,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
certificateChangeRecordEqService
.
save
(
changeRecordEq1
);
certificateChangeRecordEqService
.
save
(
changeRecordEq1
);
}
}
// 使用登记证变更记录 -> 维保备案记录
// 使用登记证变更记录 -> 维保备案记录
,历史登记不写维保记录日志,测试说的
if
(!
ValidationUtil
.
isEmpty
(
map
.
get
(
"meUnitName"
)))
{
/*
if (!ValidationUtil.isEmpty(map.get("meUnitName"))) {
long jgMaintenanceSeq = sequence.nextId();//登记证记录主键
long jgMaintenanceSeq = sequence.nextId();//登记证记录主键
String useRegistrationCode = jgUseRegistration.getUseRegistrationCode();// 使用登记证编号
String useRegistrationCode = jgUseRegistration.getUseRegistrationCode();// 使用登记证编号
genJgCertChangeRecordForMaintenance(jgMaintenanceSeq, useRegistrationCode, map, jgUseRegistration, registerInfo);
genJgCertChangeRecordForMaintenance(jgMaintenanceSeq, useRegistrationCode, map, jgUseRegistration, registerInfo);
...
@@ -4017,7 +4019,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -4017,7 +4019,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
changeRecordEq2.setEquId(registerInfo.getRecord());//设备主键
changeRecordEq2.setEquId(registerInfo.getRecord());//设备主键
changeRecordEq2.setProductCode(idxBizJgFactoryInfo.getFactoryNum());
changeRecordEq2.setProductCode(idxBizJgFactoryInfo.getFactoryNum());
certificateChangeRecordEqService.save(changeRecordEq2);
certificateChangeRecordEqService.save(changeRecordEq2);
}
}
*/
}
}
public
void
genJgCertChangeRecordForInstall
(
Long
sequenceNbr
,
String
registrationCode
,
JSONObject
map
,
JgUseRegistration
jgUseRegistration
,
IdxBizJgRegisterInfo
idxBizJgRegisterInfo
)
{
public
void
genJgCertChangeRecordForInstall
(
Long
sequenceNbr
,
String
registrationCode
,
JSONObject
map
,
JgUseRegistration
jgUseRegistration
,
IdxBizJgRegisterInfo
idxBizJgRegisterInfo
)
{
...
@@ -4062,8 +4064,10 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -4062,8 +4064,10 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
try
{
try
{
FeignClientResult
<
AgencyUserModel
>
agencyUserModelFeignClientResult
=
Privilege
.
agencyUserClient
.
queryByUserId
(
jgUseRegistration
.
getCreateUserId
());
FeignClientResult
<
AgencyUserModel
>
agencyUserModelFeignClientResult
=
Privilege
.
agencyUserClient
.
queryByUserId
(
jgUseRegistration
.
getCreateUserId
());
changeContent
=
jgUseRegistration
.
getUseUnitName
()+
"的"
+
agencyUserModelFeignClientResult
.
getResult
().
getRealName
()
+
"办理了【"
+
BusinessTypeEnum
.
JG_MAINTENANCE_RECORD
.
getName
()
+
"】,"
+
changeContent
=
jgUseRegistration
.
getUseUnitName
()
+
"的"
+
"办理日期"
+
map
.
get
(
"installStartDate"
);
agencyUserModelFeignClientResult
.
getResult
().
getRealName
()
+
"办理了【"
+
BusinessTypeEnum
.
JG_MAINTENANCE_RECORD
.
getName
()
+
"】,办理日期:"
+
Objects
.
toString
(
map
.
get
(
"installStartDate"
),
""
);
jgCertificateChangeRecord
.
setAuditPassDate
(
simpleDateFormat
.
parse
((
String
)
map
.
get
(
"informEnd"
)));
jgCertificateChangeRecord
.
setAuditPassDate
(
simpleDateFormat
.
parse
((
String
)
map
.
get
(
"informEnd"
)));
jgCertificateChangeRecord
.
setRegDate
(
simpleDateFormat
.
parse
((
String
)
map
.
get
(
"informStart"
)));
jgCertificateChangeRecord
.
setRegDate
(
simpleDateFormat
.
parse
((
String
)
map
.
get
(
"informStart"
)));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
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