Commit 45a51e39 by xugaojun

修改员工姓名获取方式

parent d3faa3c5
......@@ -157,6 +157,10 @@ public class MessageApiServiceImpl implements MessageApiService {
log.info("没有配置secret:{}", JSONObject.toJSONString(enterprise));
return;
}
// 这里将员工姓名改一下, 代开发返回的 id 和 name 一样
if (Objects.equals(dto.getUserid(), dto.getUserName())) {
dto.setUserName((String) response.getResult());
}
// 取第一个企业的id
doDealUser(dto, relatedList.get(0).getEnterpriseId(), secretSetting.getSecretVal());
......
......@@ -430,6 +430,8 @@ public class StaffApiServiceImpl implements StaffApiService {
}
logger.info("门店变更保存:{}", JSONObject.toJSONString(user));
staffDepartChange(staff, wxEnterpriseId, user);
// 返回结果带上员工姓名
res.setResult(staff.getStaffName());
return res;
}
......
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