|
@ -6577,7 +6577,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
WlyyOutpatientDO outpatientDO = objectMapper.readValue(outpatientJson, WlyyOutpatientDO.class);
|
|
|
|
|
|
WlyyOutpatientDO one = outpatientDao.findOne(outpatientDO.getId());
|
|
|
if (StringUtils.isNotBlank(one.getDoctor())) {
|
|
|
if (StringUtils.isNotBlank(one.getDoctor())&&(one.getStatus().equalsIgnoreCase("1")||one.getStatus().equalsIgnoreCase("2"))) {
|
|
|
throw new RuntimeException("已有医生接诊");
|
|
|
}
|
|
|
one.setDoctor(outpatientDO.getDoctor());
|