com.sinszm.sofa.repository.TsEvaluativeRepository Maven / Gradle / Ivy
package com.sinszm.sofa.repository;
import com.sinszm.sofa.enums.EvaluativeStatus;
import com.sinszm.sofa.model.TsEvaluative;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;
/**
* 评价存储库
*
* @author admin
*/
public interface TsEvaluativeRepository extends JpaRepository {
/**
* 根据订单ID和评价状态查询待评价记录
*
* @param orderId 订单id
* @param evaluativeStatus 评价状态
* @return {Optional}
*/
Optional findOneByOrderIdAndEvaluativeStatus(String orderId, EvaluativeStatus evaluativeStatus);
/**
* 根据订单id查找评价信息
*
* @param orderId 订单id
* @return {Optional}
*/
Optional findOneByOrderId(String orderId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy