package com.bcxin.backend.domain.repositories;

import com.bcxin.backend.domain.models.SignatureQueuesBazgz;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;


public interface SignatureQueuesBazgzRepository /*extends JpaRepository<SignatureQueuesBazgz, String>*/ {
//    @Query("select s from SignatureQueuesBazgz s where s.status=?1 order by s.created desc")
//    Page<SignatureQueuesBazgz> pageQueues(String status,PageRequest pageRequest);
//
//    @Query("select s.business_id from SignatureQueuesBazgz s where s.id=?1")
//    String getBuId(String id);
//
//    @Modifying
//    @Transactional
//    @Query("UPDATE SignatureQueuesBazgz s SET s.status=?1,s.lastmodified=?2,s.processed_result=?3 WHERE s.id=?4")
//    void updateSignatureQueuesBazgz(String status, Date lastTime, String result, String id);
//
//    @Modifying
//    @Transactional
//    @Query("UPDATE SignatureQueuesBazgz s SET s.status=?1,s.lastmodified=?2,s.processed_result=?3 WHERE s.id in (?4)")
//    void updateSignatureQueuesBazgzs(String status, Date lastTime, String result, List<String> ids);
}
