Commit 35fcf927 by fudahua

Merge branch 'master-6-3' into developer

parents 7105393b eabcf188
...@@ -423,6 +423,7 @@ public class DepartmentApiServiceImpl implements DepartmentApiService { ...@@ -423,6 +423,7 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
String storeName = ""; String storeName = "";
String departmentId = ""; String departmentId = "";
String storeId = ""; String storeId = "";
String storeParentId="";
for (SyncJsonColumnDTO syncJsonColumnDTO:fieldList){ for (SyncJsonColumnDTO syncJsonColumnDTO:fieldList){
String name = StringUtil.camelName(syncJsonColumnDTO.getName()); String name = StringUtil.camelName(syncJsonColumnDTO.getName());
String value = syncJsonColumnDTO.getValue(); String value = syncJsonColumnDTO.getValue();
...@@ -435,19 +436,17 @@ public class DepartmentApiServiceImpl implements DepartmentApiService { ...@@ -435,19 +436,17 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
if("departmentId".equals(name)) { if("departmentId".equals(name)) {
departmentId = value; departmentId = value;
} }
if("storeId".equals(name)) { if("storeGroupId".equals(name)) {
storeId = value; storeParentId = value;
} }
} }
DepartmentDTO department = departmentService.getByRelatedId(storeId); DepartmentDTO department = departmentService.getByRelatedId(storeId);
if(department == null) { DepartmentDTO parent = departmentService.getByRelatedId(storeParentId);
if(status != null && status == 2) { if (department!=null && parent!=null&&(!department.getParentDepartmentId().equals(parent.getDepartmentId()))) {
DepartmentDTO parent = getParent(departmentId); logger.info("更新部门!");
if(parent == null) { department.setDepartmentName(storeName);
TabHaobanWxEnterpriseRelated tab = null; department.setParentDepartmentId(parent.getDepartmentId());
//parent = getRootByEnterpriseId(wxEnterpriseId); this.edit(department);
}
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment