|
@@ -10,8 +10,8 @@ import com.aoyang.tms.util.JxlsUtils;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.io.FileUtils;
|
|
import org.apache.commons.io.FileUtils;
|
|
|
-import org.apache.poi.ss.formula.functions.T;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody;
|
|
import org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody;
|
|
|
|
|
|
|
@@ -47,6 +47,8 @@ public class JxlsExportTestServiceImpl implements JxlsExportTestService {
|
|
|
private TruckRepairInfoService truckRepairInfoService;
|
|
private TruckRepairInfoService truckRepairInfoService;
|
|
|
@Resource
|
|
@Resource
|
|
|
private TruckCheckInfoService truckCheckInfoService;
|
|
private TruckCheckInfoService truckCheckInfoService;
|
|
|
|
|
+ @Value("${domain_url}")
|
|
|
|
|
+ private String domainUrl;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public WorkLogTplVO getWorkLogTplVO(WorkOrder param) {
|
|
public WorkLogTplVO getWorkLogTplVO(WorkOrder param) {
|
|
@@ -163,9 +165,9 @@ public class JxlsExportTestServiceImpl implements JxlsExportTestService {
|
|
|
log.info("workLogTplVO is null:{}");
|
|
log.info("workLogTplVO is null:{}");
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
- byte driverOneSignUrl[] = getImageBytes("https://dwx.auyen.com/" + workLogTplVO.getWorkCycle().getDriverOneSignUrl());
|
|
|
|
|
- byte driverTwoSignUrl[] = getImageBytes("https://dwx.auyen.com/" + workLogTplVO.getWorkCycle().getDriverTwoSignUrl());
|
|
|
|
|
- byte escortSignUrl[] = getImageBytes("https://dwx.auyen.com/" + workLogTplVO.getWorkCycle().getEscortSignUrl());
|
|
|
|
|
|
|
+ byte driverOneSignUrl[] = getImageBytes(domainUrl + workLogTplVO.getWorkCycle().getDriverOneSignUrl());
|
|
|
|
|
+ byte driverTwoSignUrl[] = getImageBytes(domainUrl + workLogTplVO.getWorkCycle().getDriverTwoSignUrl());
|
|
|
|
|
+ byte escortSignUrl[] = getImageBytes(domainUrl + workLogTplVO.getWorkCycle().getEscortSignUrl());
|
|
|
|
|
|
|
|
// 获取模板文件
|
|
// 获取模板文件
|
|
|
String tplfileName = "work_log_tpl.xlsx";
|
|
String tplfileName = "work_log_tpl.xlsx";
|