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
320099f9
Commit
320099f9
authored
Oct 31, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg): 压力管道管道长度
1.改造变更登记后更新装置的管道长度
parent
b556bb51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
PieLineDataChangeServiceImpl.java
.../biz/edit/process/equip/PieLineDataChangeServiceImpl.java
+1
-3
JgChangeRegistrationReformServiceImpl.java
...z/service/impl/JgChangeRegistrationReformServiceImpl.java
+6
-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/process/equip/PieLineDataChangeServiceImpl.java
View file @
320099f9
...
...
@@ -12,7 +12,6 @@ import com.yeejoin.amos.boot.module.common.api.dao.ESEquipmentCategory;
import
com.yeejoin.amos.boot.module.common.api.dao.EsEquipmentDao
;
import
com.yeejoin.amos.boot.module.common.api.dto.ESEquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.ESEquipmentInfo
;
import
com.yeejoin.amos.boot.module.jg.api.common.PipLenCalUtils
;
import
com.yeejoin.amos.boot.module.jg.api.dto.*
;
import
com.yeejoin.amos.boot.module.jg.biz.edit.constant.EditConstant
;
import
com.yeejoin.amos.boot.module.jg.biz.edit.typeHandler.CbDataDictTypeHandler
;
...
...
@@ -342,7 +341,6 @@ public class PieLineDataChangeServiceImpl {
wrapper
.
eq
(
BaseEntity:
:
getSequenceNbr
,
projectContraptionId
);
wrapper
.
set
(
IdxBizJgProjectContraption:
:
getPipelineLength
,
this
.
calTotalPieLineLength
(
projectContraptionId
));
idxBizJgProjectContraptionServiceImpl
.
update
(
wrapper
);
}
private
Double
calTotalPieLineLength
(
String
projectContraptionId
)
{
...
...
@@ -352,7 +350,7 @@ public class PieLineDataChangeServiceImpl {
List
<
IdxBizJgTechParamsPipeline
>
techParamsPipelines
=
idxBizJgTechParamsPipelineService
.
list
(
new
LambdaQueryWrapper
<
IdxBizJgTechParamsPipeline
>().
in
(
IdxBizJgTechParamsPipeline:
:
getRecord
,
records
).
select
(
IdxBizJgTechParamsPipeline:
:
getRecord
,
IdxBizJgTechParamsPipeline:
:
getPipeLength
));
return
techParamsPipelines
.
stream
().
filter
(
i
->
i
.
getPipeLength
()
!=
null
).
map
(
e
->
new
BigDecimal
(
e
.
getPipeLength
()))
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
)
.
setScale
(
3
,
RoundingMode
.
HALF_UP
).
doubleValue
();
.
setScale
(
3
,
RoundingMode
.
HALF_UP
).
stripTrailingZeros
().
doubleValue
();
}
public
String
calPipelineLength
(
Map
<
String
,
List
<
PipelineChangeItemDto
>>
pipelineChangeItemMap
)
{
...
...
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/JgChangeRegistrationReformServiceImpl.java
View file @
320099f9
...
...
@@ -36,6 +36,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.changeRegistrationReform.ChangeRegisterReformBackupManager
;
import
com.yeejoin.amos.boot.module.jg.biz.edit.process.equip.PieLineDataChangeServiceImpl
;
import
com.yeejoin.amos.boot.module.jg.biz.event.publisher.EventPublisher
;
import
com.yeejoin.amos.boot.module.jg.biz.feign.TzsServiceFeignClient
;
import
com.yeejoin.amos.boot.module.jg.biz.service.*
;
...
...
@@ -200,6 +201,9 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
@Autowired
JgResumeInfoServiceImpl
jgResumeInfoService
;
@Autowired
private
PieLineDataChangeServiceImpl
pieLineDataChangeService
;
/***
* @deprecated 根据查询调教获取分页对象
* @param dto 查询的dto对象
...
...
@@ -869,6 +873,8 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
useInfoLambdaUpdateWrapper
.
set
(
IdxBizJgUseInfo:
:
getIsIntoManagement
,
true
);
idxBizJgUseInfoService
.
update
(
useInfoLambdaUpdateWrapper
);
}
// 更新装置的汇总的管道长度
pieLineDataChangeService
.
updatePipelineLength
(
jgChangeRegistrationReform
.
getProjectContraptionId
());
return
paramsPipelines
;
}
...
...
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