Commit 37c5bb6a by huangZW

Merge branch 'developer' of http://115.159.76.241/haoban3.0/haoban-manage3.0.git into developer

parents 7feb6f07 8a7abb3b
......@@ -39,4 +39,6 @@ public interface StaffApiService {
public int countByDepartmentId(String departmentId);
public void syncGicClerk(String fieldListString);
}
......@@ -150,7 +150,7 @@ public class StaffApiServiceImpl implements StaffApiService {
hr.setMessage("微信端新增失败");
}
hr.setResult(staffId);
return hr;
}
......@@ -412,4 +412,10 @@ public class StaffApiServiceImpl implements StaffApiService {
return EntityUtil.changeEntityByJSON(StaffDTO.class, tab);
}
@Override
public void syncGicClerk(String fieldListString) {
// TODO Auto-generated method stub
}
}
......@@ -536,7 +536,15 @@ public class DepartmentContoller extends WebBaseController{
staff.setPhoneNumber(phoneNumber);
staff.setSex(clerkListDTO.getClerkGender() == null?null:Integer.parseInt(clerkListDTO.getClerkGender()));
staff.setSyncPostionFlag(1);
staffApiService.add(staff, departmentId);
HaobanResponse hr = staffApiService.add(staff, departmentId);
if(hr.getErrorCode() == 1){
StaffDepartmentRelatedDTO staffRelated = staffApiService.getDepartmentIdAndStaffId(departmentId, hr.getResult().toString());
if(staffRelated != null){
staffRelated.setClerkCode(clerkCode);
staffDepartmentRelatedApiService.updateById(staffRelated);
}
}
}else{
String staffId = staff.getStaffId();
List<StaffDepartmentRelatedDTO> relatedList = staffApiService.listStaffDepartmentByStaffId(staffId);
......
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