|
|
|
|
@ -1,8 +1,6 @@
|
|
|
|
|
package com.ruoyi.pay.util;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.lang.Dict;
|
|
|
|
|
import com.ruoyi.common.core.service.DictService;
|
|
|
|
|
import com.ruoyi.common.helper.LoginHelper;
|
|
|
|
|
import com.ruoyi.common.utils.spring.SpringUtils;
|
|
|
|
|
import com.ruoyi.pay.domain.PayAttendance;
|
|
|
|
|
import com.ruoyi.pay.domain.bo.PayAttendanceBo;
|
|
|
|
|
@ -15,14 +13,11 @@ import org.apache.poi.ss.usermodel.Row;
|
|
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
|
|
|
|
|
|
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
|
|
|
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
|
|
|
|
import org.apache.poi.ss.usermodel.*;
|
|
|
|
|
import org.apache.poi.xssf.usermodel.XSSFSheet;
|
|
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import javax.annotation.PostConstruct;
|
|
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
@ -186,7 +181,7 @@ public class AttendanceExcelUtil {
|
|
|
|
|
String wid = this.getCellValue(row1, 2).toString();//考勤机工号
|
|
|
|
|
String wname = this.getCellValue(row1, 10).toString();
|
|
|
|
|
//根据员工name查询员工id、部门id、部门名称
|
|
|
|
|
PayAttendance info = iPayAttendanceService.selectEmpInfoByName(wname);
|
|
|
|
|
PayAttendance info = iPayAttendanceService.selectEmpInfoByName(wname,tenantId);
|
|
|
|
|
if(info==null){
|
|
|
|
|
throw new IOException("请先在员工表中添加员工:"+wname+" 或者考勤机选择错误");
|
|
|
|
|
}
|
|
|
|
|
@ -431,7 +426,7 @@ public class AttendanceExcelUtil {
|
|
|
|
|
String wid = this.getCellValue(row1, 0).toString();//考勤机工号
|
|
|
|
|
String wname = this.getCellValue(row1, 1).toString();//姓名
|
|
|
|
|
//根据员工name查询员工id、部门id、部门名称
|
|
|
|
|
PayAttendance info = iPayAttendanceService.selectEmpInfoByName(wname);
|
|
|
|
|
PayAttendance info = iPayAttendanceService.selectEmpInfoByName(wname, tenantId);
|
|
|
|
|
if(info==null){
|
|
|
|
|
throw new IOException("请先在员工表中添加员工:"+wname+" 或者考勤机选择错误");
|
|
|
|
|
}
|
|
|
|
|
|