|
|
|
@ -88,7 +88,7 @@ public class TreatAction extends BaseAction { |
|
|
|
public Result getInquiryFee(String inquiryCode) { |
|
|
|
public Result getInquiryFee(String inquiryCode) { |
|
|
|
log.info("[问诊]查询咨询费用信息 inquiryCode={}", inquiryCode); |
|
|
|
log.info("[问诊]查询咨询费用信息 inquiryCode={}", inquiryCode); |
|
|
|
try { |
|
|
|
try { |
|
|
|
return Result.success(new HisTreatDao().getInquiryFee(inquiryCode)); |
|
|
|
return Result.success(new HisTreatDao().queryOLRegConsultFee(inquiryCode)); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
return Result.error(e); |
|
|
|
return Result.error(e); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -103,20 +103,23 @@ public class TreatAction extends BaseAction { |
|
|
|
public Result getReRegister(String clinicCode) { |
|
|
|
public Result getReRegister(String clinicCode) { |
|
|
|
log.info("[问诊]查询复诊挂号费 clinicCode={}", clinicCode); |
|
|
|
log.info("[问诊]查询复诊挂号费 clinicCode={}", clinicCode); |
|
|
|
try { |
|
|
|
try { |
|
|
|
return Result.success(new HisTreatDao().getReRegister(clinicCode)); |
|
|
|
return Result.success(new HisTreatDao().queryOLRegRevisitFee(clinicCode)); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
return Result.error(e); |
|
|
|
return Result.error(e); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Action("getInfoByTreatNum") |
|
|
|
|
|
|
|
public Result getInfoByTreatNum(@AesDecode(AesClass = AesMicroHelper.class) String treatNum) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Action("queryTreatByTreatNum") |
|
|
|
|
|
|
|
public Result queryTreatByTreatNum(@AesDecode(AesClass = AesMicroHelper.class) String treatNum) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
log.info("[就诊记录]查询信息 treatNum={}", treatNum); |
|
|
|
log.info("[就诊记录]查询信息 treatNum={}", treatNum); |
|
|
|
if (ObjectUtils.isEmpty(treatNum)) { |
|
|
|
if (ObjectUtils.isEmpty(treatNum)) { |
|
|
|
return Result.error(ResultEnum.PARAM_IS_INVALID); |
|
|
|
return Result.error(ResultEnum.PARAM_IS_INVALID); |
|
|
|
} |
|
|
|
} |
|
|
|
List<HisTreat> daatList = new HisTreatDao().getInfoByTreatNum(treatNum); |
|
|
|
List<HisTreat> daatList = new HisTreatDao().queryTreatByTreatNum(treatNum); |
|
|
|
return Result.success(daatList); |
|
|
|
return Result.success(daatList); |
|
|
|
} catch (ServiceException e) { |
|
|
|
} catch (ServiceException e) { |
|
|
|
return Result.error(e); |
|
|
|
return Result.error(e); |
|
|
|
@ -144,11 +147,11 @@ public class TreatAction extends BaseAction { |
|
|
|
|
|
|
|
|
|
|
|
@Action("createInquiry") |
|
|
|
@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) { |
|
|
|
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); |
|
|
|
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) { |
|
|
|
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); |
|
|
|
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); |
|
|
|
JsonResult result = new HisTreatDao().hisOLRegPay(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()) { |
|
|
|
if (!result.success()) { |
|
|
|
return Result.error(result.getMessage()); |
|
|
|
return Result.error(result.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|