优化查询检验项目

This commit is contained in:
liuchengqian 2022-03-11 13:52:27 +08:00
parent 15338c123b
commit dbe430c3b1

View File

@ -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);
}