afji
This commit is contained in:
parent
86ef379053
commit
7b2ef6e239
@ -303,7 +303,7 @@ func (r *DoctorInquiryConfigService) PutDoctorInquiryConfig(inquiryConfigId int6
|
||||
tx.Rollback()
|
||||
}
|
||||
}()
|
||||
|
||||
utils.LogJsonInfo("AAA61", doctorInquiryConfig);
|
||||
// 修改医生问诊配置
|
||||
doctorInquiryConfigData := make(map[string]interface{})
|
||||
if req.IsEnable != doctorInquiryConfig.IsEnable {
|
||||
@ -312,15 +312,15 @@ func (r *DoctorInquiryConfigService) PutDoctorInquiryConfig(inquiryConfigId int6
|
||||
doctorInquiryConfigData["last_enable_method"] = 2
|
||||
}
|
||||
}
|
||||
|
||||
utils.LogJsonInfo("AAA62", doctorInquiryConfig);
|
||||
if req.WorkNumDay != doctorInquiryConfig.WorkNumDay {
|
||||
doctorInquiryConfigData["work_num_day"] = req.WorkNumDay
|
||||
}
|
||||
|
||||
utils.LogJsonInfo("AAA63", doctorInquiryConfig);
|
||||
if req.InquiryPrice != *doctorInquiryConfig.InquiryPrice {
|
||||
doctorInquiryConfigData["inquiry_price"] = req.InquiryPrice
|
||||
}
|
||||
|
||||
utils.LogJsonInfo("AAA64", doctorInquiryConfig);
|
||||
if len(doctorInquiryConfigData) > 0 {
|
||||
err = doctorInquiryConfigDao.EditDoctorInquiryConfigById(tx, doctorInquiryConfig.InquiryConfigId, doctorInquiryConfigData)
|
||||
if err != nil {
|
||||
@ -328,10 +328,12 @@ func (r *DoctorInquiryConfigService) PutDoctorInquiryConfig(inquiryConfigId int6
|
||||
return false, errors.New("修改失败")
|
||||
}
|
||||
}
|
||||
|
||||
utils.LogJsonInfo("AAA65", doctorInquiryConfig);
|
||||
// 处理医生问诊时间
|
||||
if req.InquiryType == 2 || req.InquiryType == 4 {
|
||||
utils.LogJsonInfo("AAA6E", doctorInquiryConfig);
|
||||
if userDoctor.IsPlatformDeepCooperation == 1 && len(req.DoctorInquiryTime) > 0 {
|
||||
utils.LogJsonInfo("AAA6W", doctorInquiryConfig);
|
||||
// 获取医生问诊时间-获取一条即可,用以区分添加/删除
|
||||
doctorInquiryTimeDao := dao.DoctorInquiryTimeDao{}
|
||||
|
||||
@ -381,9 +383,10 @@ func (r *DoctorInquiryConfigService) PutDoctorInquiryConfig(inquiryConfigId int6
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
utils.LogJsonInfo("AAA6", doctorInquiryConfig);
|
||||
// 修改医生服务设置-疑难会诊
|
||||
if doctorInquiryConfig.InquiryType == 1 && doctorInquiryConfig.InquiryMode == 6 {
|
||||
utils.LogJsonInfo("AAA6Q", doctorInquiryConfig);
|
||||
// 获取医生服务设置-疑难会诊
|
||||
doctorInquiryConfigServiceDao := dao.DoctorInquiryConfigServiceDao{}
|
||||
|
||||
@ -417,9 +420,9 @@ func (r *DoctorInquiryConfigService) PutDoctorInquiryConfig(inquiryConfigId int6
|
||||
return false, errors.New("修改失败")
|
||||
}
|
||||
}
|
||||
|
||||
utils.LogJsonInfo("AAA6A", doctorInquiryConfig);
|
||||
}
|
||||
|
||||
utils.LogJsonInfo("AAA6B", doctorInquiryConfig);
|
||||
tx.Commit()
|
||||
return true, nil
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user