| | |
| | | util.ResponseFormat(c, code.RequestParamError, "参数解析失败,数据类型错误") |
| | | return |
| | | } |
| | | find, total, err := models.NewSalaryPlanSearch().SetPage(params.Page, params.PageSize).Find() |
| | | find, total, err := models.NewSalaryPlanSearch().SetPage(params.Page, params.PageSize).SetPreload(true).Find() |
| | | if err != nil { |
| | | util.ResponseFormat(c, code.RequestParamError, "查找失败") |
| | | return |
| | |
| | | // @Tags 员工薪资/薪酬方案 |
| | | // @Summary 删除薪酬方案 |
| | | // @Produce application/json |
| | | // @Param number path string true "id" |
| | | // @Param id path string true "id" |
| | | // @Param Authorization header string true "token" |
| | | // @Success 200 {object} util.Response "成功" |
| | | // @Router /api-jl/v1/salary/deleteSalaryPlanInfo/{id} [delete] |