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
768b4152
Commit
768b4152
authored
Dec 31, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:(jg):管道补证功能修改
parent
2925e9e2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
4 deletions
+35
-4
JgCertificateReplenishServiceImpl.java
...g/biz/service/impl/JgCertificateReplenishServiceImpl.java
+28
-2
IdxBizJgProjectContraption.java
...oot/module/ymt/api/entity/IdxBizJgProjectContraption.java
+7
-2
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/service/impl/JgCertificateReplenishServiceImpl.java
View file @
768b4152
...
...
@@ -62,6 +62,8 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
javax.annotation.PostConstruct
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.File
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.nio.file.Files
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDate
;
...
...
@@ -70,6 +72,7 @@ import java.util.*;
import
java.util.concurrent.TimeUnit
;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
/**
* 使用登记表补证服务实现类
...
...
@@ -861,8 +864,7 @@ public class JgCertificateReplenishServiceImpl extends BaseService<JgCertificate
}
//管道查询工程装置信息
if
(
PipelineEnum
.
PRESSURE_PIPELINE
.
getCode
().
equals
(
registrationManage
.
getEquListCode
()))
{
List
<
IdxBizJgProjectContraption
>
projectContraptionDtoList
=
jgProjectContraptionServiceImplService
.
queryProConByCertSeq
(
sequenceNbr
);
result
.
put
(
EQU_LISTS
,
projectContraptionDtoList
);
result
.
put
(
EQU_LISTS
,
getProConByUseRegistrationCode
(
registrationManage
.
getUseRegistrationCode
()));
}
//非管道信息
else
{
...
...
@@ -901,6 +903,30 @@ public class JgCertificateReplenishServiceImpl extends BaseService<JgCertificate
return
equipmentLists
;
}
public
List
<
IdxBizJgProjectContraption
>
getProConByUseRegistrationCode
(
String
useRegistrationCode
)
{
List
<
IdxBizJgProjectContraption
>
result
=
jgProjectContraptionServiceImplService
.
lambdaQuery
()
.
eq
(
IdxBizJgProjectContraption:
:
getIsDelete
,
Boolean
.
FALSE
)
.
isNull
(
IdxBizJgProjectContraption:
:
getProjectContraptionParentId
)
.
eq
(
IdxBizJgProjectContraption:
:
getUseRegistrationCode
,
useRegistrationCode
)
.
list
();
if
(!
ValidationUtil
.
isEmpty
(
result
))
{
result
.
forEach
(
record
->
{
BigDecimal
pipelineLength
=
BigDecimal
.
valueOf
(
record
.
getPipelineLength
());
BigDecimal
roundedValue
=
pipelineLength
.
setScale
(
3
,
RoundingMode
.
HALF_UP
);
BigDecimal
strippedValue
=
roundedValue
.
stripTrailingZeros
();
record
.
setPipelineLength
(
Double
.
valueOf
(
strippedValue
.
toPlainString
()));
record
.
setRecord
(
record
.
getSequenceNbr
());
record
.
setFullAddress
(
Stream
.
of
(
record
.
getProvinceName
(),
record
.
getCityName
(),
record
.
getCountyName
(),
record
.
getStreetName
(),
record
.
getAddress
())
.
map
(
value
->
value
==
null
?
""
:
value
)
.
collect
(
Collectors
.
joining
())
);
});
}
return
result
;
}
/**
* 撤回
*
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/entity/IdxBizJgProjectContraption.java
View file @
768b4152
...
...
@@ -325,7 +325,6 @@ public class IdxBizJgProjectContraption extends BaseEntity {
@TableField
(
exist
=
false
)
private
Boolean
happenAfterBiz
;
/**
* 登记类型:0-新增;1-历史有证;2-历史无证
*/
...
...
@@ -333,8 +332,14 @@ public class IdxBizJgProjectContraption extends BaseEntity {
private
String
regType
;
/**
* 是否
是否
纳管中文返回
* 是否纳管中文返回
*/
@TableField
(
exist
=
false
)
private
String
isIntoManagementName
;
/**
* 工程装置ID(补证使用)
*/
@TableField
(
exist
=
false
)
private
Long
record
;
}
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