增加年度审查隐藏字段
This commit is contained in:
@@ -456,3 +456,23 @@ func (r *OrderInquiryService) GetOrderInquiryDoctorAmount(inquiryStatus int, amo
|
||||
|
||||
return doctorAmount
|
||||
}
|
||||
|
||||
// PutAnnualReviewHide 修改问诊订单年度审查隐藏状态
|
||||
func (r *OrderInquiryService) PutAnnualReviewHide(orderInquiryId int64, annualReviewHide int) error {
|
||||
// 获取问诊订单数据
|
||||
orderInquiryDao := dao.OrderInquiryDao{}
|
||||
orderInquiry, err := orderInquiryDao.GetOrderInquiryById(orderInquiryId)
|
||||
if err != nil || orderInquiry == nil {
|
||||
return errors.New("订单数据错误")
|
||||
}
|
||||
|
||||
// 修改问诊订单
|
||||
orderInquiryData := make(map[string]interface{})
|
||||
orderInquiryData["annual_review_hide"] = annualReviewHide
|
||||
err = orderInquiryDao.EditOrderInquiryById(global.Db, orderInquiryId, orderInquiryData)
|
||||
if err != nil {
|
||||
return errors.New("修改隐藏状态失败")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user