Commit e051446a by qwmqiuwenmin

fix

parent 42b4dcc8
......@@ -240,6 +240,7 @@ public class StaffApiServiceImpl implements StaffApiService {
tab.setPhoneNumber(user.getMobile());
tab.setStaffName(user.getName());
tab.setNickName(user.getName());
tab.setNationCode("86");
tab.setSex(Integer.parseInt(user.getGender()));
staffService.add(tab);
......@@ -248,7 +249,7 @@ public class StaffApiServiceImpl implements StaffApiService {
TabHaobanDepartment tabDepartment = departmentService.getByWxId(integer.toString(), wxEnterpriseId);
if(tabDepartment != null){
TabHaobanStaffDepartmentRelated tabStaff = staffDepartmentRelatedService.getDepartmentIdAndStaffId(tabDepartment.getDepartmentId(), tab.getStaffId());
if(tabStaff != null){
if(tabStaff == null){
StaffDepartmentRelatedDTO dto = new StaffDepartmentRelatedDTO();
dto.setPhoneNumber(user.getMobile());
dto.setWxUserId(userId);
......
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