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
99e24d78
Commit
99e24d78
authored
Jun 21, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):车用气瓶bug修改
parent
3cbd6301
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
DataDockServiceImpl.java
.../boot/module/jg/biz/service/impl/DataDockServiceImpl.java
+1
-1
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+3
-3
JgVehicleInformationServiceImpl.java
.../jg/biz/service/impl/JgVehicleInformationServiceImpl.java
+9
-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/service/impl/DataDockServiceImpl.java
View file @
99e24d78
...
...
@@ -1492,7 +1492,7 @@ public class DataDockServiceImpl {
?
"jg_pl"
:
"his"
.
equals
(
equipmentInfoForm
.
get
(
"DATA_SOURCE"
))
?
"jg_his_pl"
:
"jg_black_pl"
;
:
"jg_
his_
black_pl"
;
Arrays
.
stream
(
equipInfoExcelDtos
.
toArray
(
new
EquipInfoExcelDto
[
0
])).
forEach
(
equ
->
{
if
(!
equ
.
getEquList
().
equals
(
equList
)
||
!
equ
.
getEquCategory
().
equals
(
equCategory
)){
...
...
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 @
99e24d78
...
...
@@ -2121,8 +2121,8 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
boolMust
.
must
(
meBuilder
);
// 查询下次检验日期大于当前天的设备
long
currentDayTime
=
DateUtil
.
parse
(
DateUtil
.
now
(),
"yyy-MM-dd"
).
getTime
();
boolMust
.
must
(
QueryBuilders
.
rangeQuery
(
"NEXT_INSPECT_DATE"
).
gte
(
currentDayTime
));
//
long currentDayTime = DateUtil.parse(DateUtil.now(), "yyy-MM-dd").getTime();
//
boolMust.must(QueryBuilders.rangeQuery("NEXT_INSPECT_DATE").gte(currentDayTime));
// DATA_SOURCE 为“jg”开头的数据(从监管新加或复制的设备)
// 20240314 提出的监管业务不要让企业用户选到之前一码通认领或补录的设备,让从监管业务中去新增
...
...
@@ -3718,7 +3718,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
Map
<
String
,
Object
>
fillingMediumMap
=
fillingMedium
.
stream
().
collect
(
Collectors
.
toMap
(
DictionarieValueModel:
:
getDictDataKey
,
DictionarieValueModel:
:
getDictDataValue
));
Page
<
JSONObject
>
result
=
jgUseRegistrationMapper
.
queryForUnitVesselEquipmentPage
(
page
,
jsonObject
,
recordList
);
result
.
getRecords
().
forEach
(
i
->
{
i
.
put
(
"chargingMedium"
,
fillingMediumMap
.
get
(
i
.
get
(
"chargingMedium"
)
));
i
.
put
(
"chargingMedium"
,
Optional
.
ofNullable
(
fillingMediumMap
.
get
(
i
.
get
(
"chargingMedium"
))).
orElse
(
""
));
i
.
put
(
"productPhoto"
,
JSONArray
.
parseArray
(
i
.
getString
(
"productPhoto"
)));
i
.
put
(
"cylinderStampAttachment"
,
JSONArray
.
parseArray
(
i
.
getString
(
"cylinderStampAttachment"
)));
i
.
put
(
"informationSituation"
,
InformationManageTypeEnum
.
getName
(
i
.
getString
(
"informationSituation"
)));
...
...
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/JgVehicleInformationServiceImpl.java
View file @
99e24d78
...
...
@@ -356,7 +356,15 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
BigDecimal
totalVolume
=
Optional
.
ofNullable
(
equipmentLists
)
.
orElse
(
Collections
.
emptyList
())
.
stream
()
.
map
(
x
->
new
BigDecimal
(
String
.
valueOf
(
x
.
get
(
"singleBottleVolume"
))))
.
map
(
x
->
{
Object
volume
=
x
.
get
(
"singleBottleVolume"
);
try
{
return
volume
!=
null
?
new
BigDecimal
(
volume
.
toString
())
:
BigDecimal
.
ZERO
;
}
catch
(
NumberFormatException
e
)
{
// 如果数据非法(如 "null" 或其他非数字字符串),记个日志或置 0
return
BigDecimal
.
ZERO
;
}
})
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
vehicleInformation
.
setVolume
(
totalVolume
.
toPlainString
());
...
...
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