|
|
@@ -190,6 +190,8 @@ public class FsPrescribeDataScrmServiceImpl implements IFsPrescribeDataScrmServi
|
|
|
FsPrescibeRecordDataScrm record = new FsPrescibeRecordDataScrm();
|
|
|
BeanCopyUtils.copy(prescribeDataScrm, record);
|
|
|
fsPrescibeRecordDataScrmMapper.insertFsPrescibeRecordDataScrm(record);
|
|
|
+ //清除处方图片(这里清除的都是只有医生签名的处方图片)
|
|
|
+ clearPrescriptionImage(updateDto.getPrescribeId());
|
|
|
if (updateDto.getStatus() == 1) {
|
|
|
// 审核通过 → 异步生成医生+药师签名处方图片任务
|
|
|
submitPrescribeImageTask(updateDto.getPrescribeId(), 2);
|
|
|
@@ -197,8 +199,7 @@ public class FsPrescribeDataScrmServiceImpl implements IFsPrescribeDataScrmServi
|
|
|
//prescriptionTaskRecordService.prescribeScrmImgYsyTask(updateDto.getPrescribeId(), 2);
|
|
|
updateCustomerStatus(updateDto.getPrescribeId(), OPEN_PRESCRIBE);
|
|
|
} else if (updateDto.getStatus() == 2) {
|
|
|
- // 审核不通过 → 清除处方图片,退回状态
|
|
|
- clearPrescriptionImage(updateDto.getPrescribeId());
|
|
|
+ // 审核不通过 → 退回状态
|
|
|
updateDto.setAuditReason("药师审核不通过:"+updateDto.getAuditReason());
|
|
|
updateDto.setDoctorConfirm(0);//药师审核不通过,处方医生状态回退为"待开方"
|
|
|
updateCustomerStatus(updateDto.getPrescribeId(), IS_PRESCRIBING);
|