mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-01 11:38:57 +08:00
fix(功能用例): 修复功能用例取消关联需求导致数据不对问题
--bug=1041347 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001041347
This commit is contained in:
parent
b04eb0350b
commit
8469f47f43
@ -210,8 +210,9 @@ public class FunctionalCaseDemandService {
|
|||||||
* @param id 需求关系ID
|
* @param id 需求关系ID
|
||||||
*/
|
*/
|
||||||
public void deleteDemand(String id) {
|
public void deleteDemand(String id) {
|
||||||
|
FunctionalCaseDemand functionalCaseDemandInDb= functionalCaseDemandMapper.selectByPrimaryKey(id);
|
||||||
FunctionalCaseDemandExample functionalCaseDemandExample = new FunctionalCaseDemandExample();
|
FunctionalCaseDemandExample functionalCaseDemandExample = new FunctionalCaseDemandExample();
|
||||||
functionalCaseDemandExample.createCriteria().andParentEqualTo(id);
|
functionalCaseDemandExample.createCriteria().andParentEqualTo(functionalCaseDemandInDb.getDemandId());
|
||||||
List<FunctionalCaseDemand> functionalCaseDemands = functionalCaseDemandMapper.selectByExample(functionalCaseDemandExample);
|
List<FunctionalCaseDemand> functionalCaseDemands = functionalCaseDemandMapper.selectByExample(functionalCaseDemandExample);
|
||||||
if (CollectionUtils.isNotEmpty(functionalCaseDemands)) {
|
if (CollectionUtils.isNotEmpty(functionalCaseDemands)) {
|
||||||
SqlSession sqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH);
|
SqlSession sqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH);
|
||||||
|
Loading…
Reference in New Issue
Block a user