bugfix:读取描述时会读取下一行

This commit is contained in:
twinkle255 2023-06-25 13:18:24 +08:00
parent 52c3c4fd50
commit a773d804f8

View File

@ -41,8 +41,8 @@ public class IndentItemView {
IItem.setDiscount(-1F); IItem.setDiscount(-1F);
} }
//描述 //描述
if (!reader.hasNext("end") && !Objects.equals(reader.nextLine(), " ")) { if (!reader.hasNext("end") && !reader.hasNext(" ")) {
IItem.setDescription(reader.nextLine()); IItem.setDescription(reader.next());
} }
//菜单ID //菜单ID
indentDAO indent = new indentDAO(); indentDAO indent = new indentDAO();