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
31218fa9
Commit
31218fa9
authored
Dec 30, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:(jg):修改气瓶参数后,更新证管理表参数
parent
456e3801
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
ChangeEquipImpactCertListener.java
...iz/edit/event/listener/ChangeEquipImpactCertListener.java
+11
-6
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/event/listener/ChangeEquipImpactCertListener.java
View file @
31218fa9
...
@@ -3,8 +3,8 @@ package com.yeejoin.amos.boot.module.jg.biz.edit.event.listener;
...
@@ -3,8 +3,8 @@ package com.yeejoin.amos.boot.module.jg.biz.edit.event.listener;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.module.common.api.converter.CommonCustomConverter
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.yeejoin.amos.boot.module.common.api.converter.CommonCustomConverter
;
import
com.yeejoin.amos.boot.module.jg.api.converter.EquDefineConverter
;
import
com.yeejoin.amos.boot.module.jg.api.converter.EquDefineConverter
;
import
com.yeejoin.amos.boot.module.jg.api.dto.FieldChangeMeta
;
import
com.yeejoin.amos.boot.module.jg.api.dto.FieldChangeMeta
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgInstallationNotice
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgInstallationNotice
;
...
@@ -31,6 +31,7 @@ import org.springframework.stereotype.Component;
...
@@ -31,6 +31,7 @@ import org.springframework.stereotype.Component;
import
org.springframework.transaction.event.TransactionalEventListener
;
import
org.springframework.transaction.event.TransactionalEventListener
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.PostConstruct
;
import
java.math.BigDecimal
;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.BlockingQueue
;
import
java.util.concurrent.BlockingQueue
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.ExecutorService
;
...
@@ -137,6 +138,7 @@ public class ChangeEquipImpactCertListener {
...
@@ -137,6 +138,7 @@ public class ChangeEquipImpactCertListener {
private
void
updateUseCertField
(
JgUseRegistrationManage
manage
,
FieldChangeMeta
meta
)
{
private
void
updateUseCertField
(
JgUseRegistrationManage
manage
,
FieldChangeMeta
meta
)
{
String
columnKey
=
meta
.
getColumnKey
();
String
columnKey
=
meta
.
getColumnKey
();
String
afterValue
=
Objects
.
toString
(
meta
.
getColumnNewValue
(),
null
);
String
afterValue
=
Objects
.
toString
(
meta
.
getColumnNewValue
(),
null
);
String
beforeValue
=
Objects
.
toString
(
meta
.
getColumnOldValue
(),
null
);
if
(
StringUtils
.
isBlank
(
afterValue
))
{
if
(
StringUtils
.
isBlank
(
afterValue
))
{
return
;
return
;
}
}
...
@@ -166,13 +168,16 @@ public class ChangeEquipImpactCertListener {
...
@@ -166,13 +168,16 @@ public class ChangeEquipImpactCertListener {
manage
.
setReceiveOrgName
(
CommonCustomConverter
.
CompanyCodeConverter
.
getNameByCode
(
afterValue
));
manage
.
setReceiveOrgName
(
CommonCustomConverter
.
CompanyCodeConverter
.
getNameByCode
(
afterValue
));
break
;
break
;
case
"fillingMedium"
:
case
"fillingMedium"
:
manage
.
setFillingMedium
(
afterValue
);
manage
.
setFillingMedium
(
break
;
Arrays
.
stream
(
manage
.
getFillingMedium
().
split
(
","
))
case
"gasNum"
:
.
map
(
String:
:
trim
)
manage
.
setGasNum
(
Integer
.
valueOf
(
afterValue
));
.
map
(
v
->
v
.
equals
(
beforeValue
)
?
afterValue
:
v
)
.
collect
(
Collectors
.
joining
(
","
))
);
break
;
break
;
case
"volume"
:
case
"volume"
:
manage
.
setVolume
(
afterValue
);
manage
.
setVolume
(
new
BigDecimal
(
manage
.
getVolume
())
.
add
(
new
BigDecimal
(
afterValue
).
subtract
(
new
BigDecimal
(
beforeValue
))).
toPlainString
());
break
;
break
;
default
:
default
:
log
.
warn
(
"未处理的USE_CERT字段:[{}]"
,
columnKey
);
log
.
warn
(
"未处理的USE_CERT字段:[{}]"
,
columnKey
);
...
...
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