Commit ba85255a authored by zhangsen's avatar zhangsen

bug

parent 13cc92b7
...@@ -25,10 +25,10 @@ public interface IPointDao extends BaseDao<Point, Long> { ...@@ -25,10 +25,10 @@ public interface IPointDao extends BaseDao<Point, Long> {
@Query(value = "select * from p_point where original_id in ?1 and is_delete =0", nativeQuery = true) @Query(value = "select * from p_point where original_id in ?1 and is_delete =0", nativeQuery = true)
List<Point> listByOriginalIds(List<String> originalIds); List<Point> listByOriginalIds(List<String> originalIds);
@Query(value = "select * from p_point where point_no = (?1) and is_delete =0 and if(?2 is null, 1 = 1 , id = ?2)", nativeQuery = true) @Query(value = "select * from p_point where point_no = (?1) and is_delete =0 and if(?2 is null, 1 = 1 , id != ?2)", nativeQuery = true)
List<Point> findByNo(String pointNo, String id); List<Point> findByNo(String pointNo, String id);
@Query(value = "select * from p_point where name = (?1) and is_delete =0 and if(?2 is null, 1 = 1 , id = ?2)", nativeQuery = true) @Query(value = "select * from p_point where name = (?1) and is_delete =0 and if(?2 is null, 1 = 1 , id != ?2)", nativeQuery = true)
List<Point> findByName(String name, String id); List<Point> findByName(String name, String id);
Optional<Point> findById(Long id); Optional<Point> findById(Long id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment