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
1cee0d7f
Commit
1cee0d7f
authored
Feb 23, 2024
by
刘林
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
86a41689
12bb256b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
29 deletions
+33
-29
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+18
-5
installation-notification-report.ftl
.../resources/templates/installation-notification-report.ftl
+15
-24
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/IdxBizJgRegisterInfoServiceImpl.java
View file @
1cee0d7f
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.jg.biz.service.impl;
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.jg.biz.service.impl;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.StringUtils
;
import
com.baomidou.mybatisplus.core.toolkit.StringUtils
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
@@ -13,6 +14,7 @@ import com.yeejoin.amos.boot.module.jg.api.entity.JgInstallationNoticeEq;
...
@@ -13,6 +14,7 @@ import com.yeejoin.amos.boot.module.jg.api.entity.JgInstallationNoticeEq;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistrationEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistrationEq
;
import
com.yeejoin.amos.boot.module.jg.api.enums.CompanyTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.CompanyTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.ConstructionEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.ConstructionEnum
;
import
com.yeejoin.amos.boot.module.jg.biz.config.LocalBadRequest
;
import
com.yeejoin.amos.boot.module.jg.biz.dao.ESEquipmentCategory
;
import
com.yeejoin.amos.boot.module.jg.biz.dao.ESEquipmentCategory
;
import
com.yeejoin.amos.boot.module.jg.biz.service.*
;
import
com.yeejoin.amos.boot.module.jg.biz.service.*
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.ESEquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.ESEquipmentCategoryDto
;
...
@@ -22,6 +24,7 @@ import com.yeejoin.amos.boot.module.ymt.api.enums.EquimentEnum;
...
@@ -22,6 +24,7 @@ import com.yeejoin.amos.boot.module.ymt.api.enums.EquimentEnum;
import
com.yeejoin.amos.boot.module.ymt.api.enums.EquipmentClassifityEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.EquipmentClassifityEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.CategoryOtherInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.CategoryOtherInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgRegisterInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgRegisterInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.RegistrationInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.SuperviseInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.SuperviseInfoMapper
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
...
@@ -91,6 +94,9 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -91,6 +94,9 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
private
RedisUtils
redisUtils
;
private
RedisUtils
redisUtils
;
@Autowired
@Autowired
RegistrationInfoMapper
tzsJgRegistrationInfoMapper
;
@Autowired
IIdxBizJgUseInfoService
idxBizJgUseInfoService
;
IIdxBizJgUseInfoService
idxBizJgUseInfoService
;
@Autowired
@Autowired
IIdxBizJgDesignInfoService
iIdxBizJgDesignInfoService
;
IIdxBizJgDesignInfoService
iIdxBizJgDesignInfoService
;
...
@@ -151,10 +157,20 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -151,10 +157,20 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
*/
*/
public
ResponseModel
equipmentRegisterSubmit
(
Map
<
String
,
Object
>
paramMap
)
{
public
ResponseModel
equipmentRegisterSubmit
(
Map
<
String
,
Object
>
paramMap
)
{
String
record
=
null
;
String
record
=
null
;
LinkedHashMap
equipmentClassForm
=
(
LinkedHashMap
)
paramMap
.
get
(
EQUIP_CLASS_FORM_ID
);
LinkedHashMap
equipmentInfoForm
=
(
LinkedHashMap
)
paramMap
.
get
(
EQUIP_INFO_FORM_ID
);
LinkedHashMap
equipmentParamsForm
=
(
LinkedHashMap
)
paramMap
.
get
(
EQUIP_PARAMS_FORM_ID
);
// 设备代码 字段的唯一性校验
LambdaQueryWrapper
<
RegistrationInfo
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
RegistrationInfo:
:
getEquCode
,
equipmentInfoForm
.
get
(
"EQU_CODE"
));
Integer
count
=
tzsJgRegistrationInfoMapper
.
selectCount
(
wrapper
);
if
(
count
>
0
)
{
throw
new
LocalBadRequest
(
"设备代码已存在,请重新输入!"
);
}
//操作类型
//操作类型
try
{
try
{
//保存数据
//保存数据
record
=
batchSubmitOrUpdate
(
paramMap
);
record
=
batchSubmitOrUpdate
(
equipmentClassForm
,
equipmentInfoForm
,
equipmentParamsForm
);
//保存Es数据
//保存Es数据
if
(!
ObjectUtils
.
isEmpty
(
record
))
{
if
(!
ObjectUtils
.
isEmpty
(
record
))
{
checkEsData
(
record
);
checkEsData
(
record
);
...
@@ -1175,12 +1191,9 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -1175,12 +1191,9 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
return
object
;
return
object
;
}
}
private
String
batchSubmitOrUpdate
(
Map
<
String
,
Object
>
map
)
{
private
String
batchSubmitOrUpdate
(
LinkedHashMap
equipmentClassForm
,
LinkedHashMap
equipmentInfoForm
,
LinkedHashMap
equipmentParamsForm
)
{
Date
date
=
new
Date
();
Date
date
=
new
Date
();
String
record
=
null
;
String
record
=
null
;
LinkedHashMap
equipmentClassForm
=
(
LinkedHashMap
)
map
.
get
(
EQUIP_CLASS_FORM_ID
);
LinkedHashMap
equipmentInfoForm
=
(
LinkedHashMap
)
map
.
get
(
EQUIP_INFO_FORM_ID
);
LinkedHashMap
equipmentParamsForm
=
(
LinkedHashMap
)
map
.
get
(
EQUIP_PARAMS_FORM_ID
);
//操作类型
//操作类型
String
operateType
=
ValidationUtil
.
isEmpty
(
equipmentInfoForm
.
get
(
"SEQUENCE_NBR"
))
?
OPERATESAVE
:
OPERATEEDIT
;
String
operateType
=
ValidationUtil
.
isEmpty
(
equipmentInfoForm
.
get
(
"SEQUENCE_NBR"
))
?
OPERATESAVE
:
OPERATEEDIT
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/templates/installation-notification-report.ftl
View file @
1cee0d7f
...
@@ -315,7 +315,7 @@
...
@@ -315,7 +315,7 @@
<w:tblPr>
<w:tblPr>
<w:tblStyle
w:val=
"8"
/>
<w:tblStyle
w:val=
"8"
/>
<w:tblW
w:w=
"4998"
w:type=
"pct"
/>
<w:tblW
w:w=
"4998"
w:type=
"pct"
/>
<w:
jc
w:val=
"center
"
/>
<w:
tblInd
w:w=
"0"
w:type=
"dxa
"
/>
<w:tblBorders>
<w:tblBorders>
<w:top
w:val=
"single"
w:color=
"auto"
w:sz=
"4"
w:space=
"0"
/>
<w:top
w:val=
"single"
w:color=
"auto"
w:sz=
"4"
w:space=
"0"
/>
<w:left
w:val=
"single"
w:color=
"auto"
w:sz=
"4"
w:space=
"0"
/>
<w:left
w:val=
"single"
w:color=
"auto"
w:sz=
"4"
w:space=
"0"
/>
...
@@ -358,8 +358,7 @@
...
@@ -358,8 +358,7 @@
</w:tblCellMar>
</w:tblCellMar>
</w:tblPrEx>
</w:tblPrEx>
<w:trPr>
<w:trPr>
<w:trHeight
w:val=
"794"
w:hRule=
"exact"
/>
<w:trHeight
w:val=
"820"
w:hRule=
"exact"
/>
<w:jc
w:val=
"center"
/>
</w:trPr>
</w:trPr>
<w:tc>
<w:tc>
<w:tcPr>
<w:tcPr>
...
@@ -544,8 +543,7 @@
...
@@ -544,8 +543,7 @@
</w:tblCellMar>
</w:tblCellMar>
</w:tblPrEx>
</w:tblPrEx>
<w:trPr>
<w:trPr>
<w:trHeight
w:val=
"794"
w:hRule=
"exact"
/>
<w:trHeight
w:val=
"820"
w:hRule=
"exact"
/>
<w:jc
w:val=
"center"
/>
</w:trPr>
</w:trPr>
<w:tc>
<w:tc>
<w:tcPr>
<w:tcPr>
...
@@ -743,8 +741,7 @@
...
@@ -743,8 +741,7 @@
</w:tblCellMar>
</w:tblCellMar>
</w:tblPrEx>
</w:tblPrEx>
<w:trPr>
<w:trPr>
<w:trHeight
w:val=
"794"
w:hRule=
"exact"
/>
<w:trHeight
w:val=
"942"
w:hRule=
"exact"
/>
<w:jc
w:val=
"center"
/>
</w:trPr>
</w:trPr>
<w:tc>
<w:tc>
<w:tcPr>
<w:tcPr>
...
@@ -767,7 +764,6 @@
...
@@ -767,7 +764,6 @@
<w:lang
w:val=
"en-US"
w:eastAsia=
"zh-CN"
/>
<w:lang
w:val=
"en-US"
w:eastAsia=
"zh-CN"
/>
</w:rPr>
</w:rPr>
</w:pPr>
</w:pPr>
<w:bookmarkStart
w:id=
"0"
w:name=
"_GoBack"
/>
<w:r>
<w:r>
<w:rPr>
<w:rPr>
<w:rFonts
w:hint=
"eastAsia"
w:ascii=
"宋体"
w:hAnsi=
"宋体"
w:eastAsia=
"宋体"
<w:rFonts
w:hint=
"eastAsia"
w:ascii=
"宋体"
w:hAnsi=
"宋体"
w:eastAsia=
"宋体"
...
@@ -925,7 +921,6 @@
...
@@ -925,7 +921,6 @@
</w:p>
</w:p>
</w:tc>
</w:tc>
</w:tr>
</w:tr>
<w:bookmarkEnd
w:id=
"0"
/>
<w:tr>
<w:tr>
<w:tblPrEx>
<w:tblPrEx>
<w:tblBorders>
<w:tblBorders>
...
@@ -944,8 +939,7 @@
...
@@ -944,8 +939,7 @@
</w:tblCellMar>
</w:tblCellMar>
</w:tblPrEx>
</w:tblPrEx>
<w:trPr>
<w:trPr>
<w:trHeight
w:val=
"794"
w:hRule=
"exact"
/>
<w:trHeight
w:val=
"820"
w:hRule=
"exact"
/>
<w:jc
w:val=
"center"
/>
</w:trPr>
</w:trPr>
<w:tc>
<w:tc>
<w:tcPr>
<w:tcPr>
...
@@ -1136,8 +1130,7 @@
...
@@ -1136,8 +1130,7 @@
</w:tblCellMar>
</w:tblCellMar>
</w:tblPrEx>
</w:tblPrEx>
<w:trPr>
<w:trPr>
<w:trHeight
w:val=
"794"
w:hRule=
"exact"
/>
<w:trHeight
w:val=
"868"
w:hRule=
"exact"
/>
<w:jc
w:val=
"center"
/>
</w:trPr>
</w:trPr>
<w:tc>
<w:tc>
<w:tcPr>
<w:tcPr>
...
@@ -1244,7 +1237,6 @@
...
@@ -1244,7 +1237,6 @@
</w:tblPrEx>
</w:tblPrEx>
<w:trPr>
<w:trPr>
<w:trHeight
w:val=
"1007"
w:hRule=
"exact"
/>
<w:trHeight
w:val=
"1007"
w:hRule=
"exact"
/>
<w:jc
w:val=
"center"
/>
</w:trPr>
</w:trPr>
<w:tc>
<w:tc>
<w:tcPr>
<w:tcPr>
...
@@ -2243,8 +2235,7 @@
...
@@ -2243,8 +2235,7 @@
</w:tblCellMar>
</w:tblCellMar>
</w:tblPrEx>
</w:tblPrEx>
<w:trPr>
<w:trPr>
<w:trHeight
w:val=
"794"
w:hRule=
"exact"
/>
<w:trHeight
w:val=
"815"
w:hRule=
"exact"
/>
<w:jc
w:val=
"center"
/>
</w:trPr>
</w:trPr>
<w:tc>
<w:tc>
<w:tcPr>
<w:tcPr>
...
@@ -2435,8 +2426,7 @@
...
@@ -2435,8 +2426,7 @@
</w:tblCellMar>
</w:tblCellMar>
</w:tblPrEx>
</w:tblPrEx>
<w:trPr>
<w:trPr>
<w:trHeight
w:val=
"654"
w:hRule=
"exact"
/>
<w:trHeight
w:val=
"833"
w:hRule=
"exact"
/>
<w:jc
w:val=
"center"
/>
</w:trPr>
</w:trPr>
<w:tc>
<w:tc>
<w:tcPr>
<w:tcPr>
...
@@ -2543,8 +2533,7 @@
...
@@ -2543,8 +2533,7 @@
</w:tblCellMar>
</w:tblCellMar>
</w:tblPrEx>
</w:tblPrEx>
<w:trPr>
<w:trPr>
<w:trHeight
w:val=
"639"
w:hRule=
"exact"
/>
<w:trHeight
w:val=
"881"
w:hRule=
"exact"
/>
<w:jc
w:val=
"center"
/>
</w:trPr>
</w:trPr>
<w:tc>
<w:tc>
<w:tcPr>
<w:tcPr>
...
@@ -2651,8 +2640,7 @@
...
@@ -2651,8 +2640,7 @@
</w:tblCellMar>
</w:tblCellMar>
</w:tblPrEx>
</w:tblPrEx>
<w:trPr>
<w:trPr>
<w:trHeight
w:val=
"794"
w:hRule=
"exact"
/>
<w:trHeight
w:val=
"862"
w:hRule=
"exact"
/>
<w:jc
w:val=
"center"
/>
</w:trPr>
</w:trPr>
<w:tc>
<w:tc>
<w:tcPr>
<w:tcPr>
...
@@ -2843,8 +2831,7 @@
...
@@ -2843,8 +2831,7 @@
</w:tblCellMar>
</w:tblCellMar>
</w:tblPrEx>
</w:tblPrEx>
<w:trPr>
<w:trPr>
<w:trHeight
w:val=
"649"
w:hRule=
"exact"
/>
<w:trHeight
w:val=
"1158"
w:hRule=
"exact"
/>
<w:jc
w:val=
"center"
/>
</w:trPr>
</w:trPr>
<w:tc>
<w:tc>
<w:tcPr>
<w:tcPr>
...
@@ -3253,6 +3240,7 @@
...
@@ -3253,6 +3240,7 @@
<w:rsid
w:val=
"2BE17798"
/>
<w:rsid
w:val=
"2BE17798"
/>
<w:rsid
w:val=
"2C680039"
/>
<w:rsid
w:val=
"2C680039"
/>
<w:rsid
w:val=
"2C8951ED"
/>
<w:rsid
w:val=
"2C8951ED"
/>
<w:rsid
w:val=
"2CC0603F"
/>
<w:rsid
w:val=
"2DFB7085"
/>
<w:rsid
w:val=
"2DFB7085"
/>
<w:rsid
w:val=
"2F996B56"
/>
<w:rsid
w:val=
"2F996B56"
/>
<w:rsid
w:val=
"2F9E416C"
/>
<w:rsid
w:val=
"2F9E416C"
/>
...
@@ -3278,6 +3266,7 @@
...
@@ -3278,6 +3266,7 @@
<w:rsid
w:val=
"46BF4C9C"
/>
<w:rsid
w:val=
"46BF4C9C"
/>
<w:rsid
w:val=
"47394A4E"
/>
<w:rsid
w:val=
"47394A4E"
/>
<w:rsid
w:val=
"47685334"
/>
<w:rsid
w:val=
"47685334"
/>
<w:rsid
w:val=
"48A871D1"
/>
<w:rsid
w:val=
"49415E3C"
/>
<w:rsid
w:val=
"49415E3C"
/>
<w:rsid
w:val=
"4BA34B8C"
/>
<w:rsid
w:val=
"4BA34B8C"
/>
<w:rsid
w:val=
"4D185106"
/>
<w:rsid
w:val=
"4D185106"
/>
...
@@ -3330,6 +3319,7 @@
...
@@ -3330,6 +3319,7 @@
<w:rsid
w:val=
"79767E6F"
/>
<w:rsid
w:val=
"79767E6F"
/>
<w:rsid
w:val=
"79BA2F1D"
/>
<w:rsid
w:val=
"79BA2F1D"
/>
<w:rsid
w:val=
"7A0041B6"
/>
<w:rsid
w:val=
"7A0041B6"
/>
<w:rsid
w:val=
"7AD63CA8"
/>
<w:rsid
w:val=
"7ADE49EA"
/>
<w:rsid
w:val=
"7ADE49EA"
/>
<w:rsid
w:val=
"7BB16DAF"
/>
<w:rsid
w:val=
"7BB16DAF"
/>
<w:rsid
w:val=
"7BE530CE"
/>
<w:rsid
w:val=
"7BE530CE"
/>
...
@@ -3337,6 +3327,7 @@
...
@@ -3337,6 +3327,7 @@
<w:rsid
w:val=
"7E9C4EDE"
/>
<w:rsid
w:val=
"7E9C4EDE"
/>
<w:rsid
w:val=
"7EC71F75"
/>
<w:rsid
w:val=
"7EC71F75"
/>
<w:rsid
w:val=
"7F1B445E"
/>
<w:rsid
w:val=
"7F1B445E"
/>
<w:rsid
w:val=
"7F623D8C"
/>
</w:rsids>
</w:rsids>
<m:mathPr>
<m:mathPr>
<m:brkBin
m:val=
"before"
/>
<m:brkBin
m:val=
"before"
/>
...
...
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