fwq
2023-09-13 aca07099fe5aac1f38b46a78746c7df8f9329970
Merge branch 'master-fwq-phis下载中心' into master-test
6个文件已添加
285 ■■■■■ 已修改文件
phis-download-feign/.gitignore 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-download-feign/pom.xml 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-download-feign/src/main/java/com/hz/his/dto/DAppointDto.java 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-download-feign/src/main/java/com/hz/his/dto/common/OperateDto.java 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-download-feign/src/main/java/com/hz/his/dto/common/PageDto.java 101 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-download-feign/src/main/java/com/hz/his/dto/common/TimeDto.java 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-download-feign/.gitignore
New file
@@ -0,0 +1,26 @@
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
*.iml
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/target/
/.idea/
phis-download-feign/pom.xml
New file
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.hz</groupId>
    <artifactId>phis-download-feign</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    <parent>
        <groupId>com.hz</groupId>
        <artifactId>phis-service-feign</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>
    <dependencies>
        <dependency>
            <groupId>com.hx.gitee</groupId>
            <artifactId>hx-common</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>com.github.ulisesbocchio</groupId>
            <artifactId>jasypt-spring-boot-starter</artifactId>
        </dependency>
        <!--openfeign的支持-->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-openfeign</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-loadbalancer</artifactId>
        </dependency>
    </dependencies>
    <build>
       <!-- <finalName>cases_common</finalName>-->
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.xml</include>
                </includes>
                <filtering>false</filtering>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.xml</include>
                </includes>
            </resource>
        </resources>
    </build>
</project>
phis-download-feign/src/main/java/com/hz/his/dto/DAppointDto.java
New file
@@ -0,0 +1,34 @@
package com.hz.his.dto;
import com.hz.his.dto.common.OperateDto;
import lombok.Data;
/**
 * @author fwq
 * 导出预约Dto
 */
@Data
public class DAppointDto extends OperateDto {
    String startTime;
    String endTime;
    String shopId;
    String doctorId;
    String keyWord;
    String corpUserName;
    String doctorName;
    String type;
    Integer orderType;
    Integer isMicApprove;
    String projectName;
    String userLevel;
    String field;
    String id;
    String userId;
    String roleId;
    String corpUserId;
    String createCuName;
    String channelType;
    String chatCorpName;
    String appType;
}
phis-download-feign/src/main/java/com/hz/his/dto/common/OperateDto.java
New file
@@ -0,0 +1,15 @@
package com.hz.his.dto.common;
import lombok.Data;
/**
 * @author fwq
 */
@Data
public class OperateDto {
    /**操作人标识*/
    String operateId;
    /**操作人名称*/
    String operateMan;
}
phis-download-feign/src/main/java/com/hz/his/dto/common/PageDto.java
New file
@@ -0,0 +1,101 @@
package com.hz.his.dto.common;
import lombok.Data;
import java.util.List;
/**
 * @author ChenJiaHe
 * 分页扩展类*/
@Data
public class PageDto {
    /**标识*/
    private String id;
    /**当前页数*/
    private Integer pageNum;
    /**当前页显示条数*/
    private Integer pageSize;
    /**关键字*/
    private String keyWord;
    /**上级标识*/
    private String parentId;
    /**分类标识*/
    private String typeId;
    private List<String> typeIdList;
    //appid
    private String appId;
    public Integer getPageNum() {
        if(this.pageNum == null || this.pageNum < 0){
            this.pageNum = 1;
        }
        return this.pageNum;
    }
    public Integer getPageNum(Integer pageNum) {
        if(pageNum != null){
            this.pageNum = pageNum;
        }else{
            this.pageNum = getPageNum();
        }
        return this.pageNum;
    }
    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }
    public Integer getPageSize() {
        if(this.pageSize == null || this.pageSize < 0 || this.pageSize > 800){
            this.pageSize = 800;
        }
        return this.pageSize;
    }
    public Integer getPageSize(Integer pageSize) {
        if(pageSize != null){
            this.pageSize = pageSize;
        }else{
            this.pageSize = getPageSize();
        }
        return this.pageSize;
    }
    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
    public String getKeyWord() {
        return keyWord;
    }
    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }
    public String getParentId() {
        return parentId;
    }
    public void setParentId(String parentId) {
        this.parentId = parentId;
    }
    public String getTypeId() {
        return typeId;
    }
    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }
    public String getAppId() {
        return appId;
    }
    public void setAppId(String appId) {
        this.appId = appId;
    }
}
phis-download-feign/src/main/java/com/hz/his/dto/common/TimeDto.java
New file
@@ -0,0 +1,46 @@
package com.hz.his.dto.common;
import java.util.Date;
/**
 * @author fwq
 * 时间扩展类
 */
public class TimeDto {
    private String timeString;
    private Date timeDate;
    public TimeDto(String timeString) {
        this.timeString = timeString;
    }
    public TimeDto(Date timeDate) {
        this.timeDate = timeDate;
    }
    public TimeDto() {
    }
    public TimeDto(String timeString, Date timeDate) {
        this.timeString = timeString;
        this.timeDate = timeDate;
    }
    public String getTimeString() {
        return timeString;
    }
    public void setTimeString(String timeString) {
        this.timeString = timeString;
    }
    public Date getTimeDate() {
        return timeDate;
    }
    public void setTimeDate(Date timeDate) {
        this.timeDate = timeDate;
    }
}