修改打印数据

This commit is contained in:
韩鹏辉
2024-04-15 15:33:18 +08:00
parent a2432316ea
commit c0f3b445cb
11 changed files with 187 additions and 5 deletions

View File

@@ -21,6 +21,8 @@ public class HandoverInfo implements Serializable {
private List<MemberData> memberData;
private List<ProductCategory> productCategories;
private String totalAmount;
@@ -34,7 +36,10 @@ public class HandoverInfo implements Serializable {
private String orderNum;
public HandoverInfo(String merchantName, String startTime, String endTime, String staff, List<PayInfo> payInfos, List<HandoverInfo.MemberData> memberData, String totalAmount, String imprest, String payable, String handIn, String returnAmount,String orderNum) {
public HandoverInfo(String merchantName, String startTime, String endTime, String staff, List<PayInfo> payInfos, List<HandoverInfo.MemberData> memberData, String totalAmount, String imprest, String payable, String handIn, String returnAmount,String orderNum
,List<ProductCategory> productCategories
) {
this.merchantName = merchantName;
this.startTime = startTime;
this.endTime = endTime;
@@ -47,6 +52,7 @@ public class HandoverInfo implements Serializable {
this.handIn = handIn;
this.returnAmount=returnAmount;
this.orderNum = orderNum;
this.productCategories=productCategories;
}
@Data
@@ -72,4 +78,19 @@ public class HandoverInfo implements Serializable {
this.deposit = deposit;
}
}
@Data
public static class ProductCategory{
private String categoryName;
private String num;
private String amount;
public ProductCategory(String categoryName, String num, String amount) {
this.categoryName = categoryName;
this.num = num;
this.amount = amount;
}
}
}