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
03045c79
Commit
03045c79
authored
Jun 21, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一码通删除功能修改
parent
7b19b1ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
EquipmentCategoryMapper.xml
...api/src/main/resources/mapper/EquipmentCategoryMapper.xml
+1
-1
EquipmentCategoryServiceImpl.java
...le/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/EquipmentCategoryMapper.xml
View file @
03045c79
...
@@ -159,7 +159,7 @@
...
@@ -159,7 +159,7 @@
USE_UNIT_CREDIT_CODE is NOT NULL
USE_UNIT_CREDIT_CODE is NOT NULL
AND USE_UNIT_CREDIT_CODE
<![CDATA[ <> ]]>
''
AND USE_UNIT_CREDIT_CODE
<![CDATA[ <> ]]>
''
AND (lengthb(USE_UNIT_CREDIT_CODE)= 15 or lengthb(USE_UNIT_CREDIT_CODE)= 18)
AND (lengthb(USE_UNIT_CREDIT_CODE)= 15 or lengthb(USE_UNIT_CREDIT_CODE)= 18)
<if
test=
"unitCodes !=null and unitCodes
!= ''
"
>
<if
test=
"unitCodes !=null and unitCodes
.size>0
"
>
and USE_UNIT_CREDIT_CODE in
and USE_UNIT_CREDIT_CODE in
<foreach
collection=
"unitCodes"
separator=
","
item=
"unitCode"
open=
"("
close=
")"
>
<foreach
collection=
"unitCodes"
separator=
","
item=
"unitCode"
open=
"("
close=
")"
>
#{unitCode}
#{unitCode}
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
03045c79
...
@@ -884,6 +884,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -884,6 +884,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
}
}
//删除监管码表数据
//删除监管码表数据
List
<
String
>
superviseCodeList
=
superviseInfoMapper
.
selectSuperviseCodeList
(
records
);
List
<
String
>
superviseCodeList
=
superviseInfoMapper
.
selectSuperviseCodeList
(
records
);
List
<
String
>
unitCodeList
=
superviseInfoMapper
.
selectUnitCodeList
(
records
);
if
(!
ObjectUtils
.
isEmpty
(
superviseCodeList
)){
if
(!
ObjectUtils
.
isEmpty
(
superviseCodeList
)){
supervisoryCodeInfoMapper
.
delete
(
new
QueryWrapper
<
SupervisoryCodeInfo
>().
in
(
"supervisory_code"
,
superviseCodeList
));
supervisoryCodeInfoMapper
.
delete
(
new
QueryWrapper
<
SupervisoryCodeInfo
>().
in
(
"supervisory_code"
,
superviseCodeList
));
}
}
...
@@ -891,7 +892,6 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -891,7 +892,6 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
//删除涉及的19张表的数据
//删除涉及的19张表的数据
superviseInfoMapper
.
deleteDataAll
(
records
);
superviseInfoMapper
.
deleteDataAll
(
records
);
// 根据统一信用代码更新总览表
// 根据统一信用代码更新总览表
List
<
String
>
unitCodeList
=
superviseInfoMapper
.
selectUnitCodeList
(
records
);
if
(!
ObjectUtils
.
isEmpty
(
unitCodeList
)){
if
(!
ObjectUtils
.
isEmpty
(
unitCodeList
)){
getCategoryData
(
unitCodeList
);
getCategoryData
(
unitCodeList
);
}
}
...
...
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