修改任务查询,减字段
parent
7cb83976d2
commit
5efba25987
@ -0,0 +1,36 @@
|
|||||||
|
target/
|
||||||
|
!.mvn/wrapper/maven-wrapper.jar
|
||||||
|
|
||||||
|
### STS ###
|
||||||
|
.apt_generated
|
||||||
|
.classpath
|
||||||
|
.factorypath
|
||||||
|
.project
|
||||||
|
.settings
|
||||||
|
.springBeans
|
||||||
|
.sts4-cache
|
||||||
|
docus-services/docus-services-system1/
|
||||||
|
|
||||||
|
### IntelliJ IDEA ###
|
||||||
|
*.log
|
||||||
|
.idea
|
||||||
|
*.iws
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
mvnw*
|
||||||
|
*.cmd
|
||||||
|
*.mvn
|
||||||
|
### NetBeans ###
|
||||||
|
/nbproject/private/
|
||||||
|
/nbbuild/
|
||||||
|
/dist/
|
||||||
|
/nbdist/
|
||||||
|
/.nb-gradle/
|
||||||
|
build/
|
||||||
|
!**/src/main/**/build/
|
||||||
|
!**/src/test/**/build/
|
||||||
|
|
||||||
|
### VS Code ###
|
||||||
|
.vscode/
|
||||||
|
logs*
|
||||||
|
rebel.xml
|
@ -0,0 +1,32 @@
|
|||||||
|
package com.ann.entity.interfaceEntity.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 医嘱
|
||||||
|
* @Date 2020/7/1 9:00
|
||||||
|
* @Created by ljx
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Table
|
||||||
|
@Entity
|
||||||
|
@Data
|
||||||
|
public class InterfaceHisCacheDto {
|
||||||
|
|
||||||
|
@Id
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
private String inpNo;
|
||||||
|
|
||||||
|
private String visitId;
|
||||||
|
|
||||||
|
// 医嘱类型 0代表临时医嘱 1代表长期医嘱
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
private String pdfPath;
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.ann.repository;
|
||||||
|
|
||||||
|
import com.ann.entity.interfaceEntity.InterfaceHisCache;
|
||||||
|
import com.ann.entity.interfaceEntity.dto.InterfaceHisCacheDto;
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
import org.springframework.data.jpa.repository.Query;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface InterfaceHisCacheDtoRepository extends JpaRepository<InterfaceHisCacheDto,String> {
|
||||||
|
@Query(value = "select id,inp_no,visit_id,pdf_path,type from Interface_His_Cache where state = 0 and pdf_path is not null",nativeQuery = true)
|
||||||
|
public List<InterfaceHisCacheDto> findAllByStateAndPdfPathIsNotNullDto();
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue