Commit a4e949d9 authored by zhangsen's avatar zhangsen

巡检模块代码bug修改

parent 1164ea8e
...@@ -34,10 +34,10 @@ public interface IInputItemDao extends BaseDao<InputItem, Long> { ...@@ -34,10 +34,10 @@ public interface IInputItemDao extends BaseDao<InputItem, Long> {
@Query(value = "delete * from p_input_item where is not null and is_delete =0", nativeQuery = true) @Query(value = "delete * from p_input_item where is not null and is_delete =0", nativeQuery = true)
void deleteAllByEquipmentNameIsNotNull(); void deleteAllByEquipmentNameIsNotNull();
@Query(value = "select * from p_input_item where item_no = ?1 and is_delete =0 and if(?2 is null, 1 = 1 , id != ?2", nativeQuery = true) @Query(value = "select * from p_input_item where item_no = ?1 and is_delete =0 and if(?2 is null, 1 = 1 , id != ?2)", nativeQuery = true)
List<InputItem> findByItemNo(String itemNo, String id); List<InputItem> findByItemNo(String itemNo, String id);
@Query(value = "select * from p_input_item where name = ?1 and is_delete =0 and if(?2 is null, 1 = 1 , id != ?2", nativeQuery = true) @Query(value = "select * from p_input_item where name = ?1 and is_delete =0 and if(?2 is null, 1 = 1 , id != ?2)", nativeQuery = true)
List<InputItem> findByItemName(String name, String id); List<InputItem> findByItemName(String name, String 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