opt:优化打印

This commit is contained in:
DESKTOP-5DIJMF9\admin
2025-04-08 14:56:24 +08:00
parent 8c68d87d74
commit a3fb60cb19

View File

@@ -399,7 +399,8 @@ public class PrintServiceImpl implements PrintService {
// 生成txt文件
JSONObject jsonPrint = printTab.query("print_id = '" + whereJson.getString("print_type") + "'").uniqueResult(0);
//10.1.3.21/LMSPrinter/
String filePath = jsonPrint.getString("print_route") + "外包标签.txt";
String time = String.valueOf(DateUtil.current());
String filePath = jsonPrint.getString("print_route") +time+"外包标签.txt";
FileWriter fw = null;
try {
File file = new File(filePath);