代码备份

pro
anthonywj 2 years ago
parent 46d5cb0181
commit 6e6b56085c

@ -188,7 +188,7 @@ public class InvInnerOrderPrintController {
} else { } else {
Map<String, Object> data = new HashMap<String, Object>(); Map<String, Object> data = new HashMap<String, Object>();
data.put("data", printEntities); data.put("data", printEntities);
JasperUtils.jasperReport(request, response, data, filePath + "/pdf/template/" + systemPDFTemplateEntity.getPath(), "pdf"); JasperUtils.jasperReport(request, response, data, filePath + "/pdf/template/" + FileUtils.getLastFileName(systemPDFTemplateEntity.getPath()), "pdf");
} }
@ -284,7 +284,7 @@ public class InvInnerOrderPrintController {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("data", printEntities); map.put("data", printEntities);
String param = JSON.toJSONString(map); String param = JSON.toJSONString(map);
JasperUtils.jasperReport(request, response, param, filePath + "/pdf/template/" + systemPDFTemplateEntity.getPath(), "pdf"); JasperUtils.jasperReport(request, response, param, filePath + "/pdf/template/" + FileUtils.getLastFileName(systemPDFTemplateEntity.getPath()), "pdf");
String orderId = ""; String orderId = "";
for (InnerOrderPrintResponse InnerOrderPrintResponse : mStockPrintEntities) { for (InnerOrderPrintResponse InnerOrderPrintResponse : mStockPrintEntities) {

@ -167,6 +167,7 @@ public class IoOrderServiceImpl implements IoOrderService {
orderEntity.setRelKey(UUID.fastUUID().toString(true)); orderEntity.setRelKey(UUID.fastUUID().toString(true));
} }
orderEntity.setExportStatus(0); //上传状态:未上传 orderEntity.setExportStatus(0); //上传状态:未上传
orderEntity.setInCodeStatus(0);
return orderDao.insert(orderEntity); return orderDao.insert(orderEntity);
} }

@ -162,8 +162,6 @@ public class ThrDeptServiceImpl extends ServiceImpl<ThrDeptDao, ThrDeptEntity> i
thrInvWarehouseDao.insertThrInvWarehouse(thrInvWarehouseEntity); thrInvWarehouseDao.insertThrInvWarehouse(thrInvWarehouseEntity);
} }
} }
} }
//插入数据 //插入数据
thrDeptDao.insertInvWarehouses(list); thrDeptDao.insertInvWarehouses(list);

@ -1,5 +1,7 @@
package com.glxp.api.util; package com.glxp.api.util;
import cn.hutool.core.util.StrUtil;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
import java.io.File; import java.io.File;
@ -529,6 +531,16 @@ public class FileUtils {
} }
} }
public static String getLastFileName(String fileName) {
String fileNameNow = fileName.substring(fileName.lastIndexOf("/") + 1);
if (StrUtil.isEmpty(fileNameNow))
return fileName;
else
return fileNameNow;
}
/** /**
* *
* *

Loading…
Cancel
Save