增加妇幼生殖VIP
This commit is contained in:
@@ -19,8 +19,6 @@ 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.*;
|
||||
|
||||
/**
|
||||
@@ -602,17 +600,7 @@ public class StatisticsController {
|
||||
//导出vip记录明细
|
||||
@RequestMapping("/exportUserVipLogInfo")
|
||||
public void exportUserVipLogInfo(HttpServletResponse response, @RequestBody Map<String,Object> params){
|
||||
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);*/
|
||||
|
||||
|
||||
|
||||
List<Map<String,Object>> maps = userVipLogService.getUserVipLogInfo(params.get("date").toString());
|
||||
XSSFWorkbook wb = new XSSFWorkbook();
|
||||
//创建一张表
|
||||
Sheet sheet = wb.createSheet("vip记录明细");
|
||||
@@ -638,14 +626,6 @@ 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;
|
||||
//遍历
|
||||
|
||||
@@ -19,6 +19,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
import java.util.*;
|
||||
@@ -221,18 +222,21 @@ public class UserCourseBuyServiceImpl extends ServiceImpl<UserCourseBuyDao, User
|
||||
continue;
|
||||
}
|
||||
CellType cellTypeEnum = cell.getCellTypeEnum();
|
||||
// if(cellTypeEnum==CellType.NUMERIC){
|
||||
String phone = cell.toString();
|
||||
MyUserEntity myUserEntity = userDao.selectOne(new LambdaQueryWrapper<MyUserEntity>().select(MyUserEntity::getId,MyUserEntity::getName,MyUserEntity::getTel).eq(MyUserEntity::getTel, phone));
|
||||
if(myUserEntity!=null){
|
||||
has.add(myUserEntity);
|
||||
}else{
|
||||
HashMap<String, String> stringStringHashMap = new HashMap<>();
|
||||
stringStringHashMap.put("name",row.getCell(0)==null?"":row.getCell(0).toString());
|
||||
stringStringHashMap.put("phone",phone);
|
||||
nohas.add(stringStringHashMap);
|
||||
}
|
||||
// }
|
||||
String phone = cell.toString().trim();
|
||||
if(cellTypeEnum==CellType.NUMERIC){
|
||||
BigInteger bigInteger = BigInteger.valueOf((long) cell.getNumericCellValue());
|
||||
phone = bigInteger.toString();
|
||||
}
|
||||
|
||||
MyUserEntity myUserEntity = userDao.selectOne(new LambdaQueryWrapper<MyUserEntity>().select(MyUserEntity::getId,MyUserEntity::getName,MyUserEntity::getTel).eq(MyUserEntity::getTel, phone));
|
||||
if(myUserEntity!=null){
|
||||
has.add(myUserEntity);
|
||||
}else{
|
||||
HashMap<String, String> stringStringHashMap = new HashMap<>();
|
||||
stringStringHashMap.put("name",row.getCell(0)==null?"":row.getCell(0).toString());
|
||||
stringStringHashMap.put("phone",phone);
|
||||
nohas.add(stringStringHashMap);
|
||||
}
|
||||
}
|
||||
stringArrayListMap.put("has",has);
|
||||
stringArrayListMap.put("no",nohas);
|
||||
|
||||
Reference in New Issue
Block a user