|
@@ -166,6 +166,17 @@ public class FaultService {
|
|
|
return getAllFault();
|
|
|
}
|
|
|
|
|
|
+ public List<FaultEntity> findNotIndexed(String name) {
|
|
|
+ Example example = new Example(FaultEntity.class);
|
|
|
+ Example.Criteria criteria = example.createCriteria();
|
|
|
+ criteria.andIsNull("major_type");
|
|
|
+ criteria.andLike("fault_name","%" + name + "%");
|
|
|
+ if (criteria.isValid())
|
|
|
+ return faultDao.selectByExample(example);
|
|
|
+ else
|
|
|
+ return getAllFault();
|
|
|
+ }
|
|
|
+
|
|
|
public List<FaultEntity> searchByType(String dataType, String name) {
|
|
|
Example example = new Example(FaultEntity.class);
|
|
|
Example.Criteria criteria = example.createCriteria();
|