|
@@ -1,24 +1,24 @@
|
|
package org.jeecg.modules.oa.controller;
|
|
package org.jeecg.modules.oa.controller;
|
|
|
|
|
|
-import java.io.Serializable;
|
|
|
|
-import java.io.InputStream;
|
|
|
|
-import java.io.IOException;
|
|
|
|
-import java.text.ParseException;
|
|
|
|
-import java.util.*;
|
|
|
|
-
|
|
|
|
-import javax.servlet.http.HttpServletRequest;
|
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
|
-
|
|
|
|
-import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
import org.apache.commons.lang.StringUtils;
|
|
import org.apache.commons.lang.StringUtils;
|
|
-import org.apache.poi.ss.usermodel.*;
|
|
|
|
-import org.apache.poi.xssf.usermodel.XSSFFormulaEvaluator;
|
|
|
|
|
|
+import org.apache.poi.ss.usermodel.CellType;
|
|
|
|
+import org.apache.poi.ss.usermodel.Row;
|
|
|
|
+import org.apache.poi.ss.usermodel.Sheet;
|
|
|
|
+import org.apache.poi.ss.usermodel.Workbook;
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
|
+import org.apache.shiro.SecurityUtils;
|
|
|
|
+import org.jeecg.common.api.vo.Result;
|
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
|
-import org.jeecg.common.exception.JeecgBootException;
|
|
|
|
|
|
+import org.jeecg.common.system.query.QueryGenerator;
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
-import org.apache.shiro.SecurityUtils;
|
|
|
|
-import org.jeecg.common.util.oConvertUtils;
|
|
|
|
|
|
+import org.jeecg.modules.oa.entity.SyCarry;
|
|
|
|
+import org.jeecg.modules.oa.entity.SyCarryB;
|
|
|
|
+import org.jeecg.modules.oa.service.ISyCarryBService;
|
|
|
|
+import org.jeecg.modules.oa.service.ISyCarryService;
|
|
import org.jeecg.modules.oa.vo.SyCarryPage;
|
|
import org.jeecg.modules.oa.vo.SyCarryPage;
|
|
import org.jeecg.modules.system.entity.SysUser;
|
|
import org.jeecg.modules.system.entity.SysUser;
|
|
import org.jeecg.modules.system.service.ISysUserService;
|
|
import org.jeecg.modules.system.service.ISysUserService;
|
|
@@ -27,23 +27,23 @@ import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
|
import org.jeecgframework.poi.excel.entity.ExportParams;
|
|
import org.jeecgframework.poi.excel.entity.ExportParams;
|
|
import org.jeecgframework.poi.excel.entity.ImportParams;
|
|
import org.jeecgframework.poi.excel.entity.ImportParams;
|
|
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
|
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
|
-
|
|
|
|
-import org.jeecg.common.api.vo.Result;
|
|
|
|
-import org.jeecg.common.system.query.QueryGenerator;
|
|
|
|
-import org.jeecg.modules.oa.entity.SyCarryB;
|
|
|
|
-import org.jeecg.modules.oa.entity.SyCarry;
|
|
|
|
-import org.jeecg.modules.oa.service.ISyCarryService;
|
|
|
|
-import org.jeecg.modules.oa.service.ISyCarryBService;
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
-import org.springframework.web.servlet.ModelAndView;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
|
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
|
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
-import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
+import org.springframework.web.servlet.ModelAndView;
|
|
|
|
+
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
|
+import java.io.IOException;
|
|
|
|
+import java.io.InputStream;
|
|
|
|
+import java.io.Serializable;
|
|
|
|
+import java.text.ParseException;
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
+import java.util.Arrays;
|
|
|
|
+import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @Description: 搬运装卸费用-搬运工对账单-主表
|
|
* @Description: 搬运装卸费用-搬运工对账单-主表
|
|
@@ -291,7 +291,7 @@ public class SyCarryController {
|
|
}
|
|
}
|
|
syCarryB.setOrderDate(row.getCell(0).getDateCellValue());
|
|
syCarryB.setOrderDate(row.getCell(0).getDateCellValue());
|
|
if(row.getCell(1)!=null){
|
|
if(row.getCell(1)!=null){
|
|
- row.getCell(1).setCellType(Cell.CELL_TYPE_STRING);
|
|
|
|
|
|
+ row.getCell(1).setCellType(CellType.STRING);
|
|
}
|
|
}
|
|
syCarryB.setInvoiceNo(row.getCell(1)==null?"":row.getCell(1).getStringCellValue());
|
|
syCarryB.setInvoiceNo(row.getCell(1)==null?"":row.getCell(1).getStringCellValue());
|
|
syCarryB.setSaleInvoiceNo(row.getCell(2)==null?"":row.getCell(2).getStringCellValue());
|
|
syCarryB.setSaleInvoiceNo(row.getCell(2)==null?"":row.getCell(2).getStringCellValue());
|