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
0014ec2c
Commit
0014ec2c
authored
Jul 04, 2025
by
yangyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_bugfix' into develop_tzs_bugfix
parents
8cdf0c21
0f9f3662
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
6 deletions
+39
-6
ChangeEquipImpactCertListener.java
...iz/edit/event/listener/ChangeEquipImpactCertListener.java
+22
-0
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+1
-1
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+2
-2
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+4
-2
CommonServiceImpl.java
.../boot/module/jyjc/biz/service/impl/CommonServiceImpl.java
+1
-1
unitTypeLimitUserType.json
...cm-biz/src/main/resources/json/unitTypeLimitUserType.json
+9
-0
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 @
0014ec2c
...
...
@@ -15,8 +15,10 @@ import com.yeejoin.amos.boot.module.jg.biz.service.impl.JgInstallationNoticeEqSe
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgInstallationNoticeServiceImpl
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgUseRegistrationManageServiceImpl
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgProjectContraption
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgRegisterInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgUseInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgRegisterInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgUseInfoMapper
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -52,6 +54,7 @@ public class ChangeEquipImpactCertListener {
private
final
IdxBizJgProjectContraptionServiceImplService
jgProjectContraptionService
;
private
final
JgInstallationNoticeEqServiceImpl
jgInstallationNoticeEqService
;
private
final
IdxBizJgUseInfoMapper
useInfoMapper
;
private
final
IdxBizJgRegisterInfoMapper
registerInfoMapper
;
/**
* 事件监听:只把事件放入队列
...
...
@@ -296,6 +299,25 @@ public class ChangeEquipImpactCertListener {
private
void
handleNewEquipEdit
(
BaseBizDataChangeEvent
event
)
{
log
.
info
(
"处理 handleNewEquipEdit 类型逻辑"
);
if
(
event
.
getBizRelationData
().
getBizIsFinished
()){
String
useOrgCode
=
""
;
for
(
FieldChangeMeta
meta
:
event
.
getData
())
{
String
columnKey
=
meta
.
getColumnKey
();
if
(
columnKey
.
equals
(
"useOrgCode"
)){
useOrgCode
=
meta
.
getColumnOldValue
();
}
else
{
LambdaQueryWrapper
<
IdxBizJgRegisterInfo
>
queryRegisterWrapper
=
new
QueryWrapper
<
IdxBizJgRegisterInfo
>().
lambda
();
queryRegisterWrapper
.
eq
(
IdxBizJgRegisterInfo:
:
getRecord
,
event
.
getBizRelationData
().
getBizId
());
IdxBizJgRegisterInfo
registerInfo
=
registerInfoMapper
.
selectOne
(
queryRegisterWrapper
);
useOrgCode
=
registerInfo
.
getUseOrgCode
();
}
}
JgUseRegistrationManage
jgUseRegistrationManage
=
jgUseRegistrationManageService
.
lambdaQuery
()
.
eq
(
JgUseRegistrationManage:
:
getUseRegistrationCode
,
useOrgCode
)
.
eq
(
JgUseRegistrationManage:
:
getIsDelete
,
0
)
.
one
();
this
.
handleFieldChange
(
event
.
getData
(),
jgUseRegistrationManage
);
}
}
private
void
handleNewProjectEdit
(
List
<
FieldChangeMeta
>
fieldChangeMetaList
,
String
projectContraptionId
)
{
...
...
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/CommonServiceImpl.java
View file @
0014ec2c
...
...
@@ -3185,7 +3185,7 @@ public class CommonServiceImpl implements ICommonService {
*/
public
String
castDataQualityScore2Name
(
String
dataQualityScore
,
Boolean
isIntoManagement
){
String
name
=
dataDictTypeHandler
.
handle
(
DATA_QUALITY_SCORE
,
dataQualityScore
);
return
name
==
null
?
(
isIntoManagement
==
null
||
!
isIntoManagement
)
?
"
Ⅱ级"
:
"Ⅲ
级"
:
name
;
return
name
==
null
?
(
isIntoManagement
==
null
||
!
isIntoManagement
)
?
"
二级"
:
"三
级"
:
name
;
}
public
void
setDataQualityScore2Json
(
Map
<
String
,
Object
>
result
,
String
bizId
,
BusinessTypeEnum
businessTypeEnum
)
{
...
...
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/JgInstallationNoticeServiceImpl.java
View file @
0014ec2c
...
...
@@ -413,7 +413,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
installationInfo
.
put
(
"equDefineName"
,
projectContraption
.
getEquDefineName
());
equipListMaps
=
projectContraptionService
.
getBaseMapper
().
selectEquipList
(
projectContraptionId
);
equipListMaps
.
forEach
(
item
->
item
.
put
(
"deviceLevel"
,
Optional
.
ofNullable
(
dataDictionaryMapper
.
getByCode
(
String
.
valueOf
(
item
.
get
(
"deviceLevel"
)),
"8300"
))
item
.
put
(
"deviceLevel"
,
Optional
.
ofNullable
(
dataDictionaryMapper
.
getByCode
(
String
.
valueOf
(
item
.
get
(
"deviceLevel"
)),
projectContraption
.
getEquCategory
()
))
.
map
(
DataDictionary:
:
getName
)
.
orElse
(
""
)));
}
else
{
...
...
@@ -2024,7 +2024,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
List
<
Map
<
String
,
Object
>>
deviceList
=
projectContraptionService
.
getBaseMapper
().
selectEquipList
(
projectContraptionSeq
);
deviceList
.
forEach
(
device
->
{
String
deviceLevel
=
String
.
valueOf
(
device
.
get
(
"deviceLevel"
));
device
.
put
(
"deviceLevel"
,
dataDictionaryMapper
.
getByCode
(
deviceLevel
,
"8300"
).
getName
());
device
.
put
(
"deviceLevel"
,
dataDictionaryMapper
.
getByCode
(
deviceLevel
,
projectContraption
.
getEquCategory
()
).
getName
());
device
.
put
(
"sequenceNbr"
,
projectContraptionSeq
);
device
.
put
(
"equListName"
,
projectContraption
.
getEquListName
());
});
...
...
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 @
0014ec2c
...
...
@@ -1951,7 +1951,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
// 更新es的下次检验日期
param
.
put
(
"NEXT_INSPECT_DATE"
,
this
.
castDate2TimeStr
(
dataMap
.
getString
(
"nextInspectDate"
)));
param
.
put
(
"USE_INNER_CODE"
,
useInfo
.
getUseInnerCode
());
if
(!
Arrays
.
asList
(
"temp"
,
"tempEdit"
).
contains
(
dataMap
.
get
(
"historySubmitType"
)))
{
String
historySubmitType
=
String
.
valueOf
(
dataMap
.
get
(
"historySubmitType"
));
if
(!
"temp"
.
equals
(
historySubmitType
)
&&
!
"tempEdit"
.
equals
(
historySubmitType
))
{
param
.
put
(
"IS_INTO_MANAGEMENT"
,
true
);
}
param
.
put
(
"USE_PLACE_CODE"
,
jsonObject
.
get
(
"province"
)
+
"#"
+
jsonObject
.
get
(
"city"
)
+
"#"
+
jsonObject
.
get
(
"county"
)
+
"#"
+
jsonObject
.
get
(
"factoryUseSiteStreet"
));
...
...
@@ -1963,6 +1964,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
param
.
put
(
"EQU_CODE"
,
dataMap
.
get
(
"equCode"
));
param
.
put
(
"USE_ORG_CODE"
,
jgUseRegistration
.
getUseRegistrationCode
());
param
.
put
(
"CYLINDER_CATEGORY"
,
dataMap
.
get
(
"cylinderCategory"
));
param
.
put
(
"FACTORY_NUM"
,
MapUtil
.
getStr
(
dataMap
,
"factoryNum"
));
objMap
.
put
((
String
)
dataMap
.
get
(
"equipId"
),
param
);
tzsServiceFeignClient
.
commonUpdateEsDataByIds
(
objMap
);
}
...
...
@@ -2372,7 +2374,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
new
FillingUseRegisterResult
(
sequenceNbr
,
jsonObject
,
applicationContext
).
getData
();
// 结果增强,填充当前人是否有编辑按钮权限
new
FillingEditPermForCurrentUser
(
jsonObject
,
Optional
.
ofNullable
(
selectedOrgInfo
).
map
(
ReginParams:
:
getCompany
).
orElse
(
null
),
BusinessTypeEnum
.
JG_USAGE_REGISTRATION
).
getData
();
commonServiceImpl
.
setDataQualityScore2Json
(
jsonObject
,
sequenceNbr
+
""
,
BusinessTypeEnum
.
JG_USAGE_REGISTRATION
);
//
commonServiceImpl.setDataQualityScore2Json(jsonObject, sequenceNbr + "", BusinessTypeEnum.JG_USAGE_REGISTRATION);
return
jsonObject
;
}
// 基本信息 + 制造信息
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/CommonServiceImpl.java
View file @
0014ec2c
...
...
@@ -268,6 +268,6 @@ public class CommonServiceImpl {
public
String
castDataQualityScore2Name
(
String
dataQualityScore
,
Boolean
isIntoManagement
)
{
DataDictionary
dataDictionary
=
dictionaryService
.
getByCode
(
"DATA_QUALITY_SCORE"
,
dataQualityScore
);
String
name
=
Optional
.
ofNullable
(
dataDictionary
).
map
(
DataDictionary:
:
getName
).
orElse
(
null
);
return
name
==
null
?
(
isIntoManagement
==
null
||
!
isIntoManagement
)
?
"
Ⅱ级"
:
"Ⅲ
级"
:
name
;
return
name
==
null
?
(
isIntoManagement
==
null
||
!
isIntoManagement
)
?
"
二级"
:
"三
级"
:
name
;
}
}
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/resources/json/unitTypeLimitUserType.json
View file @
0014ec2c
...
...
@@ -65,5 +65,14 @@
"6616"
:
[],
"6617"
:
[],
"6549"
:
[]
},
"个人主体"
:
{
"6552"
:
[
"6713"
],
"6546"
:
[],
"6547"
:
[],
"6548"
:
[],
"6616"
:
[],
"6617"
:
[],
"6549"
:
[]
}
}
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