|
@@ -1198,6 +1198,18 @@ public class FsPrescribeServiceImpl implements IFsPrescribeService
|
|
|
if (param.getStatus() == 1) {
|
|
if (param.getStatus() == 1) {
|
|
|
map.setAuditReason("");
|
|
map.setAuditReason("");
|
|
|
fsExportTaskService.updateFsExportTaskByPrescribeId(param.getPrescribeId());
|
|
fsExportTaskService.updateFsExportTaskByPrescribeId(param.getPrescribeId());
|
|
|
|
|
+
|
|
|
|
|
+ //审核通过 同步用户信息采集进度
|
|
|
|
|
+ FsStoreOrder order = storeOrderMapper.selectByPrescriptionId(prescribe.getPrescribeId());
|
|
|
|
|
+ if (order != null){
|
|
|
|
|
+ FsUserInformationCollectionSchedule schedule = scheduleMapper.selectFsUserInformationCollectionByOrderCode(order.getOrderCode());
|
|
|
|
|
+ if (schedule != null){
|
|
|
|
|
+ //审核通过 "待用户二次确认"节点
|
|
|
|
|
+ schedule.setCurrentStep(PrescriptionTaskStepEnum.WAITING_SECOND_CONFIRM.getCode());
|
|
|
|
|
+ scheduleMapper.updateFsUserInformationCollectionSchedule(schedule);
|
|
|
|
|
+ log.info("同步用户信息采集进度节点为:{},信息采集表id:{}",PrescriptionTaskStepEnum.WAITING_SECOND_CONFIRM.getDesc(),schedule.getCollectionId());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
if (param.getStatus() == 2) {
|
|
if (param.getStatus() == 2) {
|
|
|
//生成拒方开方消息
|
|
//生成拒方开方消息
|
|
@@ -1208,6 +1220,18 @@ public class FsPrescribeServiceImpl implements IFsPrescribeService
|
|
|
msg.setContent("拒方原因:"+param.getAuditReason()+",请重新开方");
|
|
msg.setContent("拒方原因:"+param.getAuditReason()+",请重新开方");
|
|
|
msg.setCreateTime(DateUtils.getNowDate());
|
|
msg.setCreateTime(DateUtils.getNowDate());
|
|
|
doctorMsgMapper.insertDoctorMsg(msg);
|
|
doctorMsgMapper.insertDoctorMsg(msg);
|
|
|
|
|
+
|
|
|
|
|
+ //审核不通过 同步用户信息采集进度
|
|
|
|
|
+ FsStoreOrder order = storeOrderMapper.selectByPrescriptionId(prescribe.getPrescribeId());
|
|
|
|
|
+ if (order != null){
|
|
|
|
|
+ FsUserInformationCollectionSchedule schedule = scheduleMapper.selectFsUserInformationCollectionByOrderCode(order.getOrderCode());
|
|
|
|
|
+ if (schedule != null){
|
|
|
|
|
+ //审核不通过 "待开方"节点
|
|
|
|
|
+ schedule.setCurrentStep(PrescriptionTaskStepEnum.WAITING_PRESCRIBE.getCode());
|
|
|
|
|
+ scheduleMapper.updateFsUserInformationCollectionSchedule(schedule);
|
|
|
|
|
+ log.info("同步用户信息采集进度节点为:{},信息采集表id:{}",PrescriptionTaskStepEnum.WAITING_PRESCRIBE.getDesc(),schedule.getCollectionId());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
//同步用户信息采集进度
|
|
//同步用户信息采集进度
|
|
|
FsStoreOrder order = storeOrderMapper.selectByPrescriptionId(prescribe.getPrescribeId());
|
|
FsStoreOrder order = storeOrderMapper.selectByPrescriptionId(prescribe.getPrescribeId());
|