|
@ -316,8 +316,9 @@ public class MedOrderService {
|
|
/**
|
|
/**
|
|
* 封装挂号数据
|
|
* 封装挂号数据
|
|
**/
|
|
**/
|
|
if (StringUtils.isBlank(ylzMedicalRelationDO.getHisSerial())){
|
|
|
|
if (1==ylzMedicalRelationDO.getMedicalState()){//费别是医保时,医保挂号流水号空则需发起门诊挂号
|
|
|
|
|
|
// if (StringUtils.isBlank(ylzMedicalRelationDO.getHisSerial())){
|
|
|
|
if (1==ylzMedicalRelationDO.getMedicalState()){
|
|
|
|
//费别是医保时,医保挂号流水号空则需发起门诊挂号
|
|
settleTmp.put("needRegister",true);
|
|
settleTmp.put("needRegister",true);
|
|
strinObj = JSONObject.parseObject(deviceParam.get("yb_strin").toString());
|
|
strinObj = JSONObject.parseObject(deviceParam.get("yb_strin").toString());
|
|
input = new JSONObject();
|
|
input = new JSONObject();
|
|
@ -354,7 +355,7 @@ public class MedOrderService {
|
|
settleTmp.put("registerResult","{\"data\":{\"net_data\":{\"inf_refmsgid\":\"350000202207151648010011544274\",\"refmsg_time\":\"20220715164800718\",\"respond_time\":\"20220715164801114\"},\"output\":{\"data\":{\"exp_content\":null,\"ipt_otp_no\":\"72474660\",\"mdtrt_id\":\"4208923\",\"psn_no\":\"3500000135052419940523061301\"}}},\"func\":\"fsi.terminal.register\",\"retCode\":\"0000\",\"retMsg\":\"操作成功\"}");
|
|
settleTmp.put("registerResult","{\"data\":{\"net_data\":{\"inf_refmsgid\":\"350000202207151648010011544274\",\"refmsg_time\":\"20220715164800718\",\"respond_time\":\"20220715164801114\"},\"output\":{\"data\":{\"exp_content\":null,\"ipt_otp_no\":\"72474660\",\"mdtrt_id\":\"4208923\",\"psn_no\":\"3500000135052419940523061301\"}}},\"func\":\"fsi.terminal.register\",\"retCode\":\"0000\",\"retMsg\":\"操作成功\"}");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// }
|
|
result.add(settleTmp);
|
|
result.add(settleTmp);
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
@ -1010,7 +1011,6 @@ public class MedOrderService {
|
|
String idcard = "";
|
|
String idcard = "";
|
|
String patientName = "";
|
|
String patientName = "";
|
|
Set<String> settledErrors = new HashSet<>();//结算失败订单
|
|
Set<String> settledErrors = new HashSet<>();//结算失败订单
|
|
List<String> unsettled = new ArrayList<>();//初步未结算订单
|
|
|
|
List<String> chargeSettle = new ArrayList<>();//预交金关联订单
|
|
List<String> chargeSettle = new ArrayList<>();//预交金关联订单
|
|
for (String recipe_no:recipeNos){
|
|
for (String recipe_no:recipeNos){
|
|
YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.findByLog_no(recipe_no);
|
|
YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.findByLog_no(recipe_no);
|
|
@ -1021,14 +1021,14 @@ public class MedOrderService {
|
|
orgCode = ylzMedicalRelationDO.getOrgCode();
|
|
orgCode = ylzMedicalRelationDO.getOrgCode();
|
|
BigDecimal personCashTmp = new BigDecimal(ylzMedicalRelationDO.getPersonCash());
|
|
BigDecimal personCashTmp = new BigDecimal(ylzMedicalRelationDO.getPersonCash());
|
|
personCash.add(personCashTmp);//个人现金支付
|
|
personCash.add(personCashTmp);//个人现金支付
|
|
if (0==personCashTmp.doubleValue()){
|
|
|
|
|
|
if (0==personCashTmp.doubleValue()){//费用为0
|
|
try {
|
|
try {
|
|
if (!jwService.executeSickSettleMultiNew(recipe_no)){
|
|
if (!jwService.executeSickSettleMultiNew(recipe_no)){
|
|
unsettled.add(recipe_no);
|
|
|
|
|
|
chargeSettle.add(recipe_no);
|
|
}
|
|
}
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
unsettled.add(recipe_no);
|
|
|
|
|
|
chargeSettle.add(recipe_no);
|
|
settledErrors.add(recipe_no);
|
|
settledErrors.add(recipe_no);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -1065,7 +1065,7 @@ public class MedOrderService {
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
else{
|
|
else{
|
|
for (String recipe_no:unsettled){
|
|
|
|
|
|
for (String recipe_no:chargeSettle){
|
|
try {
|
|
try {
|
|
if (jwService.executeSickSettleMultiNew(recipe_no)){
|
|
if (jwService.executeSickSettleMultiNew(recipe_no)){
|
|
if (settledErrors.contains(recipe_no)){
|
|
if (settledErrors.contains(recipe_no)){
|