提交 677a7753 authored 作者: 孙洁清's avatar 孙洁清

评估报告管理页面修改v1.0.4

上级 e8d290f4
......@@ -27,7 +27,7 @@ public interface RuleDao extends JpaRepository<Rule,String>,JpaSpecificationExec
List<Rule> findAllByTarget(String target);
Rule findByTarget(String target);
Rule findByTargetaAndIdNot(String target,String id);
Rule findByTargetAndIdNot(String target,String id);
List<Rule> findByTargetAndSuffixEqualsAndTechnologyIdEquals(String target,String suffix,String technologyId);
......
......@@ -198,7 +198,7 @@ public class RuleServiceImpl implements RuleService {
@Override
public void upRulePlugs(Rule rule) {
Rule rule1 = ruleDao.findByTargetaAndIdNot(rule.getTarget(), rule.getId());
Rule rule1 = ruleDao.findByTargetAndIdNot(rule.getTarget(), rule.getId());
if(rule1==null){
ruleDao.save(rule);
}else{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论