提交 90ac595e authored 作者: 马晨俊's avatar 马晨俊

mcj:修复技术dao参数类型不匹配bug

上级 4ae3e2a8
...@@ -47,5 +47,5 @@ public interface TechnologyDao extends JpaRepository<Technology,String>, JpaSpec ...@@ -47,5 +47,5 @@ public interface TechnologyDao extends JpaRepository<Technology,String>, JpaSpec
* @param backOrFront * @param backOrFront
* @return * @return
*/ */
List<Technology> findAllByBackorfrontEquals(String backOrFront); List<Technology> findAllByBackorfrontEquals(Integer backOrFront);
} }
...@@ -394,16 +394,16 @@ public class Inspector { ...@@ -394,16 +394,16 @@ public class Inspector {
/** /**
* rule所需要数据装配 * rule所需要数据装配
*/ */
private void ruleTransform(int i) { private void ruleTransform(Integer i) {
if (i == 1) { if (i == 1) {
List<Technology> front = technologyDao.findAllByBackorfrontEquals("1"); List<Technology> front = technologyDao.findAllByBackorfrontEquals(1);
List<String> ids = front.stream().map(Technology::getId).collect(Collectors.toList()); List<String> ids = front.stream().map(Technology::getId).collect(Collectors.toList());
this.ruleList = ruleDao.findAllByTechnologyIdIn(ids); this.ruleList = ruleDao.findAllByTechnologyIdIn(ids);
} else { } else {
if (inspectParameter.getRecastMethod() == 1) { if (inspectParameter.getRecastMethod() == 1) {
this.ruleList = ruleDao.findAll(); this.ruleList = ruleDao.findAll();
} else { } else {
List<Technology> front = technologyDao.findAllByBackorfrontEquals("1"); List<Technology> front = technologyDao.findAllByBackorfrontEquals(1);
List<String> ids = front.stream().map(Technology::getId).collect(Collectors.toList()); List<String> ids = front.stream().map(Technology::getId).collect(Collectors.toList());
this.ruleList = ruleDao.findAllByTechnologyIdIn(ids); this.ruleList = ruleDao.findAllByTechnologyIdIn(ids);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论