|
|
@ -5,6 +5,7 @@ import com.ynxbd.common.action.base.BaseAction; |
|
|
|
import com.ynxbd.common.bean.his.HisTreat; |
|
|
|
import com.ynxbd.common.bean.his.HisTreat; |
|
|
|
import com.ynxbd.common.dao.his.HisTreatDao; |
|
|
|
import com.ynxbd.common.dao.his.HisTreatDao; |
|
|
|
import com.ynxbd.common.helper.common.AesHelper; |
|
|
|
import com.ynxbd.common.helper.common.AesHelper; |
|
|
|
|
|
|
|
import com.ynxbd.common.result.JsonResult; |
|
|
|
import com.ynxbd.common.result.Result; |
|
|
|
import com.ynxbd.common.result.Result; |
|
|
|
import com.ynxbd.common.result.ResultEnum; |
|
|
|
import com.ynxbd.common.result.ResultEnum; |
|
|
|
import com.ynxbd.common.result.ServiceException; |
|
|
|
import com.ynxbd.common.result.ServiceException; |
|
|
@ -83,4 +84,25 @@ public class TreatAction extends BaseAction { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Action("getInquiryFee") |
|
|
|
|
|
|
|
public Result getInquiryFee(String inquiryCode){ |
|
|
|
|
|
|
|
log.info("[互联网医院]查询问诊费用信息,inquiryCode-{}",inquiryCode); |
|
|
|
|
|
|
|
return Result.success(new HisTreatDao().getInquiryFee(inquiryCode)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Action("createInquiry") |
|
|
|
|
|
|
|
public Result 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) { |
|
|
|
|
|
|
|
log.info("[互联网医院]创建问诊记录,patientId-{},patientName-{},payMoney-{},payDate-{},payTime-{},transNo-{},payDeviceId-{},bankTransNo-{},deptCode-{},doctCode-{},feeCode-{},payWay-{},ID-{},begTime-{},endTime-{},IDCardNo-{},remark-{},doctTitleCode-{},hospitalArea-{},treatNum-{},firstTreatNum-{},openId-{}", patientId, patientName, payMoney, payDate, payTime, transNo, payDeviceId, bankTransNo, deptCode, doctCode, feeCode, payWay, ID, begTime, endTime, IDCardNo, remark, doctTitleCode, hospitalArea, treatNum, firstTreatNum, openId); |
|
|
|
|
|
|
|
if (patientId == null || patientName == null || payMoney == null || payDate == null || payTime == null || transNo == null || deptCode == null || doctCode == null || feeCode == null || payWay == null || ID == null || begTime == null || endTime == null) { |
|
|
|
|
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
JsonResult result = new HisTreatDao().createInquiry(patientId, patientName, payMoney, payDate, payTime, transNo, payDeviceId, bankTransNo, deptCode, doctCode, feeCode, payWay, ID, begTime, endTime, IDCardNo, remark, doctTitleCode, hospitalArea, treatNum, firstTreatNum, openId); |
|
|
|
|
|
|
|
if (!result.success()) { |
|
|
|
|
|
|
|
return Result.error(result.getMessage()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
Map<String, String> response = new HashMap<>(); |
|
|
|
|
|
|
|
response.put("invoiceTransNo", result.getDataMapString("InvoiceTransNo")); |
|
|
|
|
|
|
|
response.put("hisTransNo", result.getDataMapString("HISTransNo")); |
|
|
|
|
|
|
|
return Result.success(response); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|