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
adb3b64b
Commit
adb3b64b
authored
May 19, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):证打印标记功能开发
parent
526b9bf0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
101 additions
and
0 deletions
+101
-0
JgInstallationNoticeMapper.xml
.../src/main/resources/mapper/JgInstallationNoticeMapper.xml
+0
-0
ChangeEquipImpactCertListener.java
...iz/edit/event/listener/ChangeEquipImpactCertListener.java
+0
-0
ChangeFieldWatchConstants.java
...jg/biz/edit/event/listener/ChangeFieldWatchConstants.java
+101
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgInstallationNoticeMapper.xml
View file @
adb3b64b
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
0 → 100644
View file @
adb3b64b
This diff is collapsed.
Click to expand it.
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/ChangeFieldWatchConstants.java
0 → 100644
View file @
adb3b64b
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
edit
.
event
.
listener
;
import
java.util.*
;
public
class
ChangeFieldWatchConstants
{
/**
* 台套-使用登记证影响字段
*/
public
static
final
Set
<
String
>
USE_CERT_MONITORED_FIELDS
=
Collections
.
unmodifiableSet
(
new
HashSet
<>(
Arrays
.
asList
(
"equDefine"
,
"equCode"
,
"useInnerCode"
,
"factoryNum"
,
"province"
,
"city"
,
"county"
,
"street"
,
"address"
)));
/**
* 标志-台套-设备编辑影响字段
*/
public
static
final
Set
<
String
>
USE_FLAG_MONITORED_FIELDS
=
Collections
.
unmodifiableSet
(
new
HashSet
<>(
Arrays
.
asList
(
"equDefine"
,
"equCode"
,
"useInnerCode"
,
"inspectOrgName"
,
"nextInspectDate"
,
"emergencyTel"
,
"maintenanceUnitName"
)));
/**
* 标志-车用气瓶-设备编辑影响字段
*/
public
static
final
Set
<
String
>
USE_FLAG_VEHICLE_MONITORED_FIELDS
=
Collections
.
unmodifiableSet
(
new
HashSet
<>(
Arrays
.
asList
(
"productName"
,
"carNumber"
,
"factoryNum"
,
"gasNum"
,
"volume"
,
"fillingMedium"
,
"inspectOrgName"
,
"nextInspectDate"
)));
/**
* 管道汇总表-设备编辑影响字段
*/
public
static
final
Set
<
String
>
PIPELINE_SUMMARY_TABLE_MONITORED_FIELDS
=
Collections
.
unmodifiableSet
(
new
HashSet
<>(
Arrays
.
asList
(
"pipeName"
,
"pipelineNumber"
,
"deviceLevel"
,
"designUnitName"
,
"uscUnitName"
,
"workPressure"
,
"workTemperature"
,
"workMedium"
,
"uscDate"
,
"useDate"
,
"nominalDiameter"
,
"wallThickness"
,
"pipeLength"
,
"pressure"
,
"temperature"
,
"medium"
,
"inspectConclusion"
,
"inspectOrgName"
,
"nextInspectDate"
,
"remarks"
)));
/**
* 使用登记-气瓶汇总表-设备编辑影响字段
*/
public
static
final
Set
<
String
>
USE_CYLINDER_SUMMARY_TABLE_MONITORED_FIELDS
=
Collections
.
unmodifiableSet
(
new
HashSet
<>(
Arrays
.
asList
(
"equDefine"
,
"factoryNum"
,
"chargingMedium"
,
"produceUnitName"
,
"produceDate"
,
"nominalWorkingPressure"
,
"singleBottleVolume"
,
"inspectDate"
,
"nextInspectDate"
,
"useInnerCode"
)));
/**
* 安装告知-设备编辑影响字段
*/
public
static
final
Set
<
String
>
NOTICE_MONITORED_FIELDS
=
Collections
.
unmodifiableSet
(
new
HashSet
<>(
Arrays
.
asList
(
"equCode"
,
"productName"
,
"contactPhone"
,
"installUnitName"
,
"equipType"
,
"factoryNum"
,
"produceUnitName"
,
"produceLicenseNum"
,
"province"
,
"city"
,
"county"
,
"street"
,
"address"
)));
/**
* 所有分类映射
*/
private
static
final
Map
<
String
,
Set
<
String
>>
FIELD_MAP
;
static
{
Map
<
String
,
Set
<
String
>>
map
=
new
LinkedHashMap
<>();
map
.
put
(
"USE_CERT"
,
USE_CERT_MONITORED_FIELDS
);
map
.
put
(
"USE_FLAG"
,
USE_FLAG_MONITORED_FIELDS
);
map
.
put
(
"USE_FLAG_VEHICLE"
,
USE_FLAG_VEHICLE_MONITORED_FIELDS
);
map
.
put
(
"PIPELINE_SUMMARY"
,
PIPELINE_SUMMARY_TABLE_MONITORED_FIELDS
);
map
.
put
(
"USE_CYLINDER_SUMMARY"
,
USE_CYLINDER_SUMMARY_TABLE_MONITORED_FIELDS
);
map
.
put
(
"NOTICE"
,
NOTICE_MONITORED_FIELDS
);
FIELD_MAP
=
Collections
.
unmodifiableMap
(
map
);
}
/**
* 判断是否是任何一类监控字段
*/
public
static
boolean
isWatched
(
String
columnKey
)
{
for
(
Set
<
String
>
fieldSet
:
FIELD_MAP
.
values
())
{
if
(
fieldSet
.
contains
(
columnKey
))
{
return
true
;
}
}
return
false
;
}
/**
* 获取字段所属的所有分类
*/
public
static
Set
<
String
>
getMatchedCategories
(
String
columnKey
)
{
Set
<
String
>
matched
=
new
HashSet
<>();
for
(
Map
.
Entry
<
String
,
Set
<
String
>>
entry
:
FIELD_MAP
.
entrySet
())
{
if
(
entry
.
getValue
().
contains
(
columnKey
))
{
matched
.
add
(
entry
.
getKey
());
}
}
return
matched
;
}
}
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