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