f
This commit is contained in:
parent
1c29997b9a
commit
86ef379053
@ -249,11 +249,14 @@ func (r *DoctorInquiryConfigService) PutDoctorInquiryConfig(inquiryConfigId int6
|
|||||||
return false, errors.New("系统问诊配置错误")
|
return false, errors.New("系统问诊配置错误")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
utils.LogJsonInfo("AAA", doctorInquiryConfig);
|
||||||
|
|
||||||
// 验证问诊数量
|
// 验证问诊数量
|
||||||
if req.WorkNumDay > systemInquiryConfig.MaxWorkNumDay {
|
if req.WorkNumDay > systemInquiryConfig.MaxWorkNumDay {
|
||||||
return false, errors.New("超出每日最大接诊数量")
|
return false, errors.New("超出每日最大接诊数量")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
utils.LogJsonInfo("AAA1", doctorInquiryConfig);
|
||||||
// 验证问诊价格-在线问诊
|
// 验证问诊价格-在线问诊
|
||||||
if doctorInquiryConfig.InquiryType == 1 {
|
if doctorInquiryConfig.InquiryType == 1 {
|
||||||
if req.InquiryPrice > systemInquiryConfig.MaxInquiryPrice || req.InquiryPrice < systemInquiryConfig.MinInquiryPrice {
|
if req.InquiryPrice > systemInquiryConfig.MaxInquiryPrice || req.InquiryPrice < systemInquiryConfig.MinInquiryPrice {
|
||||||
@ -261,6 +264,7 @@ func (r *DoctorInquiryConfigService) PutDoctorInquiryConfig(inquiryConfigId int6
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
utils.LogJsonInfo("AAA2", doctorInquiryConfig);
|
||||||
// 验证问诊价格-快速问诊/问诊购药
|
// 验证问诊价格-快速问诊/问诊购药
|
||||||
if doctorInquiryConfig.InquiryType == 2 || doctorInquiryConfig.InquiryType == 4 {
|
if doctorInquiryConfig.InquiryType == 2 || doctorInquiryConfig.InquiryType == 4 {
|
||||||
inquiryPrice := strconv.FormatFloat(req.InquiryPrice, 'f', -1, 64)
|
inquiryPrice := strconv.FormatFloat(req.InquiryPrice, 'f', -1, 64)
|
||||||
@ -268,7 +272,7 @@ func (r *DoctorInquiryConfigService) PutDoctorInquiryConfig(inquiryConfigId int6
|
|||||||
return false, errors.New("问诊价格填写错误")
|
return false, errors.New("问诊价格填写错误")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
utils.LogJsonInfo("AAA3", doctorInquiryConfig);
|
||||||
// 验证问诊价格-公益问诊
|
// 验证问诊价格-公益问诊
|
||||||
if doctorInquiryConfig.InquiryType == 3 {
|
if doctorInquiryConfig.InquiryType == 3 {
|
||||||
inquiryPrice := strconv.FormatFloat(req.InquiryPrice, 'f', -1, 64)
|
inquiryPrice := strconv.FormatFloat(req.InquiryPrice, 'f', -1, 64)
|
||||||
@ -276,21 +280,21 @@ func (r *DoctorInquiryConfigService) PutDoctorInquiryConfig(inquiryConfigId int6
|
|||||||
return false, errors.New("问诊价格填写错误")
|
return false, errors.New("问诊价格填写错误")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
utils.LogJsonInfo("AAA4", doctorInquiryConfig);
|
||||||
// 验证医生坐班时间
|
// 验证医生坐班时间
|
||||||
if doctorInquiryConfig.InquiryType == 2 || doctorInquiryConfig.InquiryType == 4 {
|
if doctorInquiryConfig.InquiryType == 2 || doctorInquiryConfig.InquiryType == 4 {
|
||||||
if userDoctor.IsPlatformDeepCooperation == 1 && len(req.DoctorInquiryTime) <= 0 {
|
if userDoctor.IsPlatformDeepCooperation == 1 && len(req.DoctorInquiryTime) <= 0 {
|
||||||
return false, errors.New("请填写坐班时间")
|
return false, errors.New("请填写坐班时间")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
utils.LogJsonInfo("AAA5", doctorInquiryConfig);
|
||||||
// 验证医生服务设置-疑难会诊
|
// 验证医生服务设置-疑难会诊
|
||||||
if doctorInquiryConfig.InquiryType == 1 && doctorInquiryConfig.InquiryMode == 6 {
|
if doctorInquiryConfig.InquiryType == 1 && doctorInquiryConfig.InquiryMode == 6 {
|
||||||
if req.DoctorInquiryConfigService == nil {
|
if req.DoctorInquiryConfigService == nil {
|
||||||
return false, errors.New("请填写疑难会诊服务设置")
|
return false, errors.New("请填写疑难会诊服务设置")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
utils.LogJsonInfo("AAA6", doctorInquiryConfig);
|
||||||
utils.LogJsonInfo("123", doctorInquiryConfig);
|
utils.LogJsonInfo("123", doctorInquiryConfig);
|
||||||
// 开始事务
|
// 开始事务
|
||||||
tx := global.Db.Begin()
|
tx := global.Db.Begin()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user