增加妇幼生殖VIP
This commit is contained in:
@@ -19,6 +19,8 @@ import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URLEncoder;
|
||||
import java.time.LocalDate;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
@@ -600,7 +602,17 @@ public class StatisticsController {
|
||||
//导出vip记录明细
|
||||
@RequestMapping("/exportUserVipLogInfo")
|
||||
public void exportUserVipLogInfo(HttpServletResponse response, @RequestBody Map<String,Object> params){
|
||||
List<Map<String,Object>> maps = userVipLogService.getUserVipLogInfo(params.get("date").toString());
|
||||
String dateStr = params.get("date").toString();
|
||||
List<Map<String,Object>> maps = userVipLogService.getUserVipLogInfo(dateStr);
|
||||
|
||||
/* DateTimeFormatter fmt = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
||||
LocalDate date = LocalDate.parse(params.get("date").toString(), fmt);
|
||||
String date_last_date = date.minusMonths(1).format(DateTimeFormatter.ofPattern("yyyy-MM"));
|
||||
|
||||
List<Map<String,Object>> refundMaps = userVipLogService.getUserVipRefundInfo(date_last_date,dateStr);*/
|
||||
|
||||
|
||||
|
||||
XSSFWorkbook wb = new XSSFWorkbook();
|
||||
//创建一张表
|
||||
Sheet sheet = wb.createSheet("vip记录明细");
|
||||
@@ -626,6 +638,14 @@ public class StatisticsController {
|
||||
titleRow.createCell(17).setCellValue("已摊销金额");
|
||||
titleRow.createCell(18).setCellValue("当月摊销金额");
|
||||
titleRow.createCell(19).setCellValue("剩余摊销金额");
|
||||
// for (Map<String,Object> map:refundMaps){
|
||||
// Map<String,Object> newMap = new HashMap<>();
|
||||
// newMap.put("name",map.get("name").toString());
|
||||
// newMap.put("tel",map.get("tel").toString());
|
||||
// newMap.put("type",map.get("type").toString());
|
||||
//
|
||||
// }
|
||||
|
||||
//序号,默认为1
|
||||
int cell = 1;
|
||||
//遍历
|
||||
|
||||
Reference in New Issue
Block a user