Browse Source

commit

master
xia 3 years ago
parent
commit
50be6cbaf6
  1. 25
      archives/src/main/java/com/storeroom/modules/archives/domain/Borrower.java
  2. 2
      archives/src/main/java/com/storeroom/modules/archives/repository/ArchivesCaseRepository.java

25
archives/src/main/java/com/storeroom/modules/archives/domain/Borrower.java

@ -0,0 +1,25 @@
package com.storeroom.modules.archives.domain;
import com.storeroom.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Getter
@Setter
@Table(name = "borrower")
public class Borrower extends BaseEntity implements Serializable {
@Id
@Column(name = "id")
@GeneratedValue(generator = "idGenerator")
@GenericGenerator(name = "idGenerator", strategy = "uuid")
private String id;
private String borrowerName;
}

2
archives/src/main/java/com/storeroom/modules/archives/repository/ArchivesCaseRepository.java

@ -102,7 +102,7 @@ public interface ArchivesCaseRepository extends JpaRepository<ArchivesCase, Stri
@Modifying @Modifying
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
@Query(nativeQuery = true, @Query(nativeQuery = true,
value = "update archives_case set storage_type = ?2,deposit_num = ?3 where id in ?1")
value = "update archives_case set storage_type = ?2 where id in ?1")
void manualConfirm(List<String> caseIds,Integer storageType); void manualConfirm(List<String> caseIds,Integer storageType);
@Query(nativeQuery = true, @Query(nativeQuery = true,

Loading…
Cancel
Save