赵士淞
2023-01-20 d763cd0694bc0d263de311bacbf4ff72ffbea509
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/repository/ProjectRepository.java
@@ -15,8 +15,8 @@
*/
package me.zhengjie.modules.project.repository;
import org.springframework.data.jpa.repository.Query;
import me.zhengjie.modules.project.domain.Project;
import me.zhengjie.modules.project.domain.ProjectType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
@@ -35,4 +35,11 @@
     * @author 华喆
     */
    List<Project> findByName(String name);
    @Query(value = "SELECT * FROM project WHERE id = ?1", nativeQuery = true)
    Project findByIdUpdate(Long id);
    List<Project> findByProjectStatus(String projectStatus);
    List<Project> findByProjectStatusAndIdIn(String projectStatus, Long[] ids);
}