コード例 #1
0
  private void replaceStaffIdWithStaffName(
      final String staffIdStr,
      final String staffNameParamName,
      Map<String, Object> commandAsJsonMap) {

    Long staffId = null;
    if (StringUtils.isNotBlank(staffIdStr)) {
      staffId = Long.valueOf(staffIdStr);
      final StaffData officer = this.staffReadPlatformService.retrieveStaff(staffId);
      commandAsJsonMap.put(staffNameParamName, officer.getDisplayName());
    } else {
      commandAsJsonMap.put(staffNameParamName, "");
    }
  }