weaver-hrm-salary/src/com/engine/salary/entity/datacollection/bo/DataCollectionBO.java

53 lines
2.0 KiB
Java
Raw Normal View History

2022-05-25 16:51:43 +08:00
package com.engine.salary.entity.datacollection.bo;
/**
* @Description: 数据采集
* @Author: wangxiangzhong
* @Date: 2021/11/29 13:28
*/
public class DataCollectionBO {
@Override
public String toString() {
return "DataCollectionBO{}";
}
// /**
// * 添加日期范围
// *
// * @param weaSearchCondition
// * @param employeeId
// * @param tenantKey
// */
// public static void addDatePickerRangeOtherParams(WeaSearchCondition weaSearchCondition, String datePickerKey, Long employeeId, String tenantKey) {
// WeaSearchConditionItem datePickerItem = weaSearchCondition.getItems().get(datePickerKey);
// Map<String, Object> otherParams = Maps.newHashMap();
// otherParams.put("isRange", true);
// otherParams.put("type", "day");
// otherParams.put("startPlaceholder", SalaryI18nUtil.getI18nLabel(tenantKey, employeeId, 90648, "开始日期"));
// otherParams.put("endPlaceholder", SalaryI18nUtil.getI18nLabel(tenantKey, employeeId, 90649, "结束日期"));
// datePickerItem.setOtherParams(otherParams);
// weaSearchCondition.getItems().put(datePickerKey, datePickerItem);
// }
//
// /**
// * 获取身份证号
// *
// * @param employeeId
// * @param simpleUserInfos
// */
// public static String getIdNo(Long employeeId, List<DataCollectionEmployee> simpleUserInfos) {
// if (employeeId == null || CollectionUtils.isEmpty(simpleUserInfos)) {
// return StringUtils.EMPTY;
// }
// Optional<SimpleUserInfo> optionalSimpleUserInfo = simpleUserInfos.stream()
// .filter(simpleUserInfo -> Objects.nonNull(simpleUserInfo) && Objects.nonNull(simpleUserInfo.getUser())).findFirst();
// String idNo = StringUtils.EMPTY;
// if (optionalSimpleUserInfo.isPresent()) {
// SimpleUserInfo simpleUserInfo = optionalSimpleUserInfo.get();
// idNo = Optional.of(simpleUserInfo).map(SimpleUserInfo::getIdNo).orElse(StringUtils.EMPTY);
// }
// return idNo;
// }
}