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
f0d71a38
Commit
f0d71a38
authored
Aug 11, 2025
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: 注释掉无效的参数设置并添加ES设备操作
refactor: 作废单位类型业务处理新索引数据,添加ES设备DAO注入及数据操作 refactor: 在SupervisionInfoMapper中添加对idx_biz_jg_supervision_info的删除操作
parent
25b9c03a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
3 deletions
+47
-3
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+40
-0
DPSubController.java
...boot/module/statistcs/biz/controller/DPSubController.java
+3
-3
SupervisionInfoMapper.xml
...t-api/src/main/resources/mapper/SupervisionInfoMapper.xml
+4
-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/service/impl/JgUseRegistrationServiceImpl.java
View file @
f0d71a38
...
@@ -29,7 +29,9 @@ import com.yeejoin.amos.boot.biz.common.utils.RedisKey;
...
@@ -29,7 +29,9 @@ import com.yeejoin.amos.boot.biz.common.utils.RedisKey;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.SnowflakeIdUtil
;
import
com.yeejoin.amos.boot.biz.common.utils.SnowflakeIdUtil
;
import
com.yeejoin.amos.boot.module.common.api.dao.ESEquipmentCategory
;
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.dto.ESEquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.ESEquipmentInfo
;
import
com.yeejoin.amos.boot.module.common.api.enums.CylinderTypeEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.CylinderTypeEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.JYJCResultEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.JYJCResultEnum
;
import
com.yeejoin.amos.boot.module.jg.api.dto.*
;
import
com.yeejoin.amos.boot.module.jg.api.dto.*
;
...
@@ -225,6 +227,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -225,6 +227,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
@Autowired
@Autowired
private
ESEquipmentCategory
esEquipmentCategory
;
private
ESEquipmentCategory
esEquipmentCategory
;
@Autowired
@Autowired
private
EsEquipmentDao
esEquipmentDao
;
@Autowired
private
JgResumeInfoServiceImpl
jgResumeInfoService
;
private
JgResumeInfoServiceImpl
jgResumeInfoService
;
@Autowired
@Autowired
private
JgCertificateChangeRecordServiceImpl
certificateChangeRecordService
;
private
JgCertificateChangeRecordServiceImpl
certificateChangeRecordService
;
...
@@ -3322,6 +3326,14 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -3322,6 +3326,14 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
superviseInfoMapper
.
deleteDataAll
(
records
);
superviseInfoMapper
.
deleteDataAll
(
records
);
//删除es中的数据
//删除es中的数据
esEquipmentCategory
.
deleteAll
(
esDtoList
);
esEquipmentCategory
.
deleteAll
(
esDtoList
);
// 构建设备删除的 新索引的DTO 列表
List
<
ESEquipmentInfo
>
esNewDtoList
=
records
.
stream
().
map
(
v
->
{
ESEquipmentInfo
esDto
=
new
ESEquipmentInfo
();
esDto
.
setSEQUENCE_NBR
(
v
);
return
esDto
;
}).
collect
(
Collectors
.
toList
());
//删除es新索引中的数据
esEquipmentDao
.
deleteAll
(
esNewDtoList
);
//作废使用登记证 & 生成使用登记证的流水
//作废使用登记证 & 生成使用登记证的流水
this
.
invalidUseRegistrationCertificate
(
jgUseRegistration
);
this
.
invalidUseRegistrationCertificate
(
jgUseRegistration
);
// 单据逻辑删除
// 单据逻辑删除
...
@@ -3361,6 +3373,10 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -3361,6 +3373,10 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
equInfoEs
.
setProjectContraptionId
(
v
.
getOriginProjectContraptionId
());
equInfoEs
.
setProjectContraptionId
(
v
.
getOriginProjectContraptionId
());
esEquipmentCategory
.
save
(
equInfoEs
);
esEquipmentCategory
.
save
(
equInfoEs
);
ESEquipmentInfo
esEquipmentInfo
=
esEquipmentDao
.
findById
(
v
.
getEquId
()).
get
();
esEquipmentInfo
.
setProjectContraptionId
(
v
.
getOriginProjectContraptionId
());
esEquipmentDao
.
save
(
esEquipmentInfo
);
LambdaQueryWrapper
<
IdxBizJgUseInfo
>
lambda
=
new
QueryWrapper
<
IdxBizJgUseInfo
>().
lambda
();
LambdaQueryWrapper
<
IdxBizJgUseInfo
>
lambda
=
new
QueryWrapper
<
IdxBizJgUseInfo
>().
lambda
();
lambda
.
eq
(
IdxBizJgUseInfo:
:
getRecord
,
String
.
valueOf
(
v
.
getEquId
()));
lambda
.
eq
(
IdxBizJgUseInfo:
:
getRecord
,
String
.
valueOf
(
v
.
getEquId
()));
IdxBizJgUseInfo
useInfo
=
useInfoMapper
.
selectOne
(
lambda
);
IdxBizJgUseInfo
useInfo
=
useInfoMapper
.
selectOne
(
lambda
);
...
@@ -3737,6 +3753,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -3737,6 +3753,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
.
eq
(
IdxBizJgOtherInfo:
:
getRecord
,
record
)
.
eq
(
IdxBizJgOtherInfo:
:
getRecord
,
record
)
.
select
(
IdxBizJgOtherInfo:
:
getSupervisoryCode
,
IdxBizJgOtherInfo:
:
getCode96333Type
));
.
select
(
IdxBizJgOtherInfo:
:
getSupervisoryCode
,
IdxBizJgOtherInfo:
:
getCode96333Type
));
Optional
<
ESEquipmentCategoryDto
>
optional
=
esEquipmentCategory
.
findById
(
record
);
Optional
<
ESEquipmentCategoryDto
>
optional
=
esEquipmentCategory
.
findById
(
record
);
Optional
<
ESEquipmentInfo
>
esEquipmentDaoOptional
=
esEquipmentDao
.
findById
(
record
);
if
(
optional
.
isPresent
())
{
if
(
optional
.
isPresent
())
{
ESEquipmentCategoryDto
esEquipmentCategoryDto
=
optional
.
get
();
ESEquipmentCategoryDto
esEquipmentCategoryDto
=
optional
.
get
();
// 非历史有证设备,作废清除使用登记证编号
// 非历史有证设备,作废清除使用登记证编号
...
@@ -3758,6 +3776,28 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -3758,6 +3776,28 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
}
}
esEquipmentCategory
.
save
(
esEquipmentCategoryDto
);
esEquipmentCategory
.
save
(
esEquipmentCategoryDto
);
}
}
if
(
esEquipmentDaoOptional
.
isPresent
())
{
ESEquipmentInfo
esEquipmentInfo
=
esEquipmentDaoOptional
.
get
();
// 非历史有证设备,作废清除使用登记证编号
if
(!
"1"
.
equals
(
jgUseRegistration
.
getRegType
()))
{
esEquipmentInfo
.
setUSE_ORG_CODE
(
null
);
}
// 历史有证设备、历史无证设备,系统生成的96333清空
if
((
"1"
.
equals
(
jgUseRegistration
.
getRegType
())
||
"2"
.
equals
(
jgUseRegistration
.
getRegType
()))
&&
"2"
.
equals
(
otherInfo
.
getCode96333Type
()))
{
esEquipmentInfo
.
setCODE96333
(
null
);
}
esEquipmentInfo
.
setUSE_ORG_CODE
(
null
);
//esEquipmentCategoryDto.setSTATUS(null);
esEquipmentInfo
.
setEQU_STATE
(
null
);
esEquipmentInfo
.
setORG_BRANCH_CODE
(
null
);
esEquipmentInfo
.
setORG_BRANCH_NAME
(
null
);
if
(
jgConstructionInfo
!=
null
)
{
esEquipmentInfo
.
setUSC_UNIT_NAME
(
jgConstructionInfo
.
getUscUnitName
());
esEquipmentInfo
.
setUSC_UNIT_CREDIT_CODE
(
jgConstructionInfo
.
getUscUnitCreditCode
());
}
esEquipmentDao
.
save
(
esEquipmentInfo
);
}
}
}
/**
/**
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/controller/DPSubController.java
View file @
f0d71a38
...
@@ -51,9 +51,9 @@ public class DPSubController {
...
@@ -51,9 +51,9 @@ public class DPSubController {
if
(
ValidationUtil
.
isEmpty
(
param
.
get
(
"equList"
))){
if
(
ValidationUtil
.
isEmpty
(
param
.
get
(
"equList"
))){
param
.
put
(
"equList"
,
param
.
get
(
"EQU_LIST_CODE"
));
param
.
put
(
"equList"
,
param
.
get
(
"EQU_LIST_CODE"
));
}
}
if
(
ValidationUtil
.
isEmpty
(
param
.
get
(
"PRODUCT_NAME"
))){
//
if (ValidationUtil.isEmpty(param.get("PRODUCT_NAME"))){
param
.
put
(
"PRODUCT_NAME"
,
param
.
get
(
"EQU_LIST"
));
//
param.put("PRODUCT_NAME", param.get("EQU_LIST"));
}
//
}
if
(!
ValidationUtil
.
isEmpty
(
param
.
get
(
"equListCode"
))){
// 问题列表关联设备
if
(!
ValidationUtil
.
isEmpty
(
param
.
get
(
"equListCode"
))){
// 问题列表关联设备
param
.
put
(
"equList"
,
param
.
get
(
"equListCode"
));
param
.
put
(
"equList"
,
param
.
get
(
"equListCode"
));
param
.
put
(
"EQU_LIST_CODE"
,
param
.
get
(
"equListCode"
));
param
.
put
(
"EQU_LIST_CODE"
,
param
.
get
(
"equListCode"
));
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/SupervisionInfoMapper.xml
View file @
f0d71a38
...
@@ -89,6 +89,10 @@
...
@@ -89,6 +89,10 @@
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
#{record}
</foreach>
</foreach>
delete from idx_biz_jg_supervision_info where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_maintenance_record_info where "RECORD" in
delete from idx_biz_jg_maintenance_record_info where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
#{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