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
af6cfc51
Commit
af6cfc51
authored
Jun 13, 2025
by
刘林
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
81176386
aaddc812
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
51 additions
and
20 deletions
+51
-20
ProjectContraptionChangeDataDto.java
...ot/module/jg/api/dto/ProjectContraptionChangeDataDto.java
+8
-10
JgResumeInfoMapper.xml
...e-jg-api/src/main/resources/mapper/JgResumeInfoMapper.xml
+2
-1
ChangeFieldWatchConstants.java
...odule/jg/biz/edit/constant/ChangeFieldWatchConstants.java
+1
-1
ChangeEquipImpactCertListener.java
...iz/edit/event/listener/ChangeEquipImpactCertListener.java
+1
-0
CommonEquipDataProcessService.java
...biz/edit/process/equip/CommonEquipDataProcessService.java
+5
-0
SingleProjectEquipChangeProcess.java
...z/edit/process/equip/SingleProjectEquipChangeProcess.java
+3
-2
IdxBizJgConstructionInfoServiceImpl.java
...biz/service/impl/IdxBizJgConstructionInfoServiceImpl.java
+18
-0
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+12
-5
IdxBizJgUseInfo.java
...join/amos/boot/module/ymt/api/entity/IdxBizJgUseInfo.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/ProjectContraptionChangeDataDto.java
View file @
af6cfc51
...
...
@@ -66,18 +66,16 @@ public class ProjectContraptionChangeDataDto extends BaseChangeDataDto {
private
String
productQualificationCertificate
;
@FieldDisplayDefine
(
value
=
"使用
地点代码_省
"
,
typeHandler
=
"regionCodeTypeHandler"
)
@FieldDisplayDefine
(
value
=
"使用
省份
"
,
typeHandler
=
"regionCodeTypeHandler"
)
private
String
province
;
@FieldDisplayDefine
(
value
=
"使用
地点代码_
市"
,
typeHandler
=
"regionCodeTypeHandler"
)
@FieldDisplayDefine
(
value
=
"使用市"
,
typeHandler
=
"regionCodeTypeHandler"
)
private
String
city
;
@FieldDisplayDefine
(
value
=
"使用地点代码_区(县)"
,
typeHandler
=
"regionCodeTypeHandler"
)
@FieldDisplayDefine
(
value
=
"使用区县"
,
typeHandler
=
"regionCodeTypeHandler"
)
private
String
county
;
@FieldDisplayDefine
(
value
=
"使用地点代码_街道(镇)"
,
typeHandler
=
"regionCodeTypeHandler"
)
@FieldDisplayDefine
(
value
=
"使用街道/镇"
,
typeHandler
=
"regionCodeTypeHandler"
)
private
String
street
;
...
...
@@ -85,19 +83,19 @@ public class ProjectContraptionChangeDataDto extends BaseChangeDataDto {
private
String
address
;
@FieldDisplayDefine
(
value
=
"使用地点名称省"
)
@FieldDisplayDefine
(
value
=
"使用地点名称省"
,
isRepeatColumn
=
true
)
private
String
provinceName
;
@FieldDisplayDefine
(
value
=
"使用地点_市名称"
)
@FieldDisplayDefine
(
value
=
"使用地点_市名称"
,
isRepeatColumn
=
true
)
private
String
cityName
;
@FieldDisplayDefine
(
value
=
"使用地点_区名称"
)
@FieldDisplayDefine
(
value
=
"使用地点_区名称"
,
isRepeatColumn
=
true
)
private
String
countyName
;
@FieldDisplayDefine
(
value
=
" 使用地点_街道名称"
)
@FieldDisplayDefine
(
value
=
" 使用地点_街道名称"
,
isRepeatColumn
=
true
)
private
String
streetName
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgResumeInfoMapper.xml
View file @
af6cfc51
...
...
@@ -10,7 +10,8 @@
</delete>
<select
id=
"queryPageListByChangeIds"
resultType=
"com.yeejoin.amos.boot.module.jg.api.dto.JgResumeInfoDto"
>
SELECT *
SELECT
*
FROM tzs_jg_resume_info
WHERE
<foreach
collection=
"equIds"
item=
"id"
open=
"("
separator=
"or"
close=
")"
>
...
...
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
→
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/edit/
constant
/ChangeFieldWatchConstants.java
View file @
af6cfc51
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
edit
.
event
.
listener
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
edit
.
constant
;
import
java.util.*
;
...
...
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 @
af6cfc51
...
...
@@ -8,6 +8,7 @@ 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.JgInstallationNoticeEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistrationManage
;
import
com.yeejoin.amos.boot.module.jg.biz.edit.constant.ChangeFieldWatchConstants
;
import
com.yeejoin.amos.boot.module.jg.biz.edit.event.BaseBizDataChangeEvent
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.IdxBizJgProjectContraptionServiceImpl
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgInstallationNoticeEqServiceImpl
;
...
...
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 @
af6cfc51
...
...
@@ -948,6 +948,11 @@ public class CommonEquipDataProcessService {
item
.
put
(
"inspectReport"
,
JSON
.
parse
(
r
.
getInspectReport
()));
// 兼容逻辑,管道级别 原业务存的name,编辑存的code,进行转换name/code->code
item
.
put
(
"deviceLevel"
,
pieLineLevelTypeHandler
.
getCodeByName
(
r
.
getDeviceLevel
()));
// 原始业务不包含此字段 需要加上 否则流程中第一次编辑时该字段丢失导致安装信息无法更新
if
(
r
.
getConstructionInfoSeq
()
==
null
){
IdxBizJgConstructionInfo
constructionInfo
=
jgConstructionInfoService
.
queryNewestDetailIdByRecord
(
r
.
getRecord
());
item
.
put
(
"constructionInfoSeq"
,
constructionInfo
.
getSequenceNbr
());
}
item
.
put
(
"isEdit"
,
true
);
return
item
;
}).
collect
(
Collectors
.
toList
()));
...
...
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/SingleProjectEquipChangeProcess.java
View file @
af6cfc51
...
...
@@ -95,7 +95,7 @@ public class SingleProjectEquipChangeProcess implements IEquipChangeDataProcessS
// 技术参数变更日志
this
.
buildTechParamChangeLog
(
record
,
pipelineNew
,
pipelineOld
,
projectContraptionChangeDataDto
,
allChangeColumns
);
}
else
{
// 实时更新
// 基本信息
// 基本信息
-特殊管道的使用信息变化更新但是不记录变更流水
this
.
updateUseInfo
(
pipelineNew
,
projectContraptionChangeDataDto
,
allChangeColumns
);
// 安装信息
this
.
updateConstructionInfo
(
pipelineNew
,
projectContraptionChangeDataDto
,
allChangeColumns
);
...
...
@@ -218,7 +218,8 @@ public class SingleProjectEquipChangeProcess implements IEquipChangeDataProcessS
// 冗余的字典名称字段更新
commonEquipDataProcessService
.
setNameByCode2UseInfo
(
useInfoNew
);
List
<
FieldChangeMeta
>
useInfoFieldChangeMetas
=
commonEquipDataProcessService
.
simpleTrackAndUpdate
(
commonEquipDataProcessService
.
getJgUseRegistrationService
().
getUseInfoMapper
(),
useInfoOld
,
useInfoNew
,
projectContraptionChangeDataDto
.
getProjectContraptionId
()
+
"/"
+
useInfoNew
.
getRecord
(),
"record"
,
useInfoNew
.
getRecord
());
allChangeColumns
.
addAll
(
useInfoFieldChangeMetas
);
// 管道不记录使用信息变化,使用信息的变化已装置来体现
// allChangeColumns.addAll(useInfoFieldChangeMetas);
}
static
void
setNewUseAddressInfo
(
ProjectContraptionChangeDataDto
projectContraptionChangeDataDto
,
IdxBizJgUseInfo
useInfoNew
)
{
...
...
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/IdxBizJgConstructionInfoServiceImpl.java
View file @
af6cfc51
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.entity.TzsBaseEntity
;
import
com.yeejoin.amos.boot.module.jg.biz.service.IIdxBizJgConstructionInfoService
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.IdxBizJgConstructionInfoDto
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgConstructionInfo
;
...
...
@@ -41,4 +42,20 @@ public class IdxBizJgConstructionInfoServiceImpl extends BaseService<IdxBizJgCon
}
return
result
;
}
/**
* 查询最新的一条施工信息主键
* @param record 设备唯一标识
* @return 主键
*/
public
IdxBizJgConstructionInfo
queryNewestDetailIdByRecord
(
String
record
)
{
IdxBizJgConstructionInfo
result
=
new
IdxBizJgConstructionInfo
();
QueryWrapper
<
IdxBizJgConstructionInfo
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
lambda
().
eq
(
IdxBizJgConstructionInfo:
:
getRecord
,
record
).
orderByDesc
(
IdxBizJgConstructionInfo:
:
getUscDate
).
select
(
TzsBaseEntity:
:
getSequenceNbr
);
List
<
IdxBizJgConstructionInfo
>
constructionInfoList
=
list
(
queryWrapper
);
if
(!
ValidationUtil
.
isEmpty
(
constructionInfoList
)){
BeanUtils
.
copyProperties
(
constructionInfoList
.
get
(
0
),
result
);;
}
return
result
;
}
}
\ No newline at end of file
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 @
af6cfc51
...
...
@@ -43,6 +43,7 @@ import com.yeejoin.amos.boot.module.jg.biz.context.EquipUsedCheckStrategyContext
import
com.yeejoin.amos.boot.module.jg.biz.context.FlowingEquipRedisContext
;
import
com.yeejoin.amos.boot.module.jg.biz.edit.permission.FillingEditPermForCurrentUser
;
import
com.yeejoin.amos.boot.module.jg.biz.edit.process.biz.useRegister.UseRegisterBackupManager
;
import
com.yeejoin.amos.boot.module.jg.biz.edit.typeHandler.PieLineLevelTypeHandler
;
import
com.yeejoin.amos.boot.module.jg.biz.event.CancellationEvent
;
import
com.yeejoin.amos.boot.module.jg.biz.event.publisher.EventPublisher
;
import
com.yeejoin.amos.boot.module.jg.biz.feign.TzsServiceFeignClient
;
...
...
@@ -262,6 +263,9 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
@Autowired
private
IdxBizJgTechParamsPipelineServiceImpl
idxBizJgTechParamsPipelineServiceImpl
;
@Autowired
private
PieLineLevelTypeHandler
pieLineLevelTypeHandler
;
/**
* @param auditPassDate 通过时间
...
...
@@ -1275,6 +1279,9 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
for
(
Map
<
String
,
Object
>
piePine
:
piePines
)
{
JSONObject
item
=
JSONObject
.
parseObject
(
JSON
.
toJSONString
(
piePine
));
IdxBizJgTechParamsPipeline
pipeline
=
new
IdxBizJgTechParamsPipeline
();
pipeline
.
setDeviceLevel
(
pieLineLevelTypeHandler
.
getCodeByName
(
item
.
getString
(
"deviceLevel"
)));
pipeline
.
setPipeName
(
item
.
getString
(
"pipeName"
));
pipeline
.
setPipelineNumber
(
item
.
getString
(
"pipelineNumber"
));
pipeline
.
setMedium
(
item
.
getString
(
"medium"
));
pipeline
.
setPressure
(
item
.
getString
(
"pressure"
));
pipeline
.
setNominalDiameter
(
item
.
getString
(
"nominalDiameter"
));
...
...
@@ -1295,11 +1302,11 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
idxBizJgDesignInfoService
.
update
(
lambdaDes
);
// 安装信息修改
if
(
item
.
getString
(
"constructionInfoSeq"
)
!=
null
)
{
LambdaUpdateWrapper
<
IdxBizJgConstructionInfo
>
updateWrapper1
=
new
LambdaUpdateWrapper
<>();
updateWrapper1
.
eq
(
TzsBaseEntity:
:
getSequenceNbr
,
item
.
getString
(
"constructionInfoSeq"
));
updateWrapper1
.
set
(
IdxBizJgConstructionInfo:
:
getUscUnitName
,
item
.
getString
(
"uscUnitName"
));
updateWrapper1
.
set
(
IdxBizJgConstructionInfo:
:
getUscDate
,
ValidationUtil
.
isEmpty
(
item
.
getString
(
"uscDate"
))
?
null
:
DateUtil
.
parse
(
item
.
getString
(
"uscDate"
),
DatePattern
.
NORM_MONTH_FORMAT
));
idxBizJgConstructionInfoService
.
update
(
updateWrapper1
);
LambdaUpdateWrapper
<
IdxBizJgConstructionInfo
>
constructionInfoLambdaUpdateWrapper
=
new
LambdaUpdateWrapper
<>();
constructionInfoLambdaUpdateWrapper
.
eq
(
TzsBaseEntity:
:
getSequenceNbr
,
item
.
getString
(
"constructionInfoSeq"
));
constructionInfoLambdaUpdateWrapper
.
set
(
IdxBizJgConstructionInfo:
:
getUscUnitName
,
item
.
getString
(
"uscUnitName"
));
constructionInfoLambdaUpdateWrapper
.
set
(
IdxBizJgConstructionInfo:
:
getUscDate
,
ValidationUtil
.
isEmpty
(
item
.
getString
(
"uscDate"
))
?
null
:
DateUtil
.
parse
(
item
.
getString
(
"uscDate"
),
DatePattern
.
NORM_MONTH_FORMAT
));
idxBizJgConstructionInfoService
.
update
(
constructionInfoLambdaUpdateWrapper
);
}
}
}
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/entity/IdxBizJgUseInfo.java
View file @
af6cfc51
...
...
@@ -271,7 +271,7 @@ public class IdxBizJgUseInfo extends TzsBaseEntity implements IBaseChangeData {
* 工程装置名称(工业管道使用)
*/
@TableField
(
"\"PROJECT_CONTRAPTION\""
)
@FieldDisplayDefine
(
value
=
"工程装置名称(工业管道使用)"
)
@FieldDisplayDefine
(
value
=
"工程装置名称(工业管道使用)"
,
isRepeatColumn
=
true
)
private
String
projectContraption
;
...
...
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