bug
parent
7f751daffe
commit
8ae5675889
|
|
@ -37,7 +37,8 @@ public class GbsUserSyncInterceptor implements WebMvcConfigurer {
|
|||
"/**/org-info/save/**",
|
||||
"/**/account/save/**",
|
||||
"/**/account/sendMessage/**",
|
||||
"/**/file/**"
|
||||
"/**/file/**",
|
||||
"/**/tree/**"
|
||||
};
|
||||
@Override
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
|
|
|
|||
|
|
@ -1,18 +1,12 @@
|
|||
package org.qinan.safetyeval.adapter.web;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import org.qinan.safetyeval.client.dto.PageResponse;
|
||||
import org.qinan.safetyeval.client.dto.SingleResponse;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.qinan.safetyeval.client.api.OrgDepartmentApi;
|
||||
import org.qinan.safetyeval.client.co.OrgDepartmentCO;
|
||||
import org.qinan.safetyeval.client.dto.OrgDepartmentAddCmd;
|
||||
import org.qinan.safetyeval.client.dto.OrgDepartmentModifyCmd;
|
||||
import org.qinan.safetyeval.client.dto.OrgDepartmentPageQuery;
|
||||
import org.qinan.safetyeval.infrastructure.adapter.auth.AuthUserContextAdapter;
|
||||
import org.qinan.safetyeval.infrastructure.adapter.auth.AuthUserInfo;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.qinan.safetyeval.client.dto.*;
|
||||
import org.qinan.safetyeval.infrastructure.dataobject.base.Req;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
|
|
@ -53,8 +47,8 @@ public class OrgDepartmentController {
|
|||
|
||||
@ApiOperation("删除部门")
|
||||
@PostMapping("/delete")
|
||||
public SingleResponse<Void> delete(@ApiParam("主键ID") @RequestParam String id) {
|
||||
return orgDepartmentApi.delete(Long.parseLong(id));
|
||||
public SingleResponse<Void> delete(@ApiParam("主键ID") @RequestBody Req<Long> req) {
|
||||
return orgDepartmentApi.delete(req.getData());
|
||||
}
|
||||
|
||||
@ApiOperation("分页查询部门")
|
||||
|
|
|
|||
Loading…
Reference in New Issue