Browse Source

前端核心发布: 8.2.80

基础框架发布: 8.2.18
  1) 规则引擎中,模型测试,增加对指标参数的处理, 如果输入了指标的值,在测试时就用输入值, 如果没输入, 就通过指标库计算获得
main
wangshaoping 1 week ago
parent
commit
db66670305
  1. 9
      io.sc.engine.rule.server/src/main/java/io/sc/engine/rule/server/testcase/service/impl/TestCaseParameterServiceImpl.java

9
io.sc.engine.rule.server/src/main/java/io/sc/engine/rule/server/testcase/service/impl/TestCaseParameterServiceImpl.java

@ -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);

Loading…
Cancel
Save