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
ba2fa5e4
Commit
ba2fa5e4
authored
Mar 12, 2025
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
aae401e6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
JgChangeRegistrationReformMapper.xml
...ain/resources/mapper/JgChangeRegistrationReformMapper.xml
+1
-1
JgChangeRegistrationReformServiceImpl.java
...z/service/impl/JgChangeRegistrationReformServiceImpl.java
+11
-7
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+2
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgChangeRegistrationReformMapper.xml
View file @
ba2fa5e4
...
@@ -140,7 +140,7 @@
...
@@ -140,7 +140,7 @@
</if>
</if>
<if
test=
"dto.dataType != null and dto.dataType == 'supervision' "
>
<if
test=
"dto.dataType != null and dto.dataType == 'supervision' "
>
and (ur.receive_company_code = #{dto.receiveOrgCode} or (ur.transfer_to_user_ids like concat('%',#{currentUserId},'%')))
and (ur.receive_company_code = #{dto.receiveOrgCode} or (ur.transfer_to_user_ids like concat('%',#{currentUserId},'%')))
AND ur.instance
_i
d
<![CDATA[<>]]>
''
AND ur.instance
I
d
<![CDATA[<>]]>
''
</if>
</if>
<if
test=
"dto.dataType != null and dto.dataType == 'company' "
>
<if
test=
"dto.dataType != null and dto.dataType == 'company' "
>
and (ur.use_unit_credit_code = #{dto.useUnitCreditCode} or (ur.transfer_to_user_ids like concat('%',#{currentUserId},'%')))
and (ur.use_unit_credit_code = #{dto.useUnitCreditCode} or (ur.transfer_to_user_ids like concat('%',#{currentUserId},'%')))
...
...
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/JgChangeRegistrationReformServiceImpl.java
View file @
ba2fa5e4
...
@@ -18,6 +18,8 @@ import com.yeejoin.amos.boot.biz.common.bo.CompanyBo;
...
@@ -18,6 +18,8 @@ import com.yeejoin.amos.boot.biz.common.bo.CompanyBo;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
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.module.common.api.dao.ESEquipmentCategory
;
import
com.yeejoin.amos.boot.module.common.api.dto.ESEquipmentCategoryDto
;
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.*
;
import
com.yeejoin.amos.boot.module.jg.api.entity.*
;
import
com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum
;
...
@@ -128,6 +130,8 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -128,6 +130,8 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
private
IdxBizJgFactoryInfoServiceImpl
idxBizJgFactoryInfoService
;
private
IdxBizJgFactoryInfoServiceImpl
idxBizJgFactoryInfoService
;
@Autowired
@Autowired
private
OtherInfoMapper
otherInfoMapper
;
private
OtherInfoMapper
otherInfoMapper
;
@Autowired
private
ESEquipmentCategory
esEquipmentCategory
;
//改造登记关系表mapper
//改造登记关系表mapper
@Autowired
@Autowired
private
JgChangeRegistrationReformEqMapper
jgChangeRegistrationReformEqMapper
;
private
JgChangeRegistrationReformEqMapper
jgChangeRegistrationReformEqMapper
;
...
@@ -643,13 +647,13 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -643,13 +647,13 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
// es
// es
List
<
JgChangeRegistrationReformEq
>
reformEqs
=
jgChangeRegistrationReformEqMapper
.
selectList
(
new
LambdaQueryWrapper
<
JgChangeRegistrationReformEq
>().
eq
(
JgChangeRegistrationReformEq:
:
getEquipTransferId
,
reform
.
getSequenceNbr
()));
List
<
JgChangeRegistrationReformEq
>
reformEqs
=
jgChangeRegistrationReformEqMapper
.
selectList
(
new
LambdaQueryWrapper
<
JgChangeRegistrationReformEq
>().
eq
(
JgChangeRegistrationReformEq:
:
getEquipTransferId
,
reform
.
getSequenceNbr
()));
reformEqs
.
forEach
(
reformEq
->
{
reformEqs
.
forEach
(
reformEq
->
{
Map
<
String
,
Map
<
String
,
Object
>>
resultMap
=
MapBuilder
.<
String
,
Map
<
String
,
Object
>>
create
()
Optional
<
ESEquipmentCategoryDto
>
optional
=
esEquipmentCategory
.
findById
(
reformEq
.
getEquId
());
.
put
(
reformEq
.
getEquId
(),
MapBuilder
.<
String
,
Object
>
create
()
if
(
optional
.
isPresent
())
{
.
put
(
USC_UNIT_NAME
,
null
)
ESEquipmentCategoryDto
esEquipmentCategoryDto
=
optional
.
get
();
.
put
(
USC_UNIT_CREDIT_CODE
,
null
)
esEquipmentCategoryDto
.
setUSC_UNIT_NAME
(
null
);
.
build
())
esEquipmentCategoryDto
.
setUSC_UNIT_CREDIT_CODE
(
null
);
.
build
(
);
esEquipmentCategory
.
save
(
esEquipmentCategoryDto
);
tzsServiceFeignClient
.
commonUpdateEsDataByIds
(
resultMap
);
}
});
});
}
}
...
...
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 @
ba2fa5e4
...
@@ -1193,6 +1193,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -1193,6 +1193,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
// 更新工程装置信息
// 更新工程装置信息
if
(
Objects
.
nonNull
(
jgProjectContraption
))
{
if
(
Objects
.
nonNull
(
jgProjectContraption
))
{
jgProjectContraption
.
setUseRegistrationCode
(
jgUseRegistration
.
getUseRegistrationCode
());
jgProjectContraption
.
setUseRegistrationCode
(
jgUseRegistration
.
getUseRegistrationCode
());
jgProjectContraption
.
setUscUnitCreditCode
(
null
);
jgProjectContraption
.
setUscUnitName
(
null
);
jgProjectContraptionService
.
updateById
(
jgProjectContraption
);
jgProjectContraptionService
.
updateById
(
jgProjectContraption
);
}
}
// 取第一条设备的注册消息--用来获取这一批设备的设备种类/类别/品种
// 取第一条设备的注册消息--用来获取这一批设备的设备种类/类别/品种
...
...
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