Browse Source

Merge branch 'dev' of http://192.168.1.220:10080/Amoy2/wlyy2.0 into dev

liubing 2 years ago
parent
commit
e633a81211

+ 3 - 0
business/base-service/src/main/java/com/yihu/jw/hospital/healthCare/YlzMedicailRelationDao.java

@ -21,6 +21,9 @@ public interface YlzMedicailRelationDao extends PagingAndSortingRepository<YlzMe
    @Query("from YlzMedicalRelationDO a where   a.relationCode = ?1 and a.state=1 ")
    @Query("from YlzMedicalRelationDO a where   a.relationCode = ?1 and a.state=1 ")
    List<YlzMedicalRelationDO> findByOutpatientStatus(String outpatientId);
    List<YlzMedicalRelationDO> findByOutpatientStatus(String outpatientId);
    @Query("from YlzMedicalRelationDO a where   a.relationCode = ?1 and a.state=1 and a.pageCode=?2 ")
    YlzMedicalRelationDO findByOutpatientPageCode(String outpatientId,String code);
    @Query("from YlzMedicalRelationDO a where a.logNo = ?1 ")
    @Query("from YlzMedicalRelationDO a where a.logNo = ?1 ")
    YlzMedicalRelationDO findByLog_no(String logNo);
    YlzMedicalRelationDO findByLog_no(String logNo);

+ 20 - 1
business/base-service/src/main/java/com/yihu/jw/hospital/prescription/service/PrescriptionService.java

@ -14422,6 +14422,25 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
            logger.info("获取患者待结算信息开始!");
            logger.info("获取患者待结算信息开始!");
            YlzMedicalRelationDO ylzMedicalRelationDO = new YlzMedicalRelationDO();
            YlzMedicalRelationDO ylzMedicalRelationDO = new YlzMedicalRelationDO();
            ylzMedicalRelationDO = ylzMedicailRelationDao.findByOutpatient(outpatientId);
            ylzMedicalRelationDO = ylzMedicailRelationDao.findByOutpatient(outpatientId);
            if (ylzMedicalRelationDO!=null&&StringUtils.isNoneBlank(ylzMedicalRelationDO.getPageCode())){
                String result = confirmSettlementInfo(outpatientId,ylzMedicalRelationDO.getPageCode());
                com.alibaba.fastjson.JSONObject jsonObject = com.alibaba.fastjson.JSONObject.parseObject(result);
                if (jsonObject.getString("flag").equalsIgnoreCase("1")){
                    com.alibaba.fastjson.JSONObject object1 = jsonObject.getJSONObject("encrypt_data");
                    BigDecimal b1 = new BigDecimal(object1.getString("tcjj_pay"));
                    BigDecimal b2 = new BigDecimal(object1.getString("sbjj_pay"));
                    BigDecimal b3 = new BigDecimal(object1.getString("gwy_pay"));
                    BigDecimal b4 = new BigDecimal(object1.getString("jzfp_pay"));
                    BigDecimal b5 = new BigDecimal(object1.getString("yljz_pay"));
                    BigDecimal b6 = new BigDecimal(object1.getString("other_pay"));
                    BigDecimal b7 = new BigDecimal(object1.getString("enterprise_supplement"));
                    Double price = b1.add(b2).add(b3).add(b4).add(b5).add(b6).add(b7).doubleValue();
                    if (Double.parseDouble(ylzMedicalRelationDO.getMedicalPrice())==price){
                        ylzMedicalRelationDO.setStatus(1);
                        ylzMedicailRelationDao.save(ylzMedicalRelationDO);
                    }
                }
            }
            if (ylzMedicalRelationDO!=null&&ylzMedicalRelationDO.getStatus()==1){
            if (ylzMedicalRelationDO!=null&&ylzMedicalRelationDO.getStatus()==1){
                //医保已结算直接返回数据
                //医保已结算直接返回数据
                List<YlzMedicalMxDO> mxDOList = ylzMedicailMxDao.findByMedicalId(ylzMedicalRelationDO.getId());
                List<YlzMedicalMxDO> mxDOList = ylzMedicailMxDao.findByMedicalId(ylzMedicalRelationDO.getId());
@ -14545,7 +14564,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
            logger.info("医保结算结果获取start!");
            logger.info("医保结算结果获取start!");
            result = healthCareService.getSettlementResult(code);
            result = healthCareService.getSettlementResult(code);
            logger.info("医保结算结果获取end!");
            logger.info("医保结算结果获取end!");
            com.alibaba.fastjson.JSONObject object = com.alibaba.fastjson.JSONObject.parseObject(result);
        }/*else{
        }/*else{
            logger.info("医保结算页面start!");
            logger.info("医保结算页面start!");
            String registerNo = outpatientDO.getRegisterNo();
            String registerNo = outpatientDO.getRegisterNo();

+ 13 - 1
gateway/ag-basic/src/main/resources/application.yml

@ -121,6 +121,7 @@ zuul:
    svr-rehabilitation:
    svr-rehabilitation:
      path: /rehabilitation/**
      path: /rehabilitation/**
      serviceId: svr-rehabilitation
      serviceId: svr-rehabilitation
endpoints:
endpoints:
  env:
  env:
    enabled: false
    enabled: false
@ -130,7 +131,18 @@ endpoints:
    enabled: false
    enabled: false
  heapdump:
  heapdump:
    enabled: false
    enabled: false
  configprops:
    enabled: false
  metrics:
    enabled: false
  features:
    enabled: false
  beans:
    enabled: false
  autoconfig:
    enabled: false
  loggers:
    enabled: false
# 信息安全
# 信息安全
security:
security:
  csrf:
  csrf:

+ 5 - 0
starter/swagger-starter/pom.xml

@ -12,6 +12,11 @@
    <artifactId>swagger-starter</artifactId>
    <artifactId>swagger-starter</artifactId>
    <dependencies>
    <dependencies>
        <dependency>
            <groupId>com.github.xiaoymin</groupId>
            <artifactId>swagger-bootstrap-ui</artifactId>
            <version>1.9.3</version>
        </dependency>
        <dependency>
        <dependency>
            <groupId>io.springfox</groupId>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger2</artifactId>
            <artifactId>springfox-swagger2</artifactId>

+ 2 - 0
starter/swagger-starter/src/main/java/com/yihu/jw/SwaggerConfig.java

@ -1,5 +1,6 @@
package com.yihu.jw;
package com.yihu.jw;
import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.ApiInfoBuilder;
@ -22,6 +23,7 @@ import static springfox.documentation.builders.PathSelectors.regex;
@Configuration
@Configuration
@EnableSwagger2
@EnableSwagger2
@EnableSwaggerBootstrapUI
public class SwaggerConfig {
public class SwaggerConfig {
    public static final String API_VERSION = "v1.0";
    public static final String API_VERSION = "v1.0";

+ 1 - 2
svr/svr-internet-hospital/pom.xml

@ -54,7 +54,6 @@
            <groupId>org.springframework.cloud</groupId>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-config</artifactId>
            <artifactId>spring-cloud-starter-config</artifactId>
        </dependency>
        </dependency>
        <dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-activemq</artifactId>
            <artifactId>spring-boot-starter-activemq</artifactId>
@ -113,7 +112,7 @@
        </dependency>
        </dependency>
        <!-- Jzkl Starter -->
        <!-- Jzkl Starter -->
        <dependency>
        <dependency>
            <groupId>com.yihu</groupId>
            <groupId>com.yihu.jw</groupId>
            <artifactId>swagger-starter</artifactId>
            <artifactId>swagger-starter</artifactId>
            <version>2.0.0</version>
            <version>2.0.0</version>
        </dependency>
        </dependency>

+ 2 - 0
svr/svr-internet-hospital/src/main/java/com/yihu/SvrInternetHospitalApplication.java

@ -6,12 +6,14 @@ import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
/**
 * Created by Trick on 2019/5/13.
 * Created by Trick on 2019/5/13.
 */
 */
@SpringBootApplication
@SpringBootApplication
@EnableJpaAuditing
@EnableJpaAuditing
@EnableSwagger2
public class SvrInternetHospitalApplication extends SpringBootServletInitializer {
public class SvrInternetHospitalApplication extends SpringBootServletInitializer {
    public static void main(String[] args)  {
    public static void main(String[] args)  {

+ 2 - 0
svr/svr-internet-hospital/src/main/java/com/yihu/jw/hospital/config/SpringSecurityAuditorAware.java

@ -1,3 +1,4 @@
/*
package com.yihu.jw.hospital.config;
package com.yihu.jw.hospital.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Configuration;
@ -16,3 +17,4 @@ public class SpringSecurityAuditorAware implements AuditorAware {
        return "123";
        return "123";
    }
    }
}
}
*/

+ 5 - 2
svr/svr-internet-hospital/src/main/java/com/yihu/jw/hospital/config/SwaggerDocs.java

@ -1,3 +1,4 @@
/*
package com.yihu.jw.hospital.config;
package com.yihu.jw.hospital.config;
import io.github.swagger2markup.GroupBy;
import io.github.swagger2markup.GroupBy;
@ -11,9 +12,11 @@ import java.net.URL;
import java.nio.file.Path;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.Paths;
*/
/**
/**
 * Created by lith on 2018/11/23
 * Created by lith on 2018/11/23
 */
 *//*
public class SwaggerDocs {
public class SwaggerDocs {
    public static void main(String[] args) throws Exception {
    public static void main(String[] args) throws Exception {
        //1.请求 http://ip:port/swagger-resources获取group
        //1.请求 http://ip:port/swagger-resources获取group
@ -41,4 +44,4 @@ public class SwaggerDocs {
        converter.toFile(outputFile);
        converter.toFile(outputFile);
    }
    }
}
}*/

+ 6 - 0
svr/svr-internet-hospital/src/main/resources/application.yml

@ -80,6 +80,12 @@ interceptor:
    status: 1 ###  1开启 0 关闭
    status: 1 ###  1开启 0 关闭
    time: 2 ##对外接的accesstoken生命周期 2小时
    time: 2 ##对外接的accesstoken生命周期 2小时
swagger:
  basic:
    enable: true
    username: jw
    password: jkzl
---
---
spring:
spring:
  profiles: jwdev
  profiles: jwdev