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
ed7514ab
Commit
ed7514ab
authored
Jul 15, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(amos-boot-module-jg): 优化设备技术参数处理和使用登记逻辑
- 在 CommonEquipDataProcessService 中增加空对象判断,避免空指针异常 - 在 JgUseRegistrationServiceImpl 中修正查询其他信息的逻辑 -优化使用登记信息的处理,移除无效的 "null"值
parent
9477768e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
CommonEquipDataProcessService.java
...biz/edit/process/equip/CommonEquipDataProcessService.java
+9
-8
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+1
-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/edit/process/equip/CommonEquipDataProcessService.java
View file @
ed7514ab
...
@@ -346,42 +346,42 @@ public class CommonEquipDataProcessService {
...
@@ -346,42 +346,42 @@ public class CommonEquipDataProcessService {
// 锅炉
// 锅炉
IdxBizJgTechParamsBoiler
boiler
=
iIdxBizJgTechParamsBoilerService
.
getOneData
(
record
);
IdxBizJgTechParamsBoiler
boiler
=
iIdxBizJgTechParamsBoilerService
.
getOneData
(
record
);
// 技术参数对象转换为全部技术参数 ,其他无用字段去掉
// 技术参数对象转换为全部技术参数 ,其他无用字段去掉
return
BeanUtil
.
copyProperties
(
boiler
,
TechParamsBoilerChangeFieldDto
.
class
);
return
boiler
==
null
?
new
TechParamsBoilerChangeFieldDto
()
:
BeanUtil
.
copyProperties
(
boiler
,
TechParamsBoilerChangeFieldDto
.
class
);
case
YLRQ:
case
YLRQ:
// 压力容器
// 压力容器
IdxBizJgTechParamsVessel
techParamsVessel
=
iIdxBizJgTechParamsVesselService
.
getOneData
(
record
);
IdxBizJgTechParamsVessel
techParamsVessel
=
iIdxBizJgTechParamsVesselService
.
getOneData
(
record
);
// 技术参数对象转换为全部技术参数 ,其他无用字段去掉
// 技术参数对象转换为全部技术参数 ,其他无用字段去掉
return
BeanUtil
.
copyProperties
(
techParamsVessel
,
TechParamsVesselChangeFieldDto
.
class
);
return
techParamsVessel
==
null
?
new
TechParamsVesselChangeFieldDto
()
:
BeanUtil
.
copyProperties
(
techParamsVessel
,
TechParamsVesselChangeFieldDto
.
class
);
case
DT:
case
DT:
// 电梯
// 电梯
IdxBizJgTechParamsElevator
techParamsElevator
=
iIdxBizJgTechParamsElevatorService
.
getOneData
(
record
);
IdxBizJgTechParamsElevator
techParamsElevator
=
iIdxBizJgTechParamsElevatorService
.
getOneData
(
record
);
// 技术参数对象转换为全部技术参数 ,其他无用字段去掉
// 技术参数对象转换为全部技术参数 ,其他无用字段去掉
return
BeanUtil
.
copyProperties
(
techParamsElevator
,
TechParamsElevatorChangeFieldDto
.
class
);
return
techParamsElevator
==
null
?
new
TechParamsElevatorChangeFieldDto
()
:
BeanUtil
.
copyProperties
(
techParamsElevator
,
TechParamsElevatorChangeFieldDto
.
class
);
case
QZJX:
case
QZJX:
// 起重机械
// 起重机械
IdxBizJgTechParamsLifting
techParamsLifting
=
iIdxBizJgTechParamsLiftingService
.
getOneData
(
record
);
IdxBizJgTechParamsLifting
techParamsLifting
=
iIdxBizJgTechParamsLiftingService
.
getOneData
(
record
);
// 技术参数对象转换为全部技术参数 ,其他无用字段去掉
// 技术参数对象转换为全部技术参数 ,其他无用字段去掉
return
BeanUtil
.
copyProperties
(
techParamsLifting
,
TechParamsLiftingChangeFieldDto
.
class
);
return
techParamsLifting
==
null
?
new
TechParamsLiftingChangeFieldDto
()
:
BeanUtil
.
copyProperties
(
techParamsLifting
,
TechParamsLiftingChangeFieldDto
.
class
);
case
CC:
case
CC:
// 场(厂)内专用机动车辆
// 场(厂)内专用机动车辆
IdxBizJgTechParamsVehicle
techParamsVehicle
=
iIdxBizJgTechParamsVehicleService
.
getOneData
(
record
);
IdxBizJgTechParamsVehicle
techParamsVehicle
=
iIdxBizJgTechParamsVehicleService
.
getOneData
(
record
);
// 技术参数对象转换为全部技术参数 ,其他无用字段去掉
// 技术参数对象转换为全部技术参数 ,其他无用字段去掉
return
BeanUtil
.
copyProperties
(
techParamsVehicle
,
TechParamsVehicleChangeFieldDto
.
class
);
return
techParamsVehicle
==
null
?
new
TechParamsVehicleChangeFieldDto
()
:
BeanUtil
.
copyProperties
(
techParamsVehicle
,
TechParamsVehicleChangeFieldDto
.
class
);
case
YLSS:
case
YLSS:
// 大型游乐设施
// 大型游乐设施
IdxBizJgTechParamsRides
techParamsRides
=
iIdxBizJgTechParamsRidesService
.
getOneData
(
record
);
IdxBizJgTechParamsRides
techParamsRides
=
iIdxBizJgTechParamsRidesService
.
getOneData
(
record
);
// 技术参数对象转换为全部技术参数 ,其他无用字段去掉
// 技术参数对象转换为全部技术参数 ,其他无用字段去掉
return
BeanUtil
.
copyProperties
(
techParamsRides
,
TechParamsRidesChangeFieldDto
.
class
);
return
techParamsRides
==
null
?
new
TechParamsRidesChangeFieldDto
()
:
BeanUtil
.
copyProperties
(
techParamsRides
,
TechParamsRidesChangeFieldDto
.
class
);
case
YLGD:
case
YLGD:
// 压力管道
// 压力管道
IdxBizJgTechParamsPipeline
techParamsPipeline
=
iIdxBizJgTechParamsPipelineService
.
getOneData
(
record
);
IdxBizJgTechParamsPipeline
techParamsPipeline
=
iIdxBizJgTechParamsPipelineService
.
getOneData
(
record
);
// 技术参数对象转换为全部技术参数 ,其他无用字段去掉
// 技术参数对象转换为全部技术参数 ,其他无用字段去掉
return
BeanUtil
.
copyProperties
(
techParamsPipeline
,
TechParamsPipelineChangeFieldDto
.
class
);
return
techParamsPipeline
==
null
?
new
TechParamsPipelineChangeFieldDto
()
:
BeanUtil
.
copyProperties
(
techParamsPipeline
,
TechParamsPipelineChangeFieldDto
.
class
);
case
KYSD:
case
KYSD:
// 客运索道
// 客运索道
IdxBizJgTechParamsRopeway
techParamsRopeway
=
iIdxBizJgTechParamsRopewayService
.
getOneData
(
record
);
IdxBizJgTechParamsRopeway
techParamsRopeway
=
iIdxBizJgTechParamsRopewayService
.
getOneData
(
record
);
// 技术参数对象转换为全部技术参数 ,其他无用字段去掉
// 技术参数对象转换为全部技术参数 ,其他无用字段去掉
return
BeanUtil
.
copyProperties
(
techParamsRopeway
,
TechParamsRopewayChangeFieldDto
.
class
);
return
techParamsRopeway
==
null
?
new
TechParamsRopewayChangeFieldDto
()
:
BeanUtil
.
copyProperties
(
techParamsRopeway
,
TechParamsRopewayChangeFieldDto
.
class
);
default
:
default
:
break
;
break
;
}
}
...
@@ -806,6 +806,7 @@ public class CommonEquipDataProcessService {
...
@@ -806,6 +806,7 @@ public class CommonEquipDataProcessService {
result
.
put
(
"record"
,
useInfo
.
getRecord
());
result
.
put
(
"record"
,
useInfo
.
getRecord
());
// 设备来源,前端无法判断,故后端进行判断,分为新设备(new)、历史有证设备(his)、历史无证设备(black)
// 设备来源,前端无法判断,故后端进行判断,分为新设备(new)、历史有证设备(his)、历史无证设备(black)
result
.
put
(
"dataSourceClassify"
,
this
.
genDataSource
(
useInfo
.
getDataSource
()));
result
.
put
(
"dataSourceClassify"
,
this
.
genDataSource
(
useInfo
.
getDataSource
()));
result
.
replaceAll
((
key
,
value
)
->
"null"
.
equals
(
value
)
?
null
:
value
);
return
result
;
return
result
;
}
}
...
...
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 @
ed7514ab
...
@@ -595,7 +595,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -595,7 +595,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
jgUseRegistration
.
setRegDate
(
new
Date
());
jgUseRegistration
.
setRegDate
(
new
Date
());
jgUseRegistration
.
setCreateDate
(
new
Date
());
jgUseRegistration
.
setCreateDate
(
new
Date
());
LambdaQueryWrapper
<
IdxBizJgOtherInfo
>
otherLambda
=
new
QueryWrapper
<
IdxBizJgOtherInfo
>().
lambda
();
LambdaQueryWrapper
<
IdxBizJgOtherInfo
>
otherLambda
=
new
QueryWrapper
<
IdxBizJgOtherInfo
>().
lambda
();
otherLambda
.
eq
(
IdxBizJgOtherInfo:
:
getRecord
,
map
.
get
(
"equipId"
)
);
otherLambda
.
eq
(
IdxBizJgOtherInfo:
:
getRecord
,
equipId
);
IdxBizJgOtherInfo
otherInfo
=
otherInfoMapper
.
selectOne
(
otherLambda
);
IdxBizJgOtherInfo
otherInfo
=
otherInfoMapper
.
selectOne
(
otherLambda
);
if
(
otherInfo
!=
null
)
{
if
(
otherInfo
!=
null
)
{
String
supervisoryCode
=
otherInfo
.
getSupervisoryCode
();
String
supervisoryCode
=
otherInfo
.
getSupervisoryCode
();
...
...
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