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
85a3950d
Commit
85a3950d
authored
Sep 12, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):密评集成后报错问题解决
parent
2a1e670d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
15 deletions
+14
-15
CommonMapper.xml
...-module-jg-api/src/main/resources/mapper/CommonMapper.xml
+9
-8
JgMaintenanceContractMapper.xml
...src/main/resources/mapper/JgMaintenanceContractMapper.xml
+0
-5
JgUseRegistrationMapper.xml
...api/src/main/resources/mapper/JgUseRegistrationMapper.xml
+1
-1
EquipChangeDataUpdateServiceImpl.java
.../edit/process/equip/EquipChangeDataUpdateServiceImpl.java
+4
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/CommonMapper.xml
View file @
85a3950d
...
@@ -2528,16 +2528,17 @@
...
@@ -2528,16 +2528,17 @@
)
)
</select>
</select>
<update
id=
"updateTechParamDynamic"
>
<update
id=
"updateTechParamDynamic"
>
<if
test=
"columns != null and columns.size > 0"
>
update ${tableName}
update
<set>
${tableName}
<foreach
collection=
"columns"
item=
"column"
separator=
","
>
set
<if
test=
"column.columnValue != null and column.columnValue != ''"
>
<foreach
collection=
"columns"
item=
"column"
separator=
","
>
${column.columnName} = #{column.columnValue}
${column.columnName} = #{column.columnValue}
</foreach>
</if>
where record = #{record}
</foreach>
</if>
</set>
where record = #{record}
</update>
</update>
<select
id=
"countBizNumAfterUseReg"
resultType=
"java.lang.Long"
>
<select
id=
"countBizNumAfterUseReg"
resultType=
"java.lang.Long"
>
select
select
sum(inUseNumber)
sum(inUseNumber)
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgMaintenanceContractMapper.xml
View file @
85a3950d
...
@@ -91,8 +91,6 @@
...
@@ -91,8 +91,6 @@
<if
test=
"contractDto.createDate != null"
>
<if
test=
"contractDto.createDate != null"
>
AND tjmc.create_date LIKE concat(DATE_FORMAT(#{contractDto.createDate},'%Y-%m-%d'),'%')
AND tjmc.create_date LIKE concat(DATE_FORMAT(#{contractDto.createDate},'%Y-%m-%d'),'%')
</if>
</if>
-- 数据过滤开始 ----------------------------------------------------
-- 只有使用单位或者维保单位用,或者都没有
<if
test=
"contractDto.useUnitCodeFilter != '' and contractDto.useUnitCodeFilter != null"
>
<if
test=
"contractDto.useUnitCodeFilter != '' and contractDto.useUnitCodeFilter != null"
>
and (tjmc.use_unit_code = #{contractDto.useUnitCodeFilter}
and (tjmc.use_unit_code = #{contractDto.useUnitCodeFilter}
or tjmc.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ))
or tjmc.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ))
...
@@ -102,13 +100,11 @@
...
@@ -102,13 +100,11 @@
or tjmc.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ))
or tjmc.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ))
and (tjmc.instance_id
<![CDATA[<>]]>
'')
and (tjmc.instance_id
<![CDATA[<>]]>
'')
</if>
</if>
-- 接受机构用
<if
test=
"contractDto.receiveOrgCodeFilter != '' and contractDto.receiveOrgCodeFilter != null"
>
<if
test=
"contractDto.receiveOrgCodeFilter != '' and contractDto.receiveOrgCodeFilter != null"
>
and (tjmc.receive_org_code = #{contractDto.receiveOrgCodeFilter}
and (tjmc.receive_org_code = #{contractDto.receiveOrgCodeFilter}
or tjmc.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ))
or tjmc.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ))
and (tjmc.instance_id
<![CDATA[<>]]>
'')
and (tjmc.instance_id
<![CDATA[<>]]>
'')
</if>
</if>
-- 监管单位用
<if
test=
"contractDto.orgBranchCode != '' and contractDto.orgBranchCode != null"
>
<if
test=
"contractDto.orgBranchCode != '' and contractDto.orgBranchCode != null"
>
and tjmc.instance_id
<![CDATA[<>]]>
''
and tjmc.instance_id
<![CDATA[<>]]>
''
HAVING (
HAVING (
...
@@ -118,7 +114,6 @@
...
@@ -118,7 +114,6 @@
WHERE ede.equip_transfer_id = tjmc.sequence_nbr
WHERE ede.equip_transfer_id = tjmc.sequence_nbr
) LIKE concat('%', #{contractDto.orgBranchCode}, '%')
) LIKE concat('%', #{contractDto.orgBranchCode}, '%')
</if>
</if>
-- 数据过滤结束 ----------------------------------------------------
</where>
</where>
ORDER BY
ORDER BY
<if
test=
"sort != null"
>
<if
test=
"sort != null"
>
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationMapper.xml
View file @
85a3950d
...
@@ -379,7 +379,7 @@
...
@@ -379,7 +379,7 @@
</choose>
</choose>
</select>
</select>
<select
id=
"getListPage1"
resultType=
"java.util.Map"
>
<select
id=
"getListPage1"
resultType=
"java.util.Map"
fetchSize=
"500"
>
WITH pre_filtered_equipment AS NOT MATERIALIZED (
WITH pre_filtered_equipment AS NOT MATERIALIZED (
SELECT re.equip_transfer_id
SELECT re.equip_transfer_id
FROM tzs_jg_use_registration_eq re
FROM tzs_jg_use_registration_eq re
...
...
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/EquipChangeDataUpdateServiceImpl.java
View file @
85a3950d
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
edit
.
process
.
equip
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
edit
.
process
.
equip
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.date.DatePattern
;
import
cn.hutool.core.date.DatePattern
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.StrUtil
;
...
@@ -224,7 +225,9 @@ public class EquipChangeDataUpdateServiceImpl {
...
@@ -224,7 +225,9 @@ public class EquipChangeDataUpdateServiceImpl {
return
columnDto
;
return
columnDto
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
// sql 动态构建入库
// sql 动态构建入库
commonMapper
.
updateTechParamDynamic
(
tableName
,
record
,
columns
);
if
(
CollUtil
.
isNotEmpty
(
columns
))
{
commonMapper
.
updateTechParamDynamic
(
tableName
,
record
,
columns
);
}
}
}
public
void
checkFactoryChangeData
(
String
record
,
EquipFactoryChangeDataDto
equipFactoryChangeDataDto
,
String
equList
,
String
equCategory
,
String
equDefine
)
{
public
void
checkFactoryChangeData
(
String
record
,
EquipFactoryChangeDataDto
equipFactoryChangeDataDto
,
String
equList
,
String
equCategory
,
String
equDefine
)
{
...
...
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