liujiandao
2023-10-13 5fa1de02759b9646e8987312736699755990e960
api/v1/serviceFollowup.go
@@ -37,6 +37,13 @@
      ctx.Fail(errCode)
      return
   }
   if params.CodeRule.Method == 1 {
      autoCode := model.GetAutoCode(serviceFollowup.Id, &params.CodeRule)
      m := map[string]interface{}{
         "number": autoCode,
      }
      _ = model.NewServiceFollowupSearch().SetId(serviceFollowup.Id).UpdateByMap(m)
   }
   ctx.Ok()
}
@@ -121,6 +128,7 @@
      OldMemberId:    serviceFollowup.OldMemberId,
      Remark:         serviceFollowup.Remark,
      File:           serviceFollowup.File,
      CodeStandID:    serviceFollowup.CodeStandID,
   }
   return ecode.OK, serviceFollowupModel
@@ -132,7 +140,9 @@
//   @Summary   回访单管理列表
//   @Produce   application/json
//   @Param      object   body      request.GetServiceFollowupList   true   "参数"
//   @Success   200      {object}   contextx.Response{data=response.ServiceFollowupResponse}
//
// @Success   200      {object}   contextx.Response{data=response.ServiceFollowupResponse}
//
//   @Router      /api/serviceFollowup/list [post]
func (con *ServiceFollowupApi) List(c *gin.Context) {
   var params request.GetServiceFollowupList