优化查询检验项目
This commit is contained in:
parent
15338c123b
commit
dbe430c3b1
@ -26,6 +26,6 @@ public interface QcItemDao extends JpaRepository<QcItemEntity, Integer>, JpaSpec
|
|||||||
/**
|
/**
|
||||||
* 查询检验项目
|
* 查询检验项目
|
||||||
*/
|
*/
|
||||||
@Query(value = "SELECT id, no, name, type FROM qc_item WHERE no = ?1 AND name = ?2 ORDER BY create_time ASC", nativeQuery = true)
|
@Query(value = "SELECT id, no, name, type FROM qc_item WHERE no LIKE %?1% AND name LIKE %?2% ORDER BY create_time ASC", nativeQuery = true)
|
||||||
List<Map<String, Object>> queryQcItem(String no, String name);
|
List<Map<String, Object>> queryQcItem(String no, String name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user