取消数字限制

This commit is contained in:
wuchunlei
2025-08-04 10:49:39 +08:00
parent 9a34f94445
commit 00c83cd6fe

View File

@@ -165,8 +165,8 @@ public class UserCourseBuyServiceImpl extends ServiceImpl<UserCourseBuyDao, User
continue; continue;
} }
CellType cellTypeEnum = cell.getCellTypeEnum(); CellType cellTypeEnum = cell.getCellTypeEnum();
if(cellTypeEnum==CellType.NUMERIC){ // if(cellTypeEnum==CellType.NUMERIC){
String phone = String.format("%.0f", cell.getNumericCellValue()); String phone = cell.toString();
MyUserEntity myUserEntity = userDao.selectOne(new LambdaQueryWrapper<MyUserEntity>().select(MyUserEntity::getId,MyUserEntity::getName,MyUserEntity::getTel).eq(MyUserEntity::getTel, phone)); MyUserEntity myUserEntity = userDao.selectOne(new LambdaQueryWrapper<MyUserEntity>().select(MyUserEntity::getId,MyUserEntity::getName,MyUserEntity::getTel).eq(MyUserEntity::getTel, phone));
if(myUserEntity!=null){ if(myUserEntity!=null){
has.add(myUserEntity); has.add(myUserEntity);
@@ -176,7 +176,7 @@ public class UserCourseBuyServiceImpl extends ServiceImpl<UserCourseBuyDao, User
stringStringHashMap.put("phone",phone); stringStringHashMap.put("phone",phone);
nohas.add(stringStringHashMap); nohas.add(stringStringHashMap);
} }
} // }
} }
stringArrayListMap.put("has",has); stringArrayListMap.put("has",has);
stringArrayListMap.put("no",nohas); stringArrayListMap.put("no",nohas);