zhangqian
2023-11-01 530fed8ec225453572d57b15c200ab062c335457
api/v1/customerServiceSheet.go
@@ -71,8 +71,8 @@
//   @Tags      CustomerServiceSheet
//   @Summary   更新客服单
//   @Produce   application/json
//   @Param      object   body      request.UpdateCustomerServiceSheet true   "查询参数"
//   @Success   200   {object}   contextx.Response{}
//   @Param      object   body      request.UpdateCustomerServiceSheet   true   "查询参数"
//   @Success   200      {object}   contextx.Response{}
//   @Router      /api/customerServiceSheet/update/{id} [put]
func (s *CustomerServiceSheetApi) Update(c *gin.Context) {
   var params request.UpdateCustomerServiceSheet
@@ -122,13 +122,13 @@
// checkCustomerServiceSheetParams
func checkCustomerServiceSheetParams(customerServiceSheet request.CustomerServiceSheet) (errCode int, newCustomerServiceSheet model.CustomerServiceSheet) {
   if customerServiceSheet.Number == "" {
      return ecode.InvalidParams, model.CustomerServiceSheet{}
   }
   //if customerServiceSheet.Number == "" {
   //   return ecode.InvalidParams, model.CustomerServiceSheet{}
   //}
   if customerServiceSheet.MemberId == 0 {
      return ecode.InvalidParams, model.CustomerServiceSheet{}
   }
   //if customerServiceSheet.MemberId == 0 {
   //   return ecode.InvalidParams, model.CustomerServiceSheet{}
   //}
   newCustomerServiceSheet = model.CustomerServiceSheet{
      Number:       customerServiceSheet.Number,