|
|
@@ -1,5 +1,6 @@
|
|
|
package org.springblade.business.service.impl;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import org.springblade.business.entity.TrialCyTestType;
|
|
|
import org.springblade.business.service.TrialCyTestTypeService;
|
|
|
@@ -19,6 +20,11 @@ public class TrialCyTestTypeServiceImpl extends ServiceImpl<TrialCyTestTypeMappe
|
|
|
implements TrialCyTestTypeService {
|
|
|
@Override
|
|
|
public List<TrialCyTestType> getTree(Long projectId, String parentId, String contractId) {
|
|
|
+ //当前项目是否存在合同段单独的分类树
|
|
|
+ int count = baseMapper.selectTreeContractCount(projectId);
|
|
|
+ if(count == 0){
|
|
|
+ return baseMapper.getTree2(projectId, parentId);
|
|
|
+ }
|
|
|
return baseMapper.getTree(projectId, parentId,contractId);
|
|
|
}
|
|
|
}
|