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
|
||||
*/
|
||||
public void deleteDemand(String id) {
|
||||
FunctionalCaseDemand functionalCaseDemandInDb= functionalCaseDemandMapper.selectByPrimaryKey(id);
|
||||
FunctionalCaseDemandExample functionalCaseDemandExample = new FunctionalCaseDemandExample();
|
||||
functionalCaseDemandExample.createCriteria().andParentEqualTo(id);
|
||||
functionalCaseDemandExample.createCriteria().andParentEqualTo(functionalCaseDemandInDb.getDemandId());
|
||||
List<FunctionalCaseDemand> functionalCaseDemands = functionalCaseDemandMapper.selectByExample(functionalCaseDemandExample);
|
||||
if (CollectionUtils.isNotEmpty(functionalCaseDemands)) {
|
||||
SqlSession sqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH);
|
||||
|
|
Loading…
Reference in New Issue