|
@@ -36,21 +36,18 @@ public class FlowableService {
|
|
|
}
|
|
|
return resMap;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 保存用户
|
|
|
- * @param staffInf
|
|
|
* @return
|
|
|
*/
|
|
|
-// public Map<String, Object> addFlowableUser(SysStaffInf staffInf,String deptId) {
|
|
|
-// Map<String, Object> m = new HashMap<>();
|
|
|
-// m.put("id", staffInf.getSsId());
|
|
|
-// m.put("name", staffInf.getSsName());
|
|
|
-// m.put("companyId",staffInf.getSsCompanyId());
|
|
|
-// m.put("groupId",deptId);
|
|
|
-// return apiPost(ADD_USER, m);
|
|
|
-// }
|
|
|
+ public Map<String, Object> addFlowableUser(String id, String name, String groupId) {
|
|
|
+ Map<String, Object> m = new HashMap<>();
|
|
|
+ m.put("id", id);
|
|
|
+ m.put("name", name);
|
|
|
+ m.put("groupId", groupId);
|
|
|
+ return apiPost(ADD_USER, m);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 删除用户
|
|
@@ -65,11 +62,10 @@ public class FlowableService {
|
|
|
* 新增部门
|
|
|
* @return
|
|
|
*/
|
|
|
- public Map<String, Object> addFlowableGroup(SysDept dept) {
|
|
|
+ public Map<String, Object> addFlowableGroup(String groupId, String groupName) {
|
|
|
Map<String, Object> m = new HashMap<>();
|
|
|
- m.put("groupId", dept.getAlternateNumber());
|
|
|
- m.put("groupName",dept.getDeptName());
|
|
|
- m.put("companyId",dept.getCompanyId());
|
|
|
+ m.put("groupId", groupId);
|
|
|
+ m.put("groupName", groupName);
|
|
|
return apiPost(ADD_GROUP, m);
|
|
|
}
|
|
|
|