Commit c2fdeb3c authored by huyuchen's avatar huyuchen

优化修改

parent ef1c7e4f
......@@ -186,7 +186,6 @@ implements TVacationInfoService {
// 初始化人员拓展信息map和假勤类型map
HashMap<String, TBusinessEmployeeExtendInfo> employeeExtentMap= Common.listToHashMapByKey(employeeExtentList, "businessTelecomNumber");
HashMap<String, TBusDept> busDeptMap= Common.listToHashMapByKey(busDeptList, "name");
HashMap<String, ErrorMessage> errorMessageHashMap = Common.listToHashMapByKey(errorMessageList, "line");
int size = list.size();
Map<String,String> sysMap = new HashMap<>();
Map<String,String> dicObj = (Map<String, String>) RedisUtil.redis.opsForValue().get(
......@@ -206,15 +205,14 @@ implements TVacationInfoService {
int line = i + 2;
TVacationInfo entity = new TVacationInfo();
ImportVacationInfoDTO dto = list.get(i);
businessEmployeeExtend = employeeExtentMap.get(dto.getBusinessTelecomNumber());
businessEmployeeExtend = employeeExtentMap.get(dto.getBusinessTelecomNumber());
if (null == businessEmployeeExtend) {
errorMessageList.add(new ErrorMessage(line, BusinessResultErrorMsg.BUSINESS_TELECOM_NUMBER_NOT_EXIST, CommonConstants.RED));
continue;
}
TBusDept busDept = busDeptMap.get(businessEmployeeExtend.getDepartName());
errorMessage = errorMessageHashMap.get(line + "");
boolean isSave = true;
if (null != errorMessage) {
if (!errorMessageList.isEmpty()) {
continue;
}
if (Common.isEmpty(sysMap.get(dto.getVacationType()))) {
......
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