|
@@ -7,6 +7,7 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
import org.springframework.data.jpa.repository.Modifying;
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
+import org.springframework.data.repository.query.Param;
|
|
|
|
|
|
import javax.transaction.Transactional;
|
|
|
import java.util.List;
|
|
@@ -60,8 +61,8 @@ public interface ProjectInfoMapper extends JpaRepository<ProjectInfoEntity, Inte
|
|
|
*
|
|
|
* @param projectName
|
|
|
*/
|
|
|
- @Query(value = "SELECT pro.* FROM project_info pro WHERE if( ?1 !='', pro.project_name like %?1% , 1=1) and is_delete='1' and flow_task_status='3' order by pro.create_date desc",
|
|
|
+ @Query(value = "SELECT pro.* FROM project_info pro WHERE if( :projectName !='', pro.project_name like CONCAT('%',:projectName,'%') , 1=1) and is_delete='1' and flow_task_status='3' order by pro.create_date desc",
|
|
|
//countQuery = "SELECT count(1) FROM project_info pro WHERE if( ?1 !='', pro.project_name like %?1% , 1=1) ",
|
|
|
nativeQuery = true)
|
|
|
- List<ProjectInfoEntity> findAllByProjectName(String projectName);
|
|
|
+ List<ProjectInfoEntity> findAllByProjectName(@Param("projectName") String projectName);
|
|
|
}
|