|
|
|
@ -42,11 +42,11 @@ public class HisTreatDao { |
|
|
|
|
* |
|
|
|
|
* @param treatNum 门诊号 |
|
|
|
|
*/ |
|
|
|
|
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 { |
|
|
|
|
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 -> { |
|
|
|
|
params.put("MZNum", treatNum); |
|
|
|
|
params.put("DeptCode",deptCode); |
|
|
|
|
params.put("DoctCode",doctCode); |
|
|
|
|
params.put("DeptCode", deptCode); |
|
|
|
|
params.put("DoctCode", doctCode); |
|
|
|
|
params.put("RegistCode", registCode); |
|
|
|
|
params.put("RegFee", regFee); |
|
|
|
|
params.put("ClinicFee", clinicFee); |
|
|
|
@ -66,19 +66,40 @@ public class HisTreatDao { |
|
|
|
|
throw new ServiceException(jsonResult.getMessage()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public List<HisReRegister> getReRegister (String clinicCode) throws ServiceException { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* [问诊]查询咨询费用信息 |
|
|
|
|
* |
|
|
|
|
* @param inquiryCode 收费项目代码 |
|
|
|
|
*/ |
|
|
|
|
public List<InquiryFee> getInquiryFee(String inquiryCode) throws ServiceException { |
|
|
|
|
JsonResult jsonResult = HisHelper.getJsonResult(HisEnum.XK_INQUIRY_FEE, params -> { |
|
|
|
|
params.put("Code", inquiryCode); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if (jsonResult.success()) { |
|
|
|
|
return jsonResult.getDataMapList(InquiryFee.class, "Items", "Item"); |
|
|
|
|
} |
|
|
|
|
throw new ServiceException(jsonResult.getMessage()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* [问诊]查询复诊挂号费 |
|
|
|
|
* |
|
|
|
|
* @param clinicCode 号别 |
|
|
|
|
*/ |
|
|
|
|
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") ; |
|
|
|
|
return jsonResult.getDataMapList(HisReRegister.class, "RegisterFeeInfos", "RegisterFeeInfo"); |
|
|
|
|
} |
|
|
|
|
throw new ServiceException(jsonResult.getMessage()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<HisTreat> getInfoByTreatNum(String treatNum) throws ServiceException { |
|
|
|
|
List<HisTreat> dataList = new ArrayList<>(); |
|
|
|
|
|
|
|
|
@ -108,26 +129,10 @@ public class HisTreatDao { |
|
|
|
|
return data; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 查询问诊费用信息 |
|
|
|
|
* @param inquiryCode 收费项目代码 |
|
|
|
|
* @return 问诊费用信息 |
|
|
|
|
*/ |
|
|
|
|
public List<InquiryFee> getInquiryFee(String inquiryCode){ |
|
|
|
|
List<InquiryFee> dataList = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
JsonResult jsonResult = HisHelper.getJsonResult(HisEnum.XK_INQUIRY_FEE, params -> { |
|
|
|
|
params.put("Code", inquiryCode); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if (jsonResult.success()) { |
|
|
|
|
dataList = jsonResult.getDataMapList(InquiryFee.class, "Items", "Item"); |
|
|
|
|
} |
|
|
|
|
return dataList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 创建问诊订单 |
|
|
|
|
* |
|
|
|
|
* @param patientId 患者id |
|
|
|
|
* @param patientName 患者姓名 |
|
|
|
|
* @param payMoney 支付金额 |
|
|
|
@ -152,8 +157,8 @@ public class HisTreatDao { |
|
|
|
|
* @param openId 微信OpenId |
|
|
|
|
* @return 是否成功 |
|
|
|
|
*/ |
|
|
|
|
public JsonResult createInquiry(String patientId, String patientName, String payMoney, String payDate, String payTime, String transNo, String payDeviceId, String bankTransNo, String deptCode, String doctCode, String feeCode, String payWay, String ID, String begTime, String endTime, String IDCardNo, String remark, String doctTitleCode, String hospitalArea, String treatNum, String firstTreatNum, String openId){ |
|
|
|
|
return HisHelper.getJsonResult(HisEnum.XK_CREATE_INQUIRY,params->{ |
|
|
|
|
public JsonResult createInquiry(String patientId, String patientName, String payMoney, String payDate, String payTime, String transNo, String payDeviceId, String bankTransNo, String deptCode, String doctCode, String feeCode, String payWay, String ID, String begTime, String endTime, String IDCardNo, String remark, String doctTitleCode, String hospitalArea, String treatNum, String firstTreatNum, String openId) { |
|
|
|
|
return HisHelper.getJsonResult(HisEnum.XK_CREATE_INQUIRY, params -> { |
|
|
|
|
params.put("PatientId", patientId); |
|
|
|
|
params.put("PatientName", patientName); |
|
|
|
|
params.put("PayMoney", payMoney); |
|
|
|
|