|
|
|
@@ -100,22 +100,20 @@ public class WxRaffleActivityRecord extends TenantEntity { |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
public List<Long> generateItemIds() { |
|
|
|
public void generateItemIds() { |
|
|
|
if (null != recordItemList && recordItemList.size() > 0 ) { |
|
|
|
List<Long> itemIdList = new ArrayList<Long>(); |
|
|
|
recordItemIdList = new ArrayList<Long>(); |
|
|
|
for (int i = 0 ; i < recordItemList.size() ; i++) { |
|
|
|
WxRaffleActivityRecordItem ri = recordItemList.get(i); |
|
|
|
itemIdList.add(ri.getId()); |
|
|
|
recordItemIdList.add(ri.getItemId()); |
|
|
|
} |
|
|
|
return itemIdList; |
|
|
|
} |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
public static Map<String,String> generateExcelTitle(Map<Long,WxRaffleActivityItem> itemMap) { |
|
|
|
Map<String,String> excelTitle = new LinkedHashMap<String,String>(); |
|
|
|
excelTitle.put("activityName", "活动名称"); |
|
|
|
excelTitle.put("merchantId", "商户id"); |
|
|
|
excelTitle.put("merchantName", "商户名称"); |
|
|
|
excelTitle.put("orderNo", "订单号"); |
|
|
|
excelTitle.put("orderMoney", "订单金额"); |
|
|
|
excelTitle.put("cusName", "客户姓名"); |
|
|
|
@@ -137,7 +135,7 @@ public class WxRaffleActivityRecord extends TenantEntity { |
|
|
|
public Map<String,Object> generateExcelData(Map<Long,WxRaffleActivityItem> itemMap) { |
|
|
|
Map<String,Object> excelObject = new HashMap<String,Object>(); |
|
|
|
excelObject.put("activityName", activityName); |
|
|
|
excelObject.put("merchantId", merchantId); |
|
|
|
excelObject.put("merchantName", merchantName); |
|
|
|
excelObject.put("orderNo", orderNo); |
|
|
|
excelObject.put("orderMoney", orderMoney); |
|
|
|
excelObject.put("cusName", cusName); |
|
|
|
|