Commit 4b0b487e by qwmqiuwenmin

fix

parent 48e7252d
......@@ -456,11 +456,29 @@ public class StaffApiServiceImpl implements StaffApiService {
String headPic = "";
Integer status = null;
String postion = "";
String gicClerkId = "";
String enterpriseId = "";
for (SyncJsonColumnDTO syncJsonColumnDTO:fieldList){
String name = StringUtil.camelName(syncJsonColumnDTO.getName());
String value = syncJsonColumnDTO.getValue();
if("clerkId".equals(name)){
gicClerkId = value;
if(StringUtils.isBlank(gicClerkId)){
return;
}
continue;
}
if("enterpriseId".equals(name)){
enterpriseId = value;
if(StringUtils.isBlank(enterpriseId)){
return;
}
continue;
}
if("storeId".equals(name)){
gicStoreId = value;
if(StringUtils.isBlank(gicStoreId)){
......@@ -597,6 +615,14 @@ public class StaffApiServiceImpl implements StaffApiService {
if(StringUtils.isBlank(staffRelated.getClerkCode()) && isCodeExist == null){
staffRelated.setClerkCode(code);
staffDepartmentRelatedMapper.updateByPrimaryKey(EntityUtil.changeEntityByJSON(TabHaobanStaffDepartmentRelated.class, staffRelated));
ClerkDTO clerkDTO= clerkService.getClerkByCodeNoStatus(enterpriseId,code);
if(clerkDTO != null){
logger.info("【员工修改】clerkDTO={}",JSON.toJSONString(clerkDTO));
clerkDTO.setClerkName(staffName);
clerkDTO.setPhoneNumber(phoneNumber);
clerkService.updateClerk(clerkDTO);
}
}
this.staffEdit(staff, departmentIds);
}
......
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