Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
indicators
Overview
Overview
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
zhangkb
indicators
Commits
4e5ddd72
Commit
4e5ddd72
authored
Mar 09, 2023
by
dengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复第一次保存权重模板时删除旧数据出错的bug
parent
f5ae0089
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
ObjScoreIndWeightCfgServiceImpl.java
...icators/service/impl/ObjScoreIndWeightCfgServiceImpl.java
+4
-2
WeightExcelTemplateServiceImpl.java
.../weightDataEnter/impl/WeightExcelTemplateServiceImpl.java
+5
-2
No files found.
src/main/java/com/keymobile/indicators/service/impl/ObjScoreIndWeightCfgServiceImpl.java
View file @
4e5ddd72
...
@@ -175,8 +175,10 @@ public class ObjScoreIndWeightCfgServiceImpl implements ObjScoreIndWeightCfgServ
...
@@ -175,8 +175,10 @@ public class ObjScoreIndWeightCfgServiceImpl implements ObjScoreIndWeightCfgServ
tempIds
.
add
(
template
.
getId
());
tempIds
.
add
(
template
.
getId
());
excelTemplateMapper
.
deleteByWeightId
(
weightId
);
excelTemplateMapper
.
deleteByWeightId
(
weightId
);
}
}
excelIndicatorMapper
.
batchDeleteByTempIds
(
tempIds
);
if
(!
tempIds
.
isEmpty
())
{
excelObjMapper
.
batchDeleteByTempIds
(
tempIds
);
excelIndicatorMapper
.
batchDeleteByTempIds
(
tempIds
);
excelObjMapper
.
batchDeleteByTempIds
(
tempIds
);
}
}
}
@Override
@Override
...
...
src/main/java/com/keymobile/indicators/service/weightDataEnter/impl/WeightExcelTemplateServiceImpl.java
View file @
4e5ddd72
...
@@ -83,8 +83,11 @@ public class WeightExcelTemplateServiceImpl implements WeightExcelTemplateServic
...
@@ -83,8 +83,11 @@ public class WeightExcelTemplateServiceImpl implements WeightExcelTemplateServic
*/
*/
private
void
deleteOldIndAndOldObj
(
WeightExcelTemplate
template
)
{
private
void
deleteOldIndAndOldObj
(
WeightExcelTemplate
template
)
{
List
<
Integer
>
ids
=
excelTemplateMapper
.
selectAllIdByWeightId
(
template
.
getWeightId
());
List
<
Integer
>
ids
=
excelTemplateMapper
.
selectAllIdByWeightId
(
template
.
getWeightId
());
excelIndicatorMapper
.
batchDeleteByTempIds
(
ids
);
// 判断id集合是否有值
excelObjMapper
.
batchDeleteByTempIds
(
ids
);
if
(
ids
!=
null
&&
!
ids
.
isEmpty
())
{
excelIndicatorMapper
.
batchDeleteByTempIds
(
ids
);
excelObjMapper
.
batchDeleteByTempIds
(
ids
);
}
}
}
/**
/**
...
...
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