package com.rf.psychological.scale.dao.repository;

import com.rf.psychological.base.repository.BaseRepository;
import com.rf.psychological.dao.model.CognitiveTaskEntity;
import com.rf.psychological.group.dao.dto.GroupAuthConTaskDto;
import com.rf.psychological.scale.dao.model.PsychologicalCapitalEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author zsy
 * @description:Category
 * @date 2021/6/17 15:55
 */
public interface PsychologicalCapitalRepository extends BaseRepository<PsychologicalCapitalEntity, String> {

    /**
     * 根据任务关联标识获取信息
     * @param taskMark
     */
    @Query(value = "select * from t_psychological_capital where task_mark =:taskMark ", nativeQuery = true)
    List<PsychologicalCapitalEntity> getPsychologicalCapitalList(@Param("taskMark") String taskMark);

}
