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
4bee1480
Commit
4bee1480
authored
Dec 04, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_tzs_bugfix' into develop_tzs_test
parents
48b1333c
4e8424b0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
20 deletions
+29
-20
TzsAppService.java
.../amos/boot/module/app/biz/service/impl/TzsAppService.java
+1
-1
CommonMapper.xml
...-module-jg-api/src/main/resources/mapper/CommonMapper.xml
+1
-1
JgUseRegistrationManageMapper.xml
...c/main/resources/mapper/JgUseRegistrationManageMapper.xml
+21
-1
SingleEquipChangeProcess.java
...e/jg/biz/edit/process/equip/SingleEquipChangeProcess.java
+1
-1
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+5
-16
No files found.
amos-boot-system-tzs/amos-boot-module-app/amos-boot-module-app-biz/src/main/java/com/yeejoin/amos/boot/module/app/biz/service/impl/TzsAppService.java
View file @
4bee1480
...
...
@@ -324,7 +324,7 @@ public class TzsAppService {
// 设备维保信息
JSONObject
useJsonObject
=
new
JSONObject
();
List
maintenanceList
=
new
ArrayList
();
getGroupList
(
null
,
record
,
MaintenanceInfo
.
class
,
MaintenanceInfoModelForWX
.
class
,
maintenanceInfoService
,
maintenanceList
,
fals
e
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
MaintenanceInfo
.
class
,
MaintenanceInfoModelForWX
.
class
,
maintenanceInfoService
,
maintenanceList
,
tru
e
,
dictionaryList
,
equipmentCategories
);
useJsonObject
.
put
(
"title"
,
"设备维保信息"
);
if
(
maintenanceList
.
size
()
>
1
)
{
List
maintenanceList1
=
new
ArrayList
();
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/CommonMapper.xml
View file @
4bee1480
...
...
@@ -3499,7 +3499,7 @@
</select>
<select
id=
"queryTcmUnitSeqByCreditCode"
resultType=
"java.lang.String"
>
select sequence_nbr seq from tzs_tcm_unit_info where
unit_code = #{unitCreditCode}
select sequence_nbr seq from tzs_tcm_unit_info where
(unit_code = #{unitCreditCode} or unit_name = #{unitCreditCode})
<if
test=
"unitType != null and unitType != ''"
>
and unit_type in
<foreach
item=
"item"
index=
"index"
collection=
"unitType.split(',')"
open=
"("
separator=
","
close=
")"
>
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationManageMapper.xml
View file @
4bee1480
...
...
@@ -82,7 +82,27 @@
</select>
<select
id=
"queryForPage"
resultType=
"com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationManageDto"
>
<include
refid=
"page_list"
/>
,estate.sequence_nbr AS estateUnitName
FROM tzs_jg_use_registration_manage tjurm
LEFT JOIN (
SELECT DISTINCT ON (ri.use_org_code)
ri.use_org_code, ei.sequence_nbr
FROM idx_biz_jg_register_info ri
JOIN idx_biz_jg_use_info ui ON ui.record = ri.record
JOIN tzs_tcm_unit_info ei ON ei.unit_code = ui.ESTATE_UNIT_CREDIT_CODE
<where>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if
test=
"dto.equCategoryCode != null and dto.equCategoryCode != ''"
>
and ri."EQU_CATEGORY" = #{dto.equCategoryCode}
</if>
<if
test=
"dto.dataType == 'company' "
>
AND ui."USE_UNIT_CREDIT_CODE" = #{dto.useUnitCreditCode}
</if>
</where>
ORDER BY ri.use_org_code, ui.rec_date DESC
) estate ON estate.use_org_code = tjurm.use_registration_code
<where>
tjurm.is_delete = 0
<if
test=
"dto.equList != null and dto.equList != ''"
>
...
...
@@ -589,7 +609,7 @@
ri.use_org_code, ei.sequence_nbr
FROM idx_biz_jg_register_info ri
JOIN idx_biz_jg_use_info ui ON ui.record = ri.record
JOIN tz
_base_enterprise_info ei ON ei.use_
unit_code = ui.ESTATE_UNIT_CREDIT_CODE
JOIN tz
s_tcm_unit_info ei ON ei.
unit_code = ui.ESTATE_UNIT_CREDIT_CODE
<where>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and ri.EQU_LIST = #{dto.equListCode}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/edit/process/equip/SingleEquipChangeProcess.java
View file @
4bee1480
...
...
@@ -285,7 +285,7 @@ public class SingleEquipChangeProcess implements IEquipChangeDataProcessStrategy
private
void
beforeCheckForUseOrgCode
(
IdxBizJgUseInfo
useInfoOld
,
IdxBizJgRegisterInfo
registerInfoNew
)
{
// 1.使用登记证编辑时重复性校验
if
(!
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
registerInfoNew
.
getEquCategory
()))
{
// 非气瓶逻辑,所有设备不能重复
if
(
useInfoOld
.
getDataSource
().
equals
(
"jg_his"
)
&&
StringUtils
.
isNotEmpty
(
registerInfoNew
.
getUseOrgCode
()))
{
if
(
useInfoOld
.
getDataSource
().
startsWith
(
"jg_his"
)
&&
StringUtils
.
isNotEmpty
(
registerInfoNew
.
getUseOrgCode
()))
{
Boolean
isUsed
=
commonEquipDataProcessService
.
getCommonService
().
useRegistrationCertificateAccountUnique
(
registerInfoNew
.
getUseOrgCode
(),
useInfoOld
.
getRecord
());
if
(
isUsed
)
{
throw
new
BadRequest
(
"使用登记证编号已存在!"
);
...
...
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 @
4bee1480
...
...
@@ -1030,8 +1030,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
if
(!
ValidationUtil
.
isEmpty
(
map
.
getString
(
"estateUnitSeq"
)))
{
String
estateUnitSeq
=
String
.
valueOf
(
map
.
getString
(
"estateUnitSeq"
));
Map
<
String
,
String
>
propertyUnitInfo
=
commonServiceImpl
.
queryTcmUnitInfoBySeq
(
estateUnitSeq
,
TcmUnitTypeEnum
.
CQ
.
getCode
());
map
.
put
(
"estateUnitCode"
,
propertyUnitInfo
.
get
(
"unitCode"
));
map
.
put
(
"estateUnitName"
,
propertyUnitInfo
.
get
(
"unitName"
));
map
.
put
(
"estateUnitCode"
,
MapUtil
.
getStr
(
propertyUnitInfo
,
"unitCode"
));
map
.
put
(
"estateUnitName"
,
MapUtil
.
getStr
(
propertyUnitInfo
,
"unitCode"
)
+
"_"
+
MapUtil
.
getStr
(
propertyUnitInfo
,
"unitName"
));
}
// 使用地点
...
...
@@ -4499,20 +4499,9 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
useInfo
.
setStreetName
(
useStreetName
);
useInfo
.
setAddress
(
String
.
valueOf
(
map
.
get
(
"address"
)));
useInfo
.
setIsNotXiXian
(
String
.
valueOf
(
map
.
get
(
"isXixian"
)));
useInfo
.
setEstateUnitCreditCode
(
Optional
.
ofNullable
(
map
.
get
(
"estateUnitName"
))
.
map
(
Object:
:
toString
)
.
filter
(
s
->
s
.
contains
(
"_"
))
.
map
(
s
->
s
.
split
(
"_"
,
2
))
.
filter
(
parts
->
parts
.
length
==
2
)
.
map
(
parts
->
parts
[
0
])
.
orElse
(
null
));
useInfo
.
setEstateUnitName
(
Optional
.
ofNullable
(
map
.
get
(
"estateUnitName"
))
.
map
(
Object:
:
toString
)
.
filter
(
s
->
s
.
contains
(
"_"
))
.
map
(
s
->
s
.
split
(
"_"
,
2
))
.
filter
(
parts
->
parts
.
length
==
2
)
.
map
(
parts
->
parts
[
1
])
.
orElse
(
null
));
Map
<
String
,
String
>
propertyUnitInfo
=
commonServiceImpl
.
queryTcmUnitInfoBySeq
(
MapUtil
.
getStr
(
map
,
"estateUnitName"
),
TcmUnitTypeEnum
.
CQ
.
getCode
());
useInfo
.
setEstateUnitCreditCode
(
MapUtil
.
getStr
(
propertyUnitInfo
,
"unitCode"
));
useInfo
.
setEstateUnitName
(
MapUtil
.
getStr
(
propertyUnitInfo
,
"unitName"
));
useInfo
.
setPhone
(
String
.
valueOf
(
map
.
get
(
"phone"
)));
useInfo
.
setSafetyManager
(
map
.
getString
(
"safetyManagerName"
));
useInfo
.
setSafetyManagerId
(
map
.
getString
(
"safetyManagerId"
));
...
...
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