|
@@ -1,6 +1,5 @@
|
|
|
package com.bofeng.wx.controller;
|
|
|
|
|
|
-import cn.afterturn.easypoi.cache.manager.IFileLoader;
|
|
|
import com.baomidou.mybatisplus.toolkit.IdWorker;
|
|
|
import com.bofeng.JwtHelper;
|
|
|
import com.bofeng.dao.*;
|
|
@@ -11,32 +10,21 @@ import com.bofeng.service.ScanAdminService;
|
|
|
import com.bofeng.service.ScanService;
|
|
|
import com.bofeng.service.SweepCodeService;
|
|
|
import com.bofeng.unit.QRCode;
|
|
|
-import com.google.zxing.BarcodeFormat;
|
|
|
-import com.google.zxing.MultiFormatWriter;
|
|
|
import com.google.zxing.WriterException;
|
|
|
-import com.google.zxing.client.j2se.MatrixToImageConfig;
|
|
|
-import com.google.zxing.client.j2se.MatrixToImageWriter;
|
|
|
-import com.google.zxing.common.BitMatrix;
|
|
|
import com.yvan.Model;
|
|
|
import com.yvan.PageDb;
|
|
|
import com.yvan.mvc.JsonBody;
|
|
|
import com.yvan.mvc.Pd;
|
|
|
-import com.yvan.platform.Conv;
|
|
|
import com.yvan.springmvc.HttpParameterParser;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import lombok.Cleanup;
|
|
|
import lombok.SneakyThrows;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
-import org.springframework.http.MediaType;
|
|
|
-import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
-import javax.servlet.ServletOutputStream;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.IOException;
|
|
|
import java.net.URLEncoder;
|
|
@@ -160,7 +148,7 @@ public class ScanAdminController {
|
|
|
if (uptownUnits!=null && uptownUnits.size()>0) {
|
|
|
unitName = uptownUnits.get(0).getRidgepole()+uptownUnits.get(0).getUnit();
|
|
|
}
|
|
|
- List<ExcelRiBaoLYBM4> list = sweepCodeService.exSelectLingyunUser(map, 1238790987234L);
|
|
|
+ List<ExcelRiBaoLYBM4> list = sweepCodeService.exSelectLingyunUser(map, 1238790987234L, userId);
|
|
|
ExcelUtils.writeSheet(ExcelRiBaoLYBM4.class, list).export(resp, unitName + "上报信息-" + date);
|
|
|
}
|
|
|
|
|
@@ -193,7 +181,7 @@ public class ScanAdminController {
|
|
|
if (uptownUnits!=null && uptownUnits.size()>0) {
|
|
|
unitName = uptownUnits.get(0).getRidgepole()+uptownUnits.get(0).getUnit();
|
|
|
}
|
|
|
- List<ExcelRiBaoLYBM4> list = sweepCodeService.exSelectLingyunUser(map, 5L);
|
|
|
+ List<ExcelRiBaoLYBM4> list = sweepCodeService.exSelectLingyunUser(map, 5L, userId);
|
|
|
List<ExcelRiBaoZJBM4> excelRiBaoZJBM4s = sweepCodeService.listCopyToAotherList(ExcelRiBaoZJBM4.class, list);
|
|
|
ExcelUtils.writeSheet(ExcelRiBaoZJBM4.class, excelRiBaoZJBM4s).export(resp, unitName + "上报信息-" + date);
|
|
|
}
|