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
0f994c53
Commit
0f994c53
authored
Jan 15, 2025
by
hezhuozhi
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
b946fe51
320b7d3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
20 deletions
+3
-20
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+3
-20
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 @
0f994c53
...
@@ -3159,8 +3159,8 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -3159,8 +3159,8 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
}
inspectionDetectionInfo
.
setSequenceNbr
(
String
.
valueOf
(
equipmentInfoForm
.
get
(
"INSPECTIONDETECTIONINFO_SEQ"
)));
inspectionDetectionInfo
.
setSequenceNbr
(
String
.
valueOf
(
equipmentInfoForm
.
get
(
"INSPECTIONDETECTIONINFO_SEQ"
)));
iIdxBizJgInspectionDetectionInfoService
.
saveOrUpdateData
(
inspectionDetectionInfo
);
iIdxBizJgInspectionDetectionInfoService
.
saveOrUpdateData
(
inspectionDetectionInfo
);
}
else
if
(
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
equCategory
)
||
"2100"
.
equals
(
equCategory
)
||
"8300"
.
equals
(
equCategory
)
)
{
}
else
if
(
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
equCategory
)
||
"2100"
.
equals
(
equCategory
))
{
//更新时 固定式压力容器(2100)和 气瓶(2300)
工业管道(8300)
可以更新检验检测信息
//更新时 固定式压力容器(2100)和 气瓶(2300)可以更新检验检测信息
IdxBizJgInspectionDetectionInfo
inspectionDetectionInfo
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
equipmentInfoForm
),
IdxBizJgInspectionDetectionInfo
.
class
);
IdxBizJgInspectionDetectionInfo
inspectionDetectionInfo
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
equipmentInfoForm
),
IdxBizJgInspectionDetectionInfo
.
class
);
List
<
Map
<
String
,
Object
>>
inspectionAndTestingInstitutions
=
commonService
.
getUnitListByType
(
"inspection"
,
"gasCylindersForCars"
);
List
<
Map
<
String
,
Object
>>
inspectionAndTestingInstitutions
=
commonService
.
getUnitListByType
(
"inspection"
,
"gasCylindersForCars"
);
Optional
<
Map
<
String
,
Object
>>
optional
=
inspectionAndTestingInstitutions
.
stream
().
filter
(
x
->
x
.
get
(
"useCode"
).
equals
(
inspectionDetectionInfo
.
getInspectOrgCode
())).
findFirst
();
Optional
<
Map
<
String
,
Object
>>
optional
=
inspectionAndTestingInstitutions
.
stream
().
filter
(
x
->
x
.
get
(
"useCode"
).
equals
(
inspectionDetectionInfo
.
getInspectOrgCode
())).
findFirst
();
...
@@ -3204,9 +3204,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -3204,9 +3204,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
}
}
}
}
}
if
(
"8300"
.
equals
(
equCategory
))
{
useInfo
.
setProjectContraption
(((
String
)
equipmentInfoForm
.
get
(
"PROJECT_CONTRAPTION"
)).
trim
());
}
idxBizJgUseInfoService
.
saveOrUpdateData
(
useInfo
);
idxBizJgUseInfoService
.
saveOrUpdateData
(
useInfo
);
// 设计信息
// 设计信息
...
@@ -3538,21 +3535,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -3538,21 +3535,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
jsonObject
.
put
(
"useUnitCreditCode"
,
useUnitCreditCode
);
jsonObject
.
put
(
"useUnitCreditCode"
,
useUnitCreditCode
);
Page
<
JSONObject
>
page
=
new
Page
<>(
jsonObject
.
getLong
(
"number"
),
jsonObject
.
getLong
(
"size"
));
Page
<
JSONObject
>
page
=
new
Page
<>(
jsonObject
.
getLong
(
"number"
),
jsonObject
.
getLong
(
"size"
));
Set
<
String
>
records
=
EquipUsedCheckStrategyContext
.
getUsedStrategy
(
"useRegistration"
).
getEquipInFlow
(
useUnitCreditCode
);
Set
<
String
>
records
=
EquipUsedCheckStrategyContext
.
getUsedStrategy
(
"useRegistration"
).
getEquipInFlow
(
useUnitCreditCode
);
if
(
"8300"
.
equals
(
jsonObject
.
get
(
EQU_CATEGORY_CODE
)))
{
// 管道
if
(
"2300"
.
equals
(
jsonObject
.
get
(
EQU_CATEGORY_CODE
)))
{
// 气瓶
if
(
jsonObject
.
get
(
"projectContraption"
)
==
null
)
{
throw
new
BadRequest
(
"请先选择工程装置后,再选择设备信息!"
);
}
if
(!
jgUseRegistrationMapper
.
selectList
(
new
LambdaQueryWrapper
<
JgUseRegistration
>()
.
eq
(
JgUseRegistration:
:
getIsDelete
,
false
)
.
eq
(
JgUseRegistration:
:
getProjectContraption
,
jsonObject
.
get
(
"projectContraption"
))
.
eq
(
JgUseRegistration:
:
getUseUnitCreditCode
,
useUnitCreditCode
)
.
eq
(
JgUseRegistration:
:
getIsAddEquip
,
"0"
)
.
eq
(
JgUseRegistration:
:
getStatus
,
"已完成"
)
.
ne
(
JgUseRegistration:
:
getStatus
,
"已作废"
)).
isEmpty
()
&&
"0"
.
equals
(
jsonObject
.
get
(
"isAddEquip"
)))
{
throw
new
BadRequest
(
"该工程装置已做过使用登记,再选择增补功能进行登记!"
);
}
return
jgUseRegistrationMapper
.
queryForUnitPipelineEquipmentPage
(
page
,
jsonObject
,
records
);
}
else
if
(
"2300"
.
equals
(
jsonObject
.
get
(
EQU_CATEGORY_CODE
)))
{
// 气瓶
List
<
DictionarieValueModel
>
fillingMedium
=
Systemctl
.
dictionarieClient
.
dictValues
(
"FILLING_MEDIUM"
).
getResult
();
List
<
DictionarieValueModel
>
fillingMedium
=
Systemctl
.
dictionarieClient
.
dictValues
(
"FILLING_MEDIUM"
).
getResult
();
Map
<
String
,
Object
>
fillingMediumMap
=
fillingMedium
.
stream
().
collect
(
Collectors
.
toMap
(
DictionarieValueModel:
:
getDictDataKey
,
DictionarieValueModel:
:
getDictDataValue
));
Map
<
String
,
Object
>
fillingMediumMap
=
fillingMedium
.
stream
().
collect
(
Collectors
.
toMap
(
DictionarieValueModel:
:
getDictDataKey
,
DictionarieValueModel:
:
getDictDataValue
));
Page
<
JSONObject
>
result
=
jgUseRegistrationMapper
.
queryForUnitVesselEquipmentPage
(
page
,
jsonObject
,
records
);
Page
<
JSONObject
>
result
=
jgUseRegistrationMapper
.
queryForUnitVesselEquipmentPage
(
page
,
jsonObject
,
records
);
...
...
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