Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

CP_部门管理

Daniel Qian edited this page Oct 22, 2014 · 1 revision

新建部门

WxCpDepart depart = new WxCpDepart();
depart.setName("子部门" + System.currentTimeMillis());
depart.setParentId(1);
depart.setOrder(1);
Integer departId = wxCpService.departCreate(depart);

获取部门

List<WxCpDepart> departList = wxCpService.departGet();

更新部门

depart.setName("子部门改名" + System.currentTimeMillis());
wxCpService.departUpdate(depart);

删除部门

wxCpService.departDelete(depart.getId());