新增同步Ecology人员信息。
将sys_user表自增长改为从10000000开始 ALTER TABLE sys_user AUTO_INCREMENT = 10000000
This commit is contained in:
parent
923eb28ce8
commit
c9b127eb28
|
|
@ -208,14 +208,14 @@ public class SysDeptController extends BaseController
|
||||||
/**
|
/**
|
||||||
* Ecology部门信息同步
|
* Ecology部门信息同步
|
||||||
*/
|
*/
|
||||||
@Log(title = "部门管理", businessType = BusinessType.UPDATE)
|
@Log(title = "部门同步", businessType = BusinessType.UPDATE)
|
||||||
@RequiresPermissions("system:dept:sync")
|
@RequiresPermissions("system:dept:sync")
|
||||||
@PostMapping("/syncDept")
|
@PostMapping("/syncDept")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public AjaxResult syncDept()
|
public AjaxResult syncDept()
|
||||||
{
|
{
|
||||||
String url="http://192.168.2.85:90/api/hrm/resful/getHrmdepartmentWithPage";
|
String url="http://192.168.2.85:90/api/hrm/resful/getHrmdepartmentWithPage";
|
||||||
String params="{\"params\":{\"pagesize\":1000}}";
|
String params="{\"params\":{\"pagesize\":999999}}";
|
||||||
int result = deptService.syncEcologyDept(url,params);
|
int result = deptService.syncEcologyDept(url,params);
|
||||||
if(result==200){
|
if(result==200){
|
||||||
return AjaxResult.success("同步Ecology部门成功,返回状态码:"+result);
|
return AjaxResult.success("同步Ecology部门成功,返回状态码:"+result);
|
||||||
|
|
|
||||||
|
|
@ -287,9 +287,9 @@ public class SysUserController extends BaseController
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ecology部门信息同步
|
* Ecology人员信息同步
|
||||||
*/
|
*/
|
||||||
@Log(title = "部门管理", businessType = BusinessType.UPDATE)
|
@Log(title = "人员同步", businessType = BusinessType.UPDATE)
|
||||||
@RequiresPermissions("system:user:sync")
|
@RequiresPermissions("system:user:sync")
|
||||||
@PostMapping("/syncUser")
|
@PostMapping("/syncUser")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue