|
@ -9,7 +9,6 @@ import io.sc.engine.rule.server.testcase.service.TestCaseParameterService; |
|
|
import io.sc.engine.rule.server.testcase.service.TestCaseService; |
|
|
import io.sc.engine.rule.server.testcase.service.TestCaseService; |
|
|
import io.sc.engine.rule.server.testcase.wrapper.TestCaseParameterWrapper; |
|
|
import io.sc.engine.rule.server.testcase.wrapper.TestCaseParameterWrapper; |
|
|
import io.sc.platform.orm.service.impl.DaoServiceImpl; |
|
|
import io.sc.platform.orm.service.impl.DaoServiceImpl; |
|
|
import io.sc.platform.util.CollectionUtil; |
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
@ -23,6 +22,14 @@ public class TestCaseParameterServiceImpl extends DaoServiceImpl<TestCaseParamet |
|
|
@Autowired private TestCaseService testCaseService; |
|
|
@Autowired private TestCaseService testCaseService; |
|
|
@Autowired private TestCaseParameterBuilderFactory testCaseParameterBuilderFactory; |
|
|
@Autowired private TestCaseParameterBuilderFactory testCaseParameterBuilderFactory; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public TestCaseParameterEntity update(String s, TestCaseParameterEntity entity) throws Exception { |
|
|
|
|
|
if(!StringUtils.hasText(entity.getInputValue())){ |
|
|
|
|
|
entity.setInputValue(null); |
|
|
|
|
|
} |
|
|
|
|
|
return super.update(s, entity); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public List<TestCaseParameterEntity> findByTestCase(String testCaseId) throws Exception { |
|
|
public List<TestCaseParameterEntity> findByTestCase(String testCaseId) throws Exception { |
|
|
return repository.findByTestCase(testCaseId); |
|
|
return repository.findByTestCase(testCaseId); |
|
|