|
|
|
@ -13,6 +13,7 @@ import com.ynxbd.common.dao.his.HisMedDao; |
|
|
|
import com.ynxbd.common.helper.common.AesMicroHelper; |
|
|
|
import com.ynxbd.common.helper.common.AesMicroHelper; |
|
|
|
import com.ynxbd.common.helper.common.DateHelper; |
|
|
|
import com.ynxbd.common.helper.common.DateHelper; |
|
|
|
import com.ynxbd.common.helper.common.HttpHelper; |
|
|
|
import com.ynxbd.common.helper.common.HttpHelper; |
|
|
|
|
|
|
|
import com.ynxbd.common.helper.common.ParamHelper; |
|
|
|
import com.ynxbd.common.result.JsonResult; |
|
|
|
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; |
|
|
|
@ -48,7 +49,7 @@ public class MedicalAction extends BaseAction { |
|
|
|
@Action("getFeeDetails") |
|
|
|
@Action("getFeeDetails") |
|
|
|
public Result getFeeDetails(String callNo, String payCode, String openid, String qrCode, String patientId, String cardNo, String realName, BigDecimal totalFee, Boolean isSplitTime, String ybAttrib, String ybBZCode, String ybBZName) { |
|
|
|
public Result getFeeDetails(String callNo, String payCode, String openid, String qrCode, String patientId, String cardNo, String realName, BigDecimal totalFee, Boolean isSplitTime, String ybAttrib, String ybBZCode, String ybBZName) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
log.info("[医保]上传明细下单 callNo={}, payCode={}, openid={}, qrCode={}, patientId={}, totalFee={}, ybAttrib={}, ybBZCode={}, ybBZName={}", callNo, payCode, openid, qrCode, patientId, totalFee, ybAttrib, ybBZCode, ybBZName); |
|
|
|
log.info("[医保]上传明细下单 callNo={}, payCode={}, openid={}, qrCode={}, patientId={}, cardNo={}, realName={}, totalFee={}, ybAttrib={}, ybBZCode={}, ybBZName={}", callNo, payCode, openid, qrCode, patientId, ParamHelper.hideIdCardNo(cardNo), realName, totalFee, ybAttrib, ybBZCode, ybBZName); |
|
|
|
if (callNo == null || payCode == null || openid == null || qrCode == null || patientId == null || cardNo == null || totalFee == null) { |
|
|
|
if (callNo == null || payCode == null || openid == null || qrCode == null || patientId == null || cardNo == null || totalFee == null) { |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -75,6 +76,7 @@ public class MedicalAction extends BaseAction { |
|
|
|
case RECIPE: |
|
|
|
case RECIPE: |
|
|
|
String treatNum = getString("treatNum"); |
|
|
|
String treatNum = getString("treatNum"); |
|
|
|
String recipeJson = getString("recipeJson"); // 处方JSON集 [{ recipeId: item.id, recipeFee: item.amount }]
|
|
|
|
String recipeJson = getString("recipeJson"); // 处方JSON集 [{ recipeId: item.id, recipeFee: item.amount }]
|
|
|
|
|
|
|
|
log.info("[医保-处方]上传明细下单 treatNum={}, recipeJson={}", treatNum, recipeJson); |
|
|
|
if (treatNum == null || recipeJson == null) { |
|
|
|
if (treatNum == null || recipeJson == null) { |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|
} |
|
|
|
} |
|
|
|
|