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

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

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