|
|
@@ -2,6 +2,7 @@ package com.xunmei.system.controller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.xunmei.common.core.web.domain.AjaxResult;
|
|
|
+import com.xunmei.common.security.annotation.InnerAuth;
|
|
|
import com.xunmei.system.api.domain.Org;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import com.xunmei.system.service.IOrgService;
|
|
|
@@ -15,6 +16,8 @@ import com.xunmei.common.core.web.controller.BaseController;
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* OrgController 前端控制器
|
|
|
@@ -102,4 +105,18 @@ public class OrgController extends BaseController {
|
|
|
orgService.findListByPage(page, org);
|
|
|
return success(page);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "批量保存同步机构数据")
|
|
|
+ @InnerAuth
|
|
|
+ @PostMapping("/batchsavesyncorg")
|
|
|
+ public AjaxResult batchSaveSyncOrg(@RequestBody List<Org> orgLit){
|
|
|
+ try {
|
|
|
+ boolean result= orgService.saveOrUpdateBatch(orgLit);
|
|
|
+ return success(result);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error(e.getMessage(), e);
|
|
|
+ return error();
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|