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
12f6294c
Commit
12f6294c
authored
Apr 11, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(JG):使用登记证添加气瓶类别
parent
3f121992
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
6 deletions
+27
-6
CylinderTypeEnum.java
...ejoin/amos/boot/module/jg/api/enums/CylinderTypeEnum.java
+14
-0
JgUseRegistrationMapper.xml
...api/src/main/resources/mapper/JgUseRegistrationMapper.xml
+2
-2
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+7
-2
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+4
-2
JgVehicleInformationServiceImpl.java
.../jg/biz/service/impl/JgVehicleInformationServiceImpl.java
+0
-0
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/enums/CylinderTypeEnum.java
0 → 100644
View file @
12f6294c
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
enums
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
@Getter
@AllArgsConstructor
public
enum
CylinderTypeEnum
{
CYLINDER
(
"瓶"
,
"2300"
),
SPECIAL_CYLINDER
(
"特种气瓶"
,
"23T0"
);
private
final
String
name
;
private
final
String
code
;
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationMapper.xml
View file @
12f6294c
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
ur.apply_no as applyNo,
ur.apply_no as applyNo,
ur.next_execute_ids as nextExecuteIds,
ur.next_execute_ids as nextExecuteIds,
ur.promoter,
ur.promoter,
ur.supervisory_code
as supervisoryCode,
GROUP_CONCAT(DISTINCT other.supervisory_code)
as supervisoryCode,
ur.use_registration_code as useRegistrationCode,
ur.use_registration_code as useRegistrationCode,
date_format(ur.audit_pass_date,'%Y-%m-%d') as auditPassDate,
date_format(ur.audit_pass_date,'%Y-%m-%d') as auditPassDate,
ur.receive_org_name as receiveOrgName,
ur.receive_org_name as receiveOrgName,
...
@@ -233,7 +233,7 @@
...
@@ -233,7 +233,7 @@
ur.apply_no as applyNo,
ur.apply_no as applyNo,
ur.next_execute_ids as nextExecuteIds,
ur.next_execute_ids as nextExecuteIds,
ur.promoter as promoter,
ur.promoter as promoter,
ur.supervisory_code
as supervisoryCode,
GROUP_CONCAT(DISTINCT other.supervisory_code)
as supervisoryCode,
ur.use_registration_code as useRegistrationCode,
ur.use_registration_code as useRegistrationCode,
date_format(ur.audit_pass_date, '%Y-%m-%d') as auditPassDate,
date_format(ur.audit_pass_date, '%Y-%m-%d') as auditPassDate,
ur.receive_org_name as receiveOrgName,
ur.receive_org_name as receiveOrgName,
...
...
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 @
12f6294c
...
@@ -26,6 +26,7 @@ import com.yeejoin.amos.boot.biz.common.utils.RedisUtils;
...
@@ -26,6 +26,7 @@ import com.yeejoin.amos.boot.biz.common.utils.RedisUtils;
import
com.yeejoin.amos.boot.module.jg.api.dto.*
;
import
com.yeejoin.amos.boot.module.jg.api.dto.*
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgRegistrationHistory
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgRegistrationHistory
;
import
com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.CylinderTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.EquipTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.EquipTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.PrintingTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.PrintingTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.CommonMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.CommonMapper
;
...
@@ -799,7 +800,7 @@ public class CommonServiceImpl implements ICommonService {
...
@@ -799,7 +800,7 @@ public class CommonServiceImpl implements ICommonService {
* @param response response
* @param response response
* @param pathResource PDF模版路径
* @param pathResource PDF模版路径
* @param printFileName 生成文件名称
* @param printFileName 生成文件名称
* @param
v
* @param
textSize 字体大小
*/
*/
private
void
fillParamValueToPdf
(
Map
<
String
,
Object
>
map
,
HttpServletResponse
response
,
String
pathResource
,
String
printFileName
,
float
textSize
)
{
private
void
fillParamValueToPdf
(
Map
<
String
,
Object
>
map
,
HttpServletResponse
response
,
String
pathResource
,
String
printFileName
,
float
textSize
)
{
// 读取资源文件夹下的模板
// 读取资源文件夹下的模板
...
@@ -1482,7 +1483,11 @@ public class CommonServiceImpl implements ICommonService {
...
@@ -1482,7 +1483,11 @@ public class CommonServiceImpl implements ICommonService {
String
equDefine
=
equipRegistrationInfo
.
getEquDefine
();
// 设备品种 "3110"
String
equDefine
=
equipRegistrationInfo
.
getEquDefine
();
// 设备品种 "3110"
if
(!
ObjectUtils
.
isEmpty
(
equCategory
))
{
if
(!
ObjectUtils
.
isEmpty
(
equCategory
))
{
// 设备种类简称
// 设备种类简称
String
equCategoryAbbrName
=
EquipTypeEnum
.
getMessage
(
equCategory
.
substring
(
0
,
1
));
String
equCategoryAbbrName
=
Optional
.
ofNullable
(
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
equCategory
)
?
CylinderTypeEnum
.
CYLINDER
.
getName
()
:
equCategory
)
.
map
(
category
->
category
.
substring
(
0
,
1
))
.
map
(
EquipTypeEnum:
:
getMessage
)
.
orElse
(
null
);
// 设备代码中间两位
// 设备代码中间两位
String
equipType2MidDigits
;
String
equipType2MidDigits
;
...
...
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 @
12f6294c
...
@@ -22,6 +22,7 @@ import com.yeejoin.amos.boot.module.jg.api.entity.JgRegistrationHistory;
...
@@ -22,6 +22,7 @@ import com.yeejoin.amos.boot.module.jg.api.entity.JgRegistrationHistory;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistration
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistration
;
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.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.CylinderTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.EquipTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.EquipTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.WorkFlowStatusEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.WorkFlowStatusEnum
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgUseRegistrationEqMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgUseRegistrationEqMapper
;
...
@@ -527,7 +528,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -527,7 +528,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
.
map
(
v
->
(
String
)
v
.
get
(
"record"
))
.
map
(
v
->
(
String
)
v
.
get
(
"record"
))
.
collect
(
Collectors
.
toList
())
.
collect
(
Collectors
.
toList
())
);
);
if
(!
"2300"
.
equals
(
map
.
get
(
"EQU_CATEGORY_CODE"
))
&&
inspectionDetectionInfoList
.
stream
().
anyMatch
(
info
->
if
(!
CylinderTypeEnum
.
CYLINDER
.
getCode
()
.
equals
(
map
.
get
(
"EQU_CATEGORY_CODE"
))
&&
inspectionDetectionInfoList
.
stream
().
anyMatch
(
info
->
ObjectUtils
.
isEmpty
(
info
)
||
ObjectUtils
.
isEmpty
(
info
.
getInspectType
())
||
ObjectUtils
.
isEmpty
(
info
)
||
ObjectUtils
.
isEmpty
(
info
.
getInspectType
())
||
ObjectUtils
.
isEmpty
(
info
.
getInspectConclusion
())
||
ObjectUtils
.
isEmpty
(
info
.
getInspectOrgCode
())
||
ObjectUtils
.
isEmpty
(
info
.
getInspectConclusion
())
||
ObjectUtils
.
isEmpty
(
info
.
getInspectOrgCode
())
||
ObjectUtils
.
isEmpty
(
info
.
getInspectOrgName
())))
{
ObjectUtils
.
isEmpty
(
info
.
getInspectOrgName
())))
{
...
@@ -850,6 +851,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -850,6 +851,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
LambdaQueryWrapper
<
IdxBizJgOtherInfo
>
lambdaOth
=
new
QueryWrapper
<
IdxBizJgOtherInfo
>().
lambda
();
LambdaQueryWrapper
<
IdxBizJgOtherInfo
>
lambdaOth
=
new
QueryWrapper
<
IdxBizJgOtherInfo
>().
lambda
();
lambdaOth
.
eq
(
IdxBizJgOtherInfo:
:
getRecord
,
String
.
valueOf
(
mapData
.
get
(
"equipId"
)));
lambdaOth
.
eq
(
IdxBizJgOtherInfo:
:
getRecord
,
String
.
valueOf
(
mapData
.
get
(
"equipId"
)));
IdxBizJgOtherInfo
otherInfo
=
otherInfoMapper
.
selectOne
(
lambdaOth
);
IdxBizJgOtherInfo
otherInfo
=
otherInfoMapper
.
selectOne
(
lambdaOth
);
jgUseRegistration
.
setSupervisoryCode
(
otherInfo
.
getSupervisoryCode
());
// 注册信息
// 注册信息
LambdaQueryWrapper
<
IdxBizJgRegisterInfo
>
lambdaReg
=
new
QueryWrapper
<
IdxBizJgRegisterInfo
>().
lambda
();
LambdaQueryWrapper
<
IdxBizJgRegisterInfo
>
lambdaReg
=
new
QueryWrapper
<
IdxBizJgRegisterInfo
>().
lambda
();
lambdaReg
.
eq
(
IdxBizJgRegisterInfo:
:
getRecord
,
String
.
valueOf
(
mapData
.
get
(
"equipId"
)));
lambdaReg
.
eq
(
IdxBizJgRegisterInfo:
:
getRecord
,
String
.
valueOf
(
mapData
.
get
(
"equipId"
)));
...
@@ -1173,7 +1175,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -1173,7 +1175,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
List
<
Map
<
String
,
Object
>>
equipmentLists
=
(
List
<
Map
<
String
,
Object
>>)
jsonObject
.
get
(
"equipmentLists"
);
List
<
Map
<
String
,
Object
>>
equipmentLists
=
(
List
<
Map
<
String
,
Object
>>)
jsonObject
.
get
(
"equipmentLists"
);
List
<
String
>
records
=
equipmentLists
.
stream
().
map
(
v
->
(
String
)
v
.
get
(
"record"
)).
collect
(
Collectors
.
toList
());
List
<
String
>
records
=
equipmentLists
.
stream
().
map
(
v
->
(
String
)
v
.
get
(
"record"
)).
collect
(
Collectors
.
toList
());
jsonObject
.
remove
(
"equipmentLists"
);
jsonObject
.
remove
(
"equipmentLists"
);
if
(
"2300"
.
equals
(
jsonObject
.
get
(
"EQU_CATEGORY_CODE"
)))
{
if
(
CylinderTypeEnum
.
CYLINDER
.
getCode
()
.
equals
(
jsonObject
.
get
(
"EQU_CATEGORY_CODE"
)))
{
jsonObject
.
put
(
"equipmentLists"
,
jgUseRegistrationMapper
.
queryForUnitVesselEquipment
(
records
));
jsonObject
.
put
(
"equipmentLists"
,
jgUseRegistrationMapper
.
queryForUnitVesselEquipment
(
records
));
}
else
{
}
else
{
jsonObject
.
put
(
"equipmentLists"
,
jgUseRegistrationMapper
.
queryForUnitPipelineEquipment
(
records
));
jsonObject
.
put
(
"equipmentLists"
,
jgUseRegistrationMapper
.
queryForUnitPipelineEquipment
(
records
));
...
...
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 @
12f6294c
This diff is collapsed.
Click to expand it.
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