rev:logo图标更换 rev:木箱外表打印校验

This commit is contained in:
2024-01-08 09:53:46 +08:00
parent d9e041712b
commit f6f19e73a1
3 changed files with 7 additions and 3 deletions

View File

@@ -116,6 +116,10 @@ public class PrintServiceImpl implements PrintService {
// 生成txt文件
JSONObject jsonPrint = printTab.query("print_id = '" + whereJson.getString("print_type") + "'").uniqueResult(0);
if (ObjectUtil.isEmpty(jsonPrint)) {
throw new BadRequestException("请选择打印机!");
}
//10.1.3.21/LMSPrinter/
String filePath = jsonPrint.getString("print_route") + "外包标签.txt";
FileWriter fw = null;