lighter hace 4 años
padre
commit
4ef4581af2

+ 56 - 0
src/main/java/thyyxxk/webserver/entity/medicalinsurance/SiSetldetail.java

@@ -0,0 +1,56 @@
+package thyyxxk.webserver.entity.medicalinsurance;
+
+import java.io.Serializable;
+import lombok.Data;
+
+@Data
+public class SiSetldetail implements Serializable {
+
+	private static final long serialVersionUID =  1691016964788042310L;
+
+	/**
+	 * 住院号
+	 */
+	private String inpatientNo;
+
+	/**
+	 * 住院次数
+	 */
+	private Integer admissTimes;
+
+	/**
+	 * 账页号
+	 */
+	private Integer ledgerSn;
+
+	/**
+	 * 基金支付类型
+	 */
+	private String fundPayType;
+
+	/**
+	 * 符合政策范围金额
+	 */
+	private Double inscpScpAmt;
+
+	/**
+	 * 本次可支付限额金额
+	 */
+	private Double crtPaybLmtAmt;
+
+	/**
+	 * 基金支付金额
+	 */
+	private Double fundPayamt;
+
+	/**
+	 * 基金支付类型名称
+	 */
+	private String fundPayTypeName;
+
+	/**
+	 * 结算过程信息
+	 */
+	private String setlProcInfo;
+
+}

+ 232 - 0
src/main/java/thyyxxk/webserver/entity/medicalinsurance/SiSetlinfo.java

@@ -0,0 +1,232 @@
+package thyyxxk.webserver.entity.medicalinsurance;
+
+import java.io.Serializable;
+import lombok.Data;
+import java.util.Date;
+
+@Data
+public class SiSetlinfo implements Serializable {
+
+	private static final long serialVersionUID =  6876991080910479303L;
+
+	/**
+	 * 住院号
+	 */
+	private String inpatientNo;
+
+	/**
+	 * 住院次数
+	 */
+	private Integer admissTimes;
+
+	/**
+	 * 账页号
+	 */
+	private Integer ledgerSn;
+
+	/**
+	 * 就诊ID
+	 */
+	private String mdtrtId;
+
+	/**
+	 * 结算ID
+	 */
+	private String setlId;
+
+	/**
+	 * 人员编号
+	 */
+	private String psnNo;
+
+	/**
+	 * 人员姓名
+	 */
+	private String psnName;
+
+	/**
+	 * 人员证件类型
+	 */
+	private String psnCertType;
+
+	/**
+	 * 证件号码
+	 */
+	private String certno;
+
+	/**
+	 * 性别
+	 */
+	private String gend;
+
+	/**
+	 * 民族
+	 */
+	private String naty;
+
+	/**
+	 * 出生日期
+	 */
+	private Date brdy;
+
+	/**
+	 * 年龄
+	 */
+	private Double age;
+
+	/**
+	 * 险种类型
+	 */
+	private String insutype;
+
+	/**
+	 * 人员类别
+	 */
+	private String psnType;
+
+	/**
+	 * 公务员标志
+	 */
+	private String cvlservFlag;
+
+	/**
+	 * 结算时间
+	 */
+	private Date setlTime;
+
+	/**
+	 * 就诊凭证类型
+	 */
+	private String mdtrtCertType;
+
+	/**
+	 * 医疗类别
+	 */
+	private String medType;
+
+	/**
+	 * 医疗费总额
+	 */
+	private Double medfeeSumamt;
+
+	/**
+	 * 全自费金额
+	 */
+	private Double fulamtOwnpayAmt;
+
+	/**
+	 * 超限价自费费用
+	 */
+	private Double overlmtSelfpay;
+
+	/**
+	 * 先行自付金额
+	 */
+	private Double preselfpayAmt;
+
+	/**
+	 * 符合政策范围金额
+	 */
+	private Double inscpScpAmt;
+
+	/**
+	 * 实际支付起付线
+	 */
+	private Double actPayDedc;
+
+	/**
+	 * 基本医疗保险统筹基金支出
+	 */
+	private Double hifpPay;
+
+	/**
+	 * 基本医疗保险统筹基金支付比例
+	 */
+	private Double poolPropSelfpay;
+
+	/**
+	 * 公务员医疗补助资金支出
+	 */
+	private Double cvlservPay;
+
+	/**
+	 * 企业补充医疗保险基金支出
+	 */
+	private Double hifesPay;
+
+	/**
+	 * 居民大病保险资金支出
+	 */
+	private Double hifmiPay;
+
+	/**
+	 * 职工大额医疗费用补助基金支出
+	 */
+	private Double hifobPay;
+
+	/**
+	 * 医疗救助基金支出
+	 */
+	private Double mafPay;
+
+	/**
+	 * 医院负担金额
+	 */
+	private Double hospPartAmt;
+
+	/**
+	 * 其他支出
+	 */
+	private Double othPay;
+
+	/**
+	 * 基金支付总额
+	 */
+	private Double fundPaySumamt;
+
+	/**
+	 * 个人负担总金额
+	 */
+	private Double psnPartAmt;
+
+	/**
+	 * 个人账户支出
+	 */
+	private Double acctPay;
+
+	/**
+	 * 个人现金支出
+	 */
+	private Double psnCashPay;
+
+	/**
+	 * 余额
+	 */
+	private Double balc;
+
+	/**
+	 * 个人账户共济支付金额
+	 */
+	private Double acctMulaidPay;
+
+	/**
+	 * 医药机构结算ID
+	 */
+	private String medinsSetlId;
+
+	/**
+	 * 清算经办机构
+	 */
+	private String clrOptins;
+
+	/**
+	 * 清算方式
+	 */
+	private String clrWay;
+
+	/**
+	 * 清算类别
+	 */
+	private String clrType;
+
+}

+ 39 - 0
src/main/java/thyyxxk/webserver/service/medicalinsurance/SiTjService.java

@@ -0,0 +1,39 @@
+package thyyxxk.webserver.service.medicalinsurance;
+
+import com.alibaba.fastjson.JSONObject;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.stereotype.Service;
+import org.springframework.web.client.RestTemplate;
+
+/**
+ * @description: 体检服务
+ * @author: DingJie
+ * @create: 2021/7/1316:25
+ */
+@Slf4j
+@Service
+public class SiTjService {
+    @Value("${si-tj-url}")
+    private String siTjUrl;
+    private volatile String token;
+
+    @Scheduled(fixedRate = 1000 * 60 * 60 * 23)
+    public void getToken() {
+        RestTemplate restTemplate = new RestTemplate();
+        JSONObject result = restTemplate.getForObject(siTjUrl +
+                "/token?username=43010150145&password=150145", JSONObject.class);
+        if (null == result) {
+            token = null;
+            return;
+        }
+        if (result.getIntValue("code") != 0) {
+            token = null;
+            return;
+        }
+        token = result.getJSONObject("data").getString("token");
+        log.info("获取体检接口TOKEN成功:{}", token);
+    }
+
+}

+ 5 - 0
src/main/resources/META-INF/additional-spring-configuration-metadata.json

@@ -69,6 +69,11 @@
       "name": "triage-notify-url",
       "type": "java.lang.String",
       "description": "Description for triage-notify-url."
+    },
+    {
+      "name": "si-tj-url",
+      "type": "java.lang.String",
+      "description": "Description for si-tj-url."
     }
   ]
 }

+ 1 - 0
src/main/resources/application-prod.yml

@@ -62,3 +62,4 @@ si-api-url: http://10.90.0.11:8081/isp/powercsb/1101
 hrg-api-url: http://webhis.thyy.cn:81/thmz/api/v1
 powersi-api-url: http://172.16.32.183:8916/mmg-gateway
 triage-notify-url: http://webhis.thyy.cn:8082/triage/roomScreen/pushMsg
+si-tj-url: http://jkglcsx.server.zhongmeihealth.com/openInter

+ 1 - 0
src/main/resources/application.yml

@@ -68,3 +68,4 @@ si-api-url: http://10.90.0.11:8081/isp/powercsb/1101
 hrg-api-url: http://webhis.thyy.cn:81/thmz/api/v1
 powersi-api-url: http://172.16.32.183:8916/mmg-gateway
 triage-notify-url: http://localhost:8083/triage/roomScreen/pushMsg
+si-tj-url: http://jkglcsx.server.zhongmeihealth.com/openInter