|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.ynxbd.common.dao.his; |
|
|
|
package com.ynxbd.common.dao.his; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.ynxbd.common.bean.his.HisReRegister; |
|
|
|
import com.ynxbd.common.bean.his.HisTreat; |
|
|
|
import com.ynxbd.common.bean.his.HisTreat; |
|
|
|
import com.ynxbd.common.bean.report.CheckReport; |
|
|
|
import com.ynxbd.common.bean.report.CheckReport; |
|
|
|
import com.ynxbd.common.bean.xk.InquiryFee; |
|
|
|
import com.ynxbd.common.bean.xk.InquiryFee; |
|
|
@ -41,11 +42,22 @@ public class HisTreatDao { |
|
|
|
* |
|
|
|
* |
|
|
|
* @param treatNum 门诊号 |
|
|
|
* @param treatNum 门诊号 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public HisTreat createTreat(String treatNum,String deptCode,String doctCode) throws ServiceException { |
|
|
|
public HisTreat createTreat(String treatNum,String deptCode,String doctCode,String registCode, String regFee, String clinicFee, String transNo, String payMoney, String payDate, String payTime, String payWay, String payDeviceID, String bankTransNo, String openId) throws ServiceException { |
|
|
|
JsonResult jsonResult = HisHelper.getJsonResult(HisEnum.XK_CREATE_TREAT, params -> { |
|
|
|
JsonResult jsonResult = HisHelper.getJsonResult(HisEnum.XK_CREATE_TREAT, params -> { |
|
|
|
params.put("MZNum", treatNum); |
|
|
|
params.put("MZNum", treatNum); |
|
|
|
params.put("DeptCode",deptCode); |
|
|
|
params.put("DeptCode",deptCode); |
|
|
|
params.put("DoctCode",doctCode); |
|
|
|
params.put("DoctCode",doctCode); |
|
|
|
|
|
|
|
params.put("RegistCode", registCode); |
|
|
|
|
|
|
|
params.put("RegFee", regFee); |
|
|
|
|
|
|
|
params.put("ClinicFee", clinicFee); |
|
|
|
|
|
|
|
params.put("TransNo", transNo); |
|
|
|
|
|
|
|
params.put("PayMoney", payMoney); |
|
|
|
|
|
|
|
params.put("PayDate", payDate); |
|
|
|
|
|
|
|
params.put("PayTime", payTime); |
|
|
|
|
|
|
|
params.put("PayWay", payWay); |
|
|
|
|
|
|
|
params.put("PayDeviceID", payDeviceID); |
|
|
|
|
|
|
|
params.put("BankTransNo", bankTransNo); |
|
|
|
|
|
|
|
params.put("OpenId", openId); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if (jsonResult.success()) { |
|
|
|
if (jsonResult.success()) { |
|
|
@ -54,6 +66,18 @@ public class HisTreatDao { |
|
|
|
throw new ServiceException(jsonResult.getMessage()); |
|
|
|
throw new ServiceException(jsonResult.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<HisReRegister> getReRegister (String clinicCode) throws ServiceException { |
|
|
|
|
|
|
|
JsonResult jsonResult = HisHelper.getJsonResult(HisEnum.XK_QUERY_RE_REGISTER, params -> { |
|
|
|
|
|
|
|
params.put("ClinicCode", clinicCode); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jsonResult.success()) { |
|
|
|
|
|
|
|
return jsonResult.getDataMapList(HisReRegister.class,"RegisterFeeInfos","RegisterFeeInfo") ; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
throw new ServiceException(jsonResult.getMessage()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<HisTreat> getInfoByTreatNum(String treatNum) throws ServiceException { |
|
|
|
public List<HisTreat> getInfoByTreatNum(String treatNum) throws ServiceException { |
|
|
|
List<HisTreat> dataList = new ArrayList<>(); |
|
|
|
List<HisTreat> dataList = new ArrayList<>(); |
|
|
|