|
|
@ -707,7 +707,8 @@ public class ToiletServiceImpl extends ServiceImpl<ToiletMapper, Toilet> impleme |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public void exportToilet(String userToken,HttpServletResponse response, String toiletName,String toiletCode, Integer toiletType, Integer toiletLevel, Integer thirdBathroom, Integer monChildRoom) { |
|
|
|
public void exportToilet(String userToken,HttpServletResponse response, String toiletName,String toiletCode, |
|
|
|
Integer toiletType, Integer toiletLevel, Integer thirdBathroom, Integer monChildRoom,String areaIds) { |
|
|
|
//根据token获取登录账户信息 |
|
|
|
UserInfoVO userInfoVO = userInfoService.getUserInfo(userToken); |
|
|
|
if (userInfoVO == null) { |
|
|
@ -717,6 +718,9 @@ public class ToiletServiceImpl extends ServiceImpl<ToiletMapper, Toilet> impleme |
|
|
|
return; |
|
|
|
} |
|
|
|
List<String> areaIdList = Arrays.asList(userInfoVO.getRegionIds().split(",")); |
|
|
|
if (StringUtils.isNotBlank(areaIds)) { |
|
|
|
areaIdList = Arrays.asList(areaIds.split(",")); |
|
|
|
} |
|
|
|
List<ToiletVO> voList = getVoList (toiletName,toiletCode,toiletType,toiletLevel,thirdBathroom,monChildRoom,areaIdList); |
|
|
|
// 每次写100行数据,就刷新数据出缓存 |
|
|
|
SXSSFWorkbook wb = new SXSSFWorkbook(100); // keep 100 rows in memory, |
|
|
|