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
f33823b6
Commit
f33823b6
authored
Feb 09, 2026
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):气瓶履历信息处理
parent
64eca2fe
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
47 additions
and
32 deletions
+47
-32
JgResumeInfoEq.java
...eejoin/amos/boot/module/jg/api/entity/JgResumeInfoEq.java
+3
-3
CommonMapper.xml
...-module-jg-api/src/main/resources/mapper/CommonMapper.xml
+17
-9
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+1
-1
DataDockServiceImpl.java
.../boot/module/jg/biz/service/impl/DataDockServiceImpl.java
+1
-1
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+1
-1
JgCertificateReplenishServiceImpl.java
...g/biz/service/impl/JgCertificateReplenishServiceImpl.java
+1
-1
JgChangeRegistrationNameServiceImpl.java
...biz/service/impl/JgChangeRegistrationNameServiceImpl.java
+1
-1
JgChangeRegistrationUnitServiceImpl.java
...biz/service/impl/JgChangeRegistrationUnitServiceImpl.java
+1
-1
JgChangeVehicleRegistrationUnitServiceImpl.java
...vice/impl/JgChangeVehicleRegistrationUnitServiceImpl.java
+1
-1
JgEnableDisableServiceImpl.java
...odule/jg/biz/service/impl/JgEnableDisableServiceImpl.java
+1
-1
JgOverDesignServiceLifeServiceImpl.java
.../biz/service/impl/JgOverDesignServiceLifeServiceImpl.java
+1
-1
JgVehicleInformationServiceImpl.java
.../jg/biz/service/impl/JgVehicleInformationServiceImpl.java
+1
-1
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+1
-1
DPSubBizMapper.xml
...atistics-api/src/main/resources/mapper/DPSubBizMapper.xml
+16
-9
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/entity/JgResumeInfoEq.java
View file @
f33823b6
...
...
@@ -26,14 +26,14 @@ public class JgResumeInfoEq implements Serializable {
/**
* 主键
*/
@TableId
(
value
=
"sequence_nbr"
,
type
=
IdType
.
ID_WORKER
)
private
Lo
ng
sequenceNbr
;
@TableId
(
value
=
"sequence_nbr"
,
type
=
IdType
.
UUID
)
private
Stri
ng
sequenceNbr
;
/**
* 履历主表id
*/
@TableField
(
"resume_id"
)
private
Lo
ng
resumeId
;
private
Stri
ng
resumeId
;
/**
* 设备ID
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/CommonMapper.xml
View file @
f33823b6
...
...
@@ -149,19 +149,27 @@
t.apply_no AS applyNo,
t.rec_user_id AS recUserId,
t.rec_user_name AS recUserName,
DATE_FORMAT(
rec_date,'%Y-%m-%d %H:%i:%s') as
recDate,
DATE_FORMAT(
t.rec_date,'%Y-%m-%d %H:%i:%s') AS
recDate,
t.approval_unit AS approvalUnit,
t.status,
t.route_path AS routePath
FROM
tzs_jg_resume_info t
JOIN (SELECT apply_no, MAX(rec_date) AS max_rec_date
FROM tzs_jg_resume_info
WHERE equ_id = #{record}
GROUP BY apply_no
) AS latest
ON t.apply_no = latest.apply_no AND t.rec_date = latest.max_rec_date
FROM tzs_jg_resume_info t
JOIN (
SELECT r.apply_no, MAX(r.rec_date) AS max_rec_date
FROM tzs_jg_resume_info r
LEFT JOIN tzs_jg_resume_info_eq eq
ON eq.resume_id = r.sequence_nbr
WHERE (r.equ_id = #{record} OR eq.equ_id = #{record})
GROUP BY r.apply_no
) latest
ON t.apply_no = latest.apply_no
AND t.rec_date = latest.max_rec_date
WHERE t.equ_id = #{record}
OR t.sequence_nbr IN (
SELECT resume_id
FROM tzs_jg_resume_info_eq
WHERE equ_id = #{record}
)
ORDER BY t.rec_date ASC
</select>
<select
id=
"selectPromoterData"
resultType=
"java.lang.String"
>
...
...
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 @
f33823b6
...
...
@@ -3502,7 +3502,7 @@ public class CommonServiceImpl implements ICommonService {
public
void
batchInsertResumeEq
(
Long
resumeId
,
List
<
Map
<
String
,
Object
>>
equipmentLists
)
{
jgResumeInfoEqService
.
saveBatchResumeEq
(
equipmentLists
.
stream
()
.
map
(
e
->
JgResumeInfoEq
.
builder
()
.
resumeId
(
resumeId
)
.
resumeId
(
String
.
valueOf
(
resumeId
)
)
.
equId
(
String
.
valueOf
(
e
.
get
(
"record"
)))
.
build
())
.
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/service/impl/DataDockServiceImpl.java
View file @
f33823b6
...
...
@@ -1760,7 +1760,7 @@ public class DataDockServiceImpl {
jgResumeInfoService
.
save
(
info
);
jgResumeInfoEqService
.
saveBatchResumeEq
(
records
.
stream
()
.
map
(
record
->
JgResumeInfoEq
.
builder
()
.
resumeId
(
info
.
getSequenceNbr
(
))
.
resumeId
(
String
.
valueOf
(
info
.
getSequenceNbr
()
))
.
equId
(
record
)
.
build
())
.
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/service/impl/IdxBizJgRegisterInfoServiceImpl.java
View file @
f33823b6
...
...
@@ -3927,7 +3927,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
info
.
setRoutePath
(
routePath
);
jgResumeInfoService
.
save
(
info
);
jgResumeInfoEqMapper
.
insert
(
JgResumeInfoEq
.
builder
()
.
resumeId
(
info
.
getSequenceNbr
(
))
.
resumeId
(
String
.
valueOf
(
info
.
getSequenceNbr
()
))
.
equId
(
record
)
.
build
());
}
...
...
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 @
f33823b6
...
...
@@ -563,7 +563,7 @@ public class JgCertificateReplenishServiceImpl extends BaseService<JgCertificate
jgResumeInfoService
.
save
(
info
);
jgResumeInfoEqService
.
saveBatchResumeEq
(
replenishEqs
.
stream
()
.
map
(
eq
->
JgResumeInfoEq
.
builder
()
.
resumeId
(
info
.
getSequenceNbr
(
))
.
resumeId
(
String
.
valueOf
(
info
.
getSequenceNbr
()
))
.
equId
(
eq
.
getEquId
())
.
build
())
.
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/service/impl/JgChangeRegistrationNameServiceImpl.java
View file @
f33823b6
...
...
@@ -1108,7 +1108,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
jgResumeInfoService
.
save
(
resumeInfo
);
jgResumeInfoEqService
.
saveBatchResumeEq
(
cylinderEquipIds
.
stream
()
.
map
(
e
->
JgResumeInfoEq
.
builder
()
.
resumeId
(
resumeInfo
.
getSequenceNbr
(
))
.
resumeId
(
String
.
valueOf
(
resumeInfo
.
getSequenceNbr
()
))
.
equId
(
e
)
.
build
())
.
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/service/impl/JgChangeRegistrationUnitServiceImpl.java
View file @
f33823b6
...
...
@@ -2244,7 +2244,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
jgResumeInfoService
.
save
(
resumeInfo
);
jgResumeInfoEqService
.
saveBatchResumeEq
(
records
.
stream
()
.
map
(
e
->
JgResumeInfoEq
.
builder
()
.
resumeId
(
resumeInfo
.
getSequenceNbr
(
))
.
resumeId
(
String
.
valueOf
(
resumeInfo
.
getSequenceNbr
()
))
.
equId
(
e
)
.
build
())
.
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/service/impl/JgChangeVehicleRegistrationUnitServiceImpl.java
View file @
f33823b6
...
...
@@ -494,7 +494,7 @@ public class JgChangeVehicleRegistrationUnitServiceImpl extends BaseService<JgCh
jgResumeInfoService
.
save
(
info
);
jgResumeInfoEqService
.
saveBatchResumeEq
(
registrationUnitEqs
.
stream
()
.
map
(
eq
->
JgResumeInfoEq
.
builder
()
.
resumeId
(
info
.
getSequenceNbr
(
))
.
resumeId
(
String
.
valueOf
(
info
.
getSequenceNbr
()
))
.
equId
(
eq
.
getEquId
())
.
build
())
.
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/service/impl/JgEnableDisableServiceImpl.java
View file @
f33823b6
...
...
@@ -752,7 +752,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
}
jgResumeInfoEqService
.
saveBatchResumeEq
(
eqs
.
stream
()
.
map
(
eq
->
JgResumeInfoEq
.
builder
()
.
resumeId
(
resumeId
)
.
resumeId
(
String
.
valueOf
(
resumeId
)
)
.
equId
(
eq
.
getEquId
())
.
build
()).
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/service/impl/JgOverDesignServiceLifeServiceImpl.java
View file @
f33823b6
...
...
@@ -744,7 +744,7 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign
jgResumeInfoService
.
save
(
info
);
jgResumeInfoEqService
.
saveBatchResumeEq
(
designInfoList
.
stream
()
.
map
(
eq
->
JgResumeInfoEq
.
builder
()
.
resumeId
(
info
.
getSequenceNbr
(
))
.
resumeId
(
String
.
valueOf
(
info
.
getSequenceNbr
()
))
.
equId
(
eq
.
getRecord
())
.
build
())
.
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/service/impl/JgVehicleInformationServiceImpl.java
View file @
f33823b6
...
...
@@ -1066,7 +1066,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
jgResumeInfoService
.
save
(
info
);
jgResumeInfoEqService
.
saveBatchResumeEq
(
equipIdList
.
stream
()
.
map
(
equipId
->
JgResumeInfoEq
.
builder
()
.
resumeId
(
info
.
getSequenceNbr
(
))
.
resumeId
(
String
.
valueOf
(
info
.
getSequenceNbr
()
))
.
equId
(
equipId
)
.
build
())
.
collect
(
Collectors
.
toList
()));
...
...
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/JyjcInspectionApplicationServiceImpl.java
View file @
f33823b6
...
...
@@ -903,7 +903,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
// TODO 暂存json,在结果录入后,将数据更新技术参数-检验详情使用 考虑兼容老数据
if
(
model
.
getEquCategory
().
equals
(
CylinderTypeEnum
.
CYLINDER
.
getCode
())){
jgResumeInfoEqList
.
add
(
JgResumeInfoEq
.
builder
()
.
resumeId
(
resultSeq
)
.
resumeId
(
String
.
valueOf
(
resultSeq
)
)
.
equId
(
applicationEquipModels
.
get
(
i
).
getEquipUnicode
())
.
build
());
// 主表只创建一次
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/DPSubBizMapper.xml
View file @
f33823b6
...
...
@@ -9,19 +9,26 @@
t.apply_no AS applyNo,
t.rec_user_id AS recUserId,
t.rec_user_name AS recUserName,
DATE_FORMAT(
rec_date,'%Y-%m-%d %H:%i:%s') as
recDate,
DATE_FORMAT(
t.rec_date,'%Y-%m-%d %H:%i:%s') AS
recDate,
t.approval_unit AS approvalUnit,
t.status,
t.route_path AS routePath
FROM
tzs_jg_resume_info t
JOIN (SELECT apply_no, MAX(rec_date) AS max_rec_date
FROM tzs_jg_resume_info
WHERE equ_id = #{record}
GROUP BY apply_no
) AS latest
ON t.apply_no = latest.apply_no AND t.rec_date = latest.max_rec_date
FROM tzs_jg_resume_info t
LEFT JOIN tzs_jg_resume_info_eq eq
ON eq.resume_id = t.sequence_nbr
JOIN (
SELECT r.apply_no, MAX(r.rec_date) AS max_rec_date
FROM tzs_jg_resume_info r
LEFT JOIN tzs_jg_resume_info_eq eq2
ON eq2.resume_id = r.sequence_nbr
WHERE r.equ_id = #{record}
OR eq2.equ_id = #{record}
GROUP BY r.apply_no
) latest
ON t.apply_no = latest.apply_no
AND t.rec_date = latest.max_rec_date
WHERE t.equ_id = #{record}
OR eq.equ_id = #{record}
ORDER BY t.rec_date ASC
</select>
...
...
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