| | |
| | | ctx.Fail(errCode) |
| | | return |
| | | } |
| | | if params.CodeRule.Method == 1 { |
| | | autoCode := model.GetAutoCode(serviceFollowup.Id, ¶ms.CodeRule) |
| | | m := map[string]interface{}{ |
| | | "number": autoCode, |
| | | } |
| | | _ = model.NewServiceFollowupSearch().SetId(serviceFollowup.Id).UpdateByMap(m) |
| | | } |
| | | |
| | | ctx.Ok() |
| | | } |
| | |
| | | OldMemberId: serviceFollowup.OldMemberId, |
| | | Remark: serviceFollowup.Remark, |
| | | File: serviceFollowup.File, |
| | | CodeStandID: serviceFollowup.CodeStandID, |
| | | } |
| | | |
| | | return ecode.OK, serviceFollowupModel |
| | |
| | | // @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 |