value="select replace(uuid(),'-','') as id,?1 as bill_id,(select if(count(1)=0,0,3) from borrow_archives ba where ba.archives_id = asy.archives_id and borrow_type = 3) as check_result,"+
value="select replace(uuid(),'-','') as id,?1 as bill_id,(select if(count(1)=0,0,4) from borrow_archives ba where ba.archives_id = asy.archives_id and borrow_type = 3) as check_result,"+
value="select replace(uuid(),'-','') as id,?2 as bill_id,(select if(count(1)=0,0,3) from borrow_archives ba where ba.archives_id = asy.archives_id and borrow_type = 3) as check_result,"+
value="select replace(uuid(),'-','') as id,?2 as bill_id,(select if(count(1)=0,0,4) from borrow_archives ba where ba.archives_id = asy.archives_id and borrow_type = 3) as check_result,"+
value="select replace(uuid(),'-','') as id,?2 as bill_id,(select if(count(1)=0,0,3) from borrow_archives ba where ba.archives_id = asy.archives_id and borrow_type = 3) as check_result,"+
value="select replace(uuid(),'-','') as id,?2 as bill_id,(select if(count(1)=0,0,4) from borrow_archives ba where ba.archives_id = asy.archives_id and borrow_type = 3) as check_result,"+
value="select replace(uuid(),'-','') as id,?3 as bill_id,(select if(count(1)=0,0,3) from borrow_archives ba where ba.archives_id = asy.archives_id and borrow_type = 3) as check_result,"+
value="select replace(uuid(),'-','') as id,?3 as bill_id,(select if(count(1)=0,0,4) from borrow_archives ba where ba.archives_id = asy.archives_id and borrow_type = 3) as check_result,"+
value="select * from archives_check_bill_details where bill_id = ?1 "+
@ -73,4 +74,11 @@ public interface ArchivesCheckBillDetailsRepository extends JpaRepository<Archiv
value="select id as checkId,bill_id as billId,check_result as checkResult,archives_id as archivesId from archives_check_bill_details where bill_id = ?1 ")