Commit ffe9b468 authored by 方建宇's avatar 方建宇

完善导出表格式

parent 25efecb8
...@@ -23,65 +23,65 @@ public class CustRecharge extends CyIdIncreEntity<CustRecharge> { ...@@ -23,65 +23,65 @@ public class CustRecharge extends CyIdIncreEntity<CustRecharge> {
/** /**
* @desc 客户 * @desc 客户
* @column customer_id * @column customer_id
* @default * @default
*/ */
@Excel(name = "客户", orderNum = "0", width = 20) @Excel(name = "客户", orderNum = "1", width = 20)
private Integer customerId; private Integer customerId;
/** /**
* @desc 实际充值 * @desc 实际充值
* @column actual_recharge * @column actual_recharge
* @default * @default
*/ */
@Excel(name = "实际充值", orderNum = "1", width = 20) @Excel(name = "实际充值", orderNum = "2", width = 20)
private BigDecimal actualRecharge; private BigDecimal actualRecharge;
/** /**
* @desc 实际到账 * @desc 实际到账
* @column actual_receipt * @column actual_receipt
* @default * @default
*/ */
@Excel(name = "实际到账", orderNum = "2", width = 20) @Excel(name = "实际到账", orderNum = "4", width = 20)
private BigDecimal actualReceipt; private BigDecimal actualReceipt;
/** /**
* @desc 消费订单号 * @desc 消费订单号
* @column order_number * @column order_number
* @default * @default
*/ */
@Excel(name = "消费订单号", orderNum = "3", width = 20) @Excel(name = "消费订单号", orderNum = "5", width = 20)
private String orderNumber; private String orderNumber;
/** /**
* @desc 消费金额 * @desc 消费金额
* @column consumption_amount * @column consumption_amount
* @default * @default
*/ */
@Excel(name = "消费金额", orderNum = "4", width = 20) @Excel(name = "消费金额", orderNum = "7", width = 20)
private BigDecimal consumptionAmount; private BigDecimal consumptionAmount;
/** /**
* @desc 充值/消费余额 * @desc 充值/消费余额
* @column customer_balance * @column customer_balance
* @default * @default
*/ */
@Excel(name = "充值/消费余额", orderNum = "5", width = 20) @Excel(name = "充值/消费余额", orderNum = "8", width = 20)
private BigDecimal customerBalance; private BigDecimal customerBalance;
/** /**
* @desc 门店 * @desc 门店
* @column store_id * @column store_id
* @default * @default
*/ */
@Excel(name = "门店", orderNum = "6", width = 20) @Excel(name = "门店", orderNum = "0", width = 20)
private String storeId; private String storeId;
/** /**
* @desc (0消费 1充值) * @desc (0消费 1充值)
* @column is_recharge * @column is_recharge
* @default * @default
*/ */
@Excel(name = "(0消费 1充值)", orderNum = "7", width = 20) @Excel(name = "(0消费 1充值)", orderNum = "6", width = 20)
private String isRecharge; private String isRecharge;
/** /**
...@@ -131,6 +131,7 @@ public class CustRecharge extends CyIdIncreEntity<CustRecharge> { ...@@ -131,6 +131,7 @@ public class CustRecharge extends CyIdIncreEntity<CustRecharge> {
/** /**
* 是否为退款 * 是否为退款
*/ */
@Excel(name = "充值类型(1为退款)",orderNum = "3", width = 20)
private String isReturn; private String isReturn;
} }
...@@ -133,6 +133,6 @@ public class StoreGoodsLogController extends CyPaginationController<StoreGoodsLo ...@@ -133,6 +133,6 @@ public class StoreGoodsLogController extends CyPaginationController<StoreGoodsLo
case "2": excelName="商品记录表信息.csv";break; case "2": excelName="商品记录表信息.csv";break;
} }
List<StoreGoodsLog> storeGoodsLogList = storeGoodsLogServiceImpl.export(storeGoodsLog); List<StoreGoodsLog> storeGoodsLogList = storeGoodsLogServiceImpl.export(storeGoodsLog);
CyEpExcelUtil.exportExcel(storeGoodsLogList, "商品记录表信息", "商品记录表信息", StoreGoodsLog.class, excelName, response); CyEpExcelUtil.exportExcel(storeGoodsLogList, "销售明细表信息", "销售明细表信息", StoreGoodsLog.class, excelName, response);
} }
} }
...@@ -25,6 +25,7 @@ public class StoreGoodsLog extends CyIdIncreEntity<StoreGoodsLog> { ...@@ -25,6 +25,7 @@ public class StoreGoodsLog extends CyIdIncreEntity<StoreGoodsLog> {
@Excel(name = "商品编码", orderNum = "2", width = 20) @Excel(name = "商品编码", orderNum = "2", width = 20)
private String goodsCode; private String goodsCode;
private Integer applyId; private Integer applyId;
@Excel(name = "总数量",orderNum = "8", width = 20)
private Integer goodsCounts; private Integer goodsCounts;
private Integer updateCounts; private Integer updateCounts;
private Integer goodsId; private Integer goodsId;
...@@ -78,7 +79,7 @@ public class StoreGoodsLog extends CyIdIncreEntity<StoreGoodsLog> { ...@@ -78,7 +79,7 @@ public class StoreGoodsLog extends CyIdIncreEntity<StoreGoodsLog> {
* @default * @default
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "销售日期", orderNum = "8", width = 20, format = "yyyy-MM-dd") @Excel(name = "销售日期", orderNum = "9", width = 20, format = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updateDate; private Date updateDate;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment