|
@ -1086,6 +1086,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
WlyyOutpatientDO outpatientDO = objectMapper.readValue(outpatientJson, WlyyOutpatientDO.class);
|
|
|
BasePatientDO patientDO = basePatientDao.findById(outpatientDO.getPatient());
|
|
|
BaseDoctorDO doctorDO = baseDoctorDao.findById(outpatientDO.getDoctor());
|
|
|
if (!StringUtils.isNoneBlank(outpatientDO.getMedicalState())){
|
|
|
outpatientDO.setMedicalState("0");
|
|
|
}
|
|
|
outpatientDO.setIsAgree("1");
|
|
|
outpatientDO.setMjz("mz");
|
|
|
outpatientDO.setStatus("0");
|
|
@ -14486,12 +14489,16 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
}
|
|
|
}
|
|
|
if (ylzMedicalRelationDO!=null&&ylzMedicalRelationDO.getStatus()==1){
|
|
|
net.sf.json.JSONObject object2 = entranceService.qutpatientBalance(outpatientDO.getCardNo(), false);
|
|
|
Double cardFee = object2.getDouble("ZHYE");
|
|
|
//医保已结算直接返回数据
|
|
|
List<YlzMedicalMxDO> mxDOList = ylzMedicailMxDao.findByMedicalId(ylzMedicalRelationDO.getId());
|
|
|
ylzMedicalRelationDO.setYlzMedicalMxDOList(mxDOList);
|
|
|
BigDecimal b1 = new BigDecimal(ylzMedicalRelationDO.getPersonCash());//个人现金
|
|
|
BigDecimal b2 = new BigDecimal(ylzMedicalRelationDO.getPersonAccount());//个人账户
|
|
|
BigDecimal b3 = new BigDecimal(ylzMedicalRelationDO.getMedicalPrice());//医保总金额
|
|
|
ylzMedicalRelationDO.setBalance(cardFee+"");
|
|
|
ylzMedicalRelationDO = ylzMedicailRelationDao.save(ylzMedicalRelationDO);
|
|
|
Double totalPirce=b1.add(b2).add(b3).doubleValue();
|
|
|
logger.info("总费用:"+totalPirce);
|
|
|
if (totalPirce!=Double.parseDouble(ylzMedicalRelationDO.getTotalAmount())){
|
|
@ -15559,4 +15566,25 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
}*/
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 更新门诊记录
|
|
|
* @param outpatientId
|
|
|
* @param diseaseCode
|
|
|
* @param diseaseName
|
|
|
* @param medicalState
|
|
|
* @return
|
|
|
*/
|
|
|
public WlyyOutpatientDO updateOutpatient(String outpatientId,String diseaseCode,String diseaseName,String medicalState){
|
|
|
WlyyOutpatientDO outpatientDO = outpatientDao.findById(outpatientId);
|
|
|
if (StringUtils.isNoneBlank(diseaseCode)){
|
|
|
outpatientDO.setDiseaseCode(diseaseCode);
|
|
|
outpatientDO.setDiseaseName(diseaseName);
|
|
|
}
|
|
|
if (StringUtils.isNoneBlank(medicalState)){
|
|
|
outpatientDO.setMedicalState(medicalState);
|
|
|
}
|
|
|
return outpatientDao.save(outpatientDO);
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|