| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.dao.admin.response.InterestedListVO; |
| | | import com.doumee.dao.business.dao.UserActionMapper; |
| | | import com.doumee.dao.business.dto.CarUseDataDTO; |
| | | import com.doumee.dao.business.dto.InParkDataDTO; |
| | | import com.doumee.dao.business.vo.GeneralDataVO; |
| | | import com.doumee.dao.business.vo.InParkUserDataVO; |
| | | import com.doumee.service.business.third.model.LoginUserInfo; |
| | | import com.doumee.service.business.third.model.PageData; |
| | | import com.doumee.service.business.third.model.PageWrap; |
| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.time.ZoneId; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.net.URLEncoder; |
| | | import java.nio.charset.Charset; |
| | | import java.time.*; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.time.temporal.TemporalAdjusters; |
| | | import java.util.*; |
| | | import java.util.Date; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 车辆_用车申请信息表Service实现 |
| | |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(this.carUseBookList(carUseBook))){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"存在车辆预约时间与已预约时间冲突~"); |
| | | } |
| | | carUseBook.setTypeInfo(Constants.equalsInteger(carUseBook.getType(),Constants.ZERO)?"市内":"室外"); |
| | | carUseBookMapper.insert(carUseBook); |
| | | //用车申请 审批记录创建 |
| | | approveService.createApproveFlow(carUseBook.getType()==0?3:4,carUseBook.getId(),carUseBook.getMemberId(),null); |
| | |
| | | .set(Approve::getStatus,Constants.FOUR) |
| | | .set(Approve::getCheckInfo,"用车申请取消") |
| | | .in(Approve::getStatus,Constants.ZERO,Constants.ONE) |
| | | .in(Approve::getObjType,Constants.approveObjectType.cityUseCar,Constants.approveObjectType.unCityUseCar) |
| | | .in(Approve::getObjType,Constants.approveObjectType.cityUseCar,Constants.approveObjectType.unCityUseCar) |
| | | .eq(Approve::getObjId,id) |
| | | ); |
| | | |
| | |
| | | //申请人可以撤销自己申请中的申请记录 |
| | | return Constants.ONE; |
| | | } |
| | | if(Constants.equalsInteger(carUseBook.getStatus(),Constants.TWO) && carUseBook.getStartTime()!=null |
| | | if(Constants.equalsInteger(carUseBook.getStatus(),Constants.TWO) |
| | | && carUseBook.getStartTime()!=null |
| | | && System.currentTimeMillis() >= carUseBook.getStartTime().getTime()){ |
| | | //审批通过,但是 已到发车时间,不可以撤销 |
| | | return Constants.ZERO; |
| | | } |
| | | if(!(Constants.equalsInteger(carUseBook.getStatus(),Constants.ZERO)) |
| | | ||Constants.equalsInteger(carUseBook.getStatus(),Constants.ONE) |
| | | ||Constants.equalsInteger(carUseBook.getStatus(),Constants.TWO)){ |
| | | //审批人可以撤销 自己审批的申请记录 |
| | | Approve approve = approveJoinMapper.selectOne(new QueryWrapper<Approve>().lambda() |
| | | .eq(Approve::getIsdeleted,Constants.ZERO) |
| | | .ge(Approve::getLevel,Constants.ZERO) |
| | | .eq(Approve::getChekorId,loginUserInfo.getId()) |
| | | .eq(Approve::getObjId,carUseBook.getId()) |
| | | .eq(Approve::getObjType,carUseBook.getType()==0?3:4) |
| | | .last("limit 1")); |
| | | if(approve!=null){ |
| | | return Constants.ONE; |
| | | } |
| | | } |
| | | // if((Constants.equalsInteger(carUseBook.getStatus(),Constants.ZERO)) |
| | | // ||Constants.equalsInteger(carUseBook.getStatus(),Constants.ONE) |
| | | // ||Constants.equalsInteger(carUseBook.getStatus(),Constants.TWO)){ |
| | | // //审批人可以撤销 自己审批的申请记录 |
| | | // Approve approve = approveJoinMapper.selectOne(new QueryWrapper<Approve>().lambda() |
| | | // .eq(Approve::getIsdeleted,Constants.ZERO) |
| | | // .ge(Approve::getLevel,Constants.ZERO) |
| | | // .eq(Approve::getChekorId,loginUserInfo.getMemberId()) |
| | | // .eq(Approve::getObjId,carUseBook.getId()) |
| | | // .eq(Approve::getObjType,carUseBook.getType()==0?3:4) |
| | | // .last("limit 1")); |
| | | // if(approve!=null){ |
| | | // return Constants.ONE; |
| | | // } |
| | | // } |
| | | return Constants.ZERO; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public void jdyPushCarUseBook(String dataInfo){ |
| | | JSONObject dataInfoJSON = JSONObject.parseObject(dataInfo); |
| | | if(dataInfoJSON.isEmpty()){ |
| | | return; |
| | | } |
| | | String op = dataInfoJSON.getString("op"); |
| | | //删除:data_remove 新增:data_add 修改:data_update |
| | | if(StringUtils.isEmpty(op)){ |
| | | return; |
| | | } |
| | | if(op.equals("data_test")){ |
| | | return; |
| | | } |
| | | JSONObject dataJSON = dataInfoJSON.getJSONObject("data"); |
| | | String id = dataJSON.getString("_id"); |
| | | if(op.equals("data_remove")){ |
| | | carUseBookJoinMapper.update(new UpdateWrapper<CarUseBook>().lambda() |
| | | .set(CarUseBook::getEditDate,DateUtil.getCurrDateTime()) |
| | | .set(CarUseBook::getIsdeleted,Constants.ONE).eq(CarUseBook::getJdyId,id)); |
| | | return; |
| | | } |
| | | String no = dataJSON.getString("no"); |
| | | if(StringUtils.isEmpty(no)){ |
| | | return; |
| | | } |
| | | Integer status = dataJSON.getInteger("flowState"); |
| | | if(Objects.isNull(status)||!(Constants.equalsInteger(status,Constants.ONE)||Constants.equalsInteger(status,Constants.TWO))){ |
| | | return; |
| | | } |
| | | |
| | | String carCode = dataJSON.getString("car_no"); |
| | | String startDate = dataJSON.getString("start_date"); |
| | | String endDate = dataJSON.getString("end_date"); |
| | | String typeInfo = dataJSON.getString("scope"); |
| | | String reason = dataJSON.getString("reason"); |
| | | String addr = dataJSON.getString("addr"); |
| | | |
| | | CarUseBook carUseBook = carUseBookJoinMapper.selectOne(new QueryWrapper<CarUseBook>() |
| | | .lambda().eq(CarUseBook::getJdyNo,no).last("limit 1")); |
| | | if(Objects.isNull(carUseBook)){ |
| | | carUseBook = new CarUseBook(); |
| | | carUseBook.setCreateDate(new Date()); |
| | | carUseBook.setEditDate(new Date()); |
| | | carUseBook.setJdyNo(no); |
| | | carUseBook.setJdyId(id); |
| | | carUseBook.setKeyStatus(Constants.ZERO); |
| | | }else{ |
| | | carUseBook.setEditDate(new Date()); |
| | | } |
| | | carUseBook.setIsdeleted(Constants.equalsInteger(status,Constants.ONE)?Constants.ZERO:Constants.ONE); |
| | | carUseBook.setCarCode(StringUtils.isBlank(carCode)?null:carCode); |
| | | if(StringUtils.isNotBlank(carCode)){ |
| | | Cars cars = carsMapper.selectOne(new QueryWrapper<Cars>().lambda() |
| | | .eq(Cars::getIsdeleted,Constants.ZERO) |
| | | .eq(Cars::getCode,carCode).last("limit 1")); |
| | | carUseBook.setCarId(Objects.nonNull(cars)?cars.getId():null); |
| | | } |
| | | |
| | | carUseBook.setStartTime(StringUtils.isBlank(startDate)?null:DateUtil.getXMinuteAfterDate(DateUtil.getISO8601DateByStr(startDate),480)); |
| | | carUseBook.setEndTime(StringUtils.isBlank(endDate)?null:DateUtil.getXMinuteAfterDate(DateUtil.getISO8601DateByStr(endDate),480)); |
| | | carUseBook.setTypeInfo(StringUtils.isBlank(typeInfo)?null:typeInfo); |
| | | carUseBook.setContent(StringUtils.isBlank(reason)?null:reason); |
| | | carUseBook.setAddr(StringUtils.isBlank(addr)?null:addr); |
| | | carUseBook.setStatus(Constants.TWO); |
| | | JSONObject driverJSON = dataJSON.getJSONObject("driver"); |
| | | if(Objects.nonNull(driverJSON)){ |
| | | String driverName = driverJSON.getString("name"); |
| | | String driverUserName = driverJSON.getString("username"); |
| | | if(StringUtils.isNotBlank(driverUserName)){ |
| | | Member driverMember = memberMapper.selectOne(new QueryWrapper<Member>().lambda().eq(Member::getIsdeleted,Constants.ZERO).eq(Member::getDdId,driverUserName).last("limit 1 ")); |
| | | if(Objects.nonNull(driverMember)){ |
| | | carUseBook.setDriverId(driverMember.getId()); |
| | | } |
| | | } |
| | | } |
| | | JSONObject createJSON = dataJSON.getJSONObject("creator"); |
| | | if(Objects.nonNull(createJSON)){ |
| | | String createName = createJSON.getString("name"); |
| | | String createUserName = createJSON.getString("username"); |
| | | if(StringUtils.isNotBlank(createUserName)){ |
| | | Member createMember = memberMapper.selectOne(new QueryWrapper<Member>().lambda().eq(Member::getIsdeleted,Constants.ZERO).eq(Member::getDdId,createUserName).last("limit 1 ")); |
| | | if(Objects.nonNull(createMember)){ |
| | | carUseBook.setMemberId(createMember.getId()); |
| | | } |
| | | } |
| | | } |
| | | |
| | | JSONArray usersArray = dataJSON.getJSONArray("users"); |
| | | if(Objects.nonNull(usersArray)){ |
| | | String names = ""; |
| | | List<String> userDDIdList = new ArrayList<>(); |
| | | for (int i = 0; i < usersArray.size(); i++) { |
| | | JSONObject userJSON = usersArray.getJSONObject(i); |
| | | String name = userJSON.getString("name"); |
| | | String userName = userJSON.getString("username"); |
| | | userDDIdList.add(userName); |
| | | names = names + |
| | | (StringUtils.isNotBlank(names)?",":"") |
| | | + name; |
| | | } |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(userDDIdList)){ |
| | | List<Member> memberList = memberMapper.selectList(new QueryWrapper<Member>().lambda().eq(Member::getIsdeleted,Constants.ZERO).in(Member::getDdId,userDDIdList)); |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(memberList)){ |
| | | names = String.join(",",memberList.stream().map(i->i.getName()).collect(Collectors.toList())); |
| | | carUseBook.setMemberIds(String.join(",",memberList.stream().map(i->i.getId().toString()).collect(Collectors.toList()))); |
| | | } |
| | | } |
| | | carUseBook.setMemberNames(names); |
| | | } |
| | | carUseBookMapper.insertOrUpdate(carUseBook); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @Override |
| | | public List<InterestedListVO> getCarUseStatistics(Integer type){ |
| | | List<String> weekDays = DateUtil.getBeforDaysByFormat(new Date(),Objects.isNull(type)||Constants.equalsInteger(type,Constants.ZERO)?7:15,"MM-dd"); |
| | | MPJLambdaWrapper<CarUseBook> wrapper = new MPJLambdaWrapper<CarUseBook>() |
| | | .selectAll(CarUseBook.class) |
| | | .eq(CarUseBook::getIsdeleted, Constants.ZERO) |
| | | .eq(CarUseBook::getStatus,Constants.TWO) |
| | | .apply(" CREATE_DATE > CURDATE() - INTERVAL "+(Objects.isNull(type)||Constants.equalsInteger(type,Constants.ZERO)?7:15)+" DAY ") |
| | | .orderByDesc(CarUseBook::getCreateDate); |
| | | List<CarUseBook> carUseBookList = carUseBookMapper.selectJoinList(CarUseBook.class,wrapper); |
| | | List<InterestedListVO> list = new ArrayList<>(); |
| | | for (String days:weekDays) { |
| | | InterestedListVO vo = new InterestedListVO(); |
| | | vo.setName(days); |
| | | vo.setNum(Constants.ZERO); |
| | | vo.setNextNum(Constants.ZERO); |
| | | if (com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(carUseBookList)) { |
| | | vo.setNum( |
| | | carUseBookList.stream().filter(i->DateUtil.dateToString(i.getCreateDate(),"MM-dd").equals(days)) |
| | | .collect(Collectors.toList()).size() |
| | | ); |
| | | } |
| | | list.add(vo); |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | public InParkUserDataVO getCarUseData(CarUseDataDTO carUseDataDTO){ |
| | | //查询本周的开始日期和结束日期 |
| | | Long weekStart = LocalDate.now().with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY)).atStartOfDay(ZoneOffset.UTC).toInstant().toEpochMilli(); |
| | | InParkUserDataVO inParkUserDataVO = new InParkUserDataVO(); |
| | | List<CarUseBook> yearList = carUseBookMapper.selectJoinList(CarUseBook.class,new MPJLambdaWrapper<CarUseBook>() |
| | | .selectAll(CarUseBook.class) |
| | | .eq(CarUseBook::getIsdeleted,Constants.ZERO) |
| | | .apply(" ( DATE_FORMAT(CREATE_DATE, '%Y') = DATE_FORMAT(now(), '%Y') ) ") |
| | | ); |
| | | List<CarUseBook> monthList = yearList.stream().filter(i->DateUtil.formatDate(i.getCreateDate(),"yyyy-MM").equals(DateUtil.formatDate(new Date(),"yyyy-MM"))).collect(Collectors.toList()); |
| | | List<CarUseBook> weekList = yearList.stream().filter(i->i.getCreateDate().getTime()>=weekStart).collect(Collectors.toList()); |
| | | List<CarUseBook> todayList = weekList.stream().filter(i-> DateUtil.formatDate(i.getCreateDate(),"yyyy-MM-dd").equals(DateUtil.formatDate(new Date(),"yyyy-MM-dd"))).collect(Collectors.toList()); |
| | | List<CarUseBook> yesterdayList = yearList.stream().filter(i-> DateUtil.formatDate(i.getCreateDate(),"yyyy-MM-dd").equals(DateUtil.getBeforDay(new Date(),1))).collect(Collectors.toList()); |
| | | inParkUserDataVO.setYearTotal(yearList.size()); |
| | | inParkUserDataVO.setMonthTotal(monthList.size()); |
| | | inParkUserDataVO.setTodayTotal(todayList.size()); |
| | | inParkUserDataVO.setWeekTotal(weekList.size()); |
| | | inParkUserDataVO.setYesterdayTotal(yesterdayList.size()); |
| | | // //处理年度折线图数据 |
| | | List<GeneralDataVO> cumulativeDataList = new ArrayList<>(); |
| | | for (int i = 1; i <=12 ; i++) { |
| | | GeneralDataVO generalDataVO = new GeneralDataVO(); |
| | | generalDataVO.setName(Integer.toString(i)); |
| | | generalDataVO.setTotal(yearList.stream().filter(j->Constants.equalsInteger(Integer.valueOf(generalDataVO.getName()),Integer.valueOf(DateUtil.formatDate(j.getCreateDate(),"MM")))).collect(Collectors.toList()).size()); |
| | | generalDataVO.setName(generalDataVO.getName()+"月"); |
| | | cumulativeDataList.add(generalDataVO); |
| | | } |
| | | inParkUserDataVO.setCumulativeDataList(cumulativeDataList); |
| | | return inParkUserDataVO; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<List<String>> getReportList(CarUseDataDTO carUseDataDTO){ |
| | | if(Objects.isNull(carUseDataDTO) |
| | | || StringUtils.isBlank(carUseDataDTO.getDateStr()) |
| | | || !( Constants.equalsInteger(carUseDataDTO.getDateStr().length(),4) || Constants.equalsInteger(carUseDataDTO.getDateStr().length(),7) ) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | List<CarUseBook> allList = new ArrayList<>(); |
| | | MPJLambdaWrapper mpjLambdaWrapper = new MPJLambdaWrapper<CarUseBook>() |
| | | .eq(CarUseBook::getIsdeleted,Constants.ZERO) |
| | | .in(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(carUseDataDTO.getCarCodeList()),CarUseBook::getCarCode,carUseDataDTO.getCarCodeList()) |
| | | .apply(Constants.equalsInteger(carUseDataDTO.getDateStr().length(),4)," ( DATE_FORMAT(CREATE_DATE, '%Y') = '"+carUseDataDTO.getDateStr()+"' ) ") |
| | | .apply(Constants.equalsInteger(carUseDataDTO.getDateStr().length(),7)," ( DATE_FORMAT(CREATE_DATE, '%Y-%m') = '"+carUseDataDTO.getDateStr()+"' ) "); |
| | | mpjLambdaWrapper.groupBy(Constants.equalsInteger(carUseDataDTO.getDateStr().length(),4), |
| | | "car_code,DATE_FORMAT(CREATE_DATE, '%Y-%m')") |
| | | .groupBy(Constants.equalsInteger(carUseDataDTO.getDateStr().length(),7), |
| | | "car_code,DATE_FORMAT(CREATE_DATE, '%Y-%m-%d')"); |
| | | if(Constants.equalsInteger(carUseDataDTO.getDateStr().length(),4)){ |
| | | mpjLambdaWrapper.select("car_code,DATE_FORMAT(CREATE_DATE, '%Y-%m') as createDateStr "); |
| | | }else{ |
| | | mpjLambdaWrapper.select("car_code,DATE_FORMAT(CREATE_DATE, '%Y-%m-%d') as createDateStr "); |
| | | } |
| | | allList = carUseBookMapper.selectJoinList(CarUseBook.class,mpjLambdaWrapper); |
| | | |
| | | List<List<String>> resultList = new ArrayList<>(); |
| | | |
| | | |
| | | List<String> dateList = new ArrayList<>(); |
| | | //年份 |
| | | if(Constants.equalsInteger(carUseDataDTO.getDateStr().length(),4)){ |
| | | Integer maxMonth = 12; |
| | | if(Constants.equalsInteger(DateUtil.getNowYearNum(),Integer.valueOf(carUseDataDTO.getDateStr()))){ |
| | | maxMonth = DateUtil.getNowMonthNum(); |
| | | } |
| | | for (int i = maxMonth; i >0 ; i--) { |
| | | dateList.add(DateUtil.getNowYearNum()+"-"+ StringUtils.leftPad(i+"",2,"0")); |
| | | } |
| | | }else { |
| | | //日期 |
| | | Integer year = Integer.valueOf(carUseDataDTO.getDateStr().substring(0,4)); |
| | | Integer month = Integer.valueOf(carUseDataDTO.getDateStr().substring(5,7)); |
| | | Integer today = DateUtil.getNowDayNum(); |
| | | YearMonth yearMonth = YearMonth.of(year, month); |
| | | // 获取该月的最后一天 |
| | | LocalDate lastDayDate = yearMonth.atEndOfMonth(); |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd"); |
| | | Integer lastDay = Integer.valueOf(lastDayDate.format(formatter)); |
| | | if(Constants.equalsInteger(year,DateUtil.getNowYearNum()) && Constants.equalsInteger(month,DateUtil.getNowMonthNum())){ |
| | | if(today < lastDay){ |
| | | lastDay = today; |
| | | } |
| | | } |
| | | for (int i = lastDay; i > 0 ; i--) { |
| | | dateList.add(year + "-" + StringUtils.leftPad(month.toString(),2,"0") + "-" + StringUtils.leftPad(Integer.toString(i),2,"0")); |
| | | } |
| | | } |
| | | return this.dealResultData(allList,carUseDataDTO.getCarCodeList(),dateList,carUseDataDTO.getDateStr()); |
| | | } |
| | | |
| | | |
| | | public List<List<String>> dealResultData(List<CarUseBook> allList,List<String> queryCarList,List<String> dataList ,String dateStr){ |
| | | List<List<String>> resultList = new ArrayList<>(); |
| | | List<String> totalString = new ArrayList<>(); |
| | | totalString.add("数据日期"); |
| | | List<String> carCodeList = new ArrayList<>(); |
| | | if (com.github.xiaoymin.knife4j.core.util.CollectionUtils.isEmpty(queryCarList)) { |
| | | List<Cars> list = carsMapper.selectList( |
| | | new QueryWrapper<Cars>().lambda() |
| | | .eq(Cars::getIsdeleted,Constants.ZERO) |
| | | ); |
| | | if(CollectionUtils.isEmpty(list)){ |
| | | return resultList; |
| | | } |
| | | carCodeList = list.stream().map(i->i.getCode()).collect(Collectors.toList()); |
| | | }else{ |
| | | carCodeList = queryCarList; |
| | | } |
| | | Set<String> setList = new HashSet<>(carCodeList); |
| | | for (String categoryName:setList) { |
| | | totalString.add(categoryName); |
| | | } |
| | | totalString.add("合计"); |
| | | resultList.add(totalString); |
| | | for (String str:dataList) { |
| | | Integer total = 0; |
| | | List<String> dataChildList = new ArrayList<>(); |
| | | dataChildList.add(str); |
| | | for (String carCode:setList) { |
| | | if(Constants.equalsInteger(dateStr.length(),4)){ |
| | | Integer childNum = allList.stream().filter(i->carCode.equals(i.getCarCode()) |
| | | && i.getCreateDateStr().equals(str)).collect(Collectors.toList()).size(); |
| | | dataChildList.add( |
| | | Integer.toString(childNum) |
| | | ); |
| | | total = total + childNum; |
| | | }else if(Constants.equalsInteger(dateStr.length(),7)){ |
| | | Integer childNum = allList.stream().filter(i->carCode.equals(i.getCarCode()) |
| | | &&i.getCreateDateStr().equals(str)).collect(Collectors.toList()).size(); |
| | | dataChildList.add( |
| | | Integer.toString(childNum) |
| | | ); |
| | | total = total + childNum; |
| | | } |
| | | } |
| | | dataChildList.add(Integer.toString(total)); |
| | | resultList.add(dataChildList); |
| | | } |
| | | return resultList; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public void excel(CarUseDataDTO carUseDataDTO, HttpServletResponse response){ |
| | | List<List<String>> data = this.getReportList(carUseDataDTO); |
| | | try { |
| | | String fileName = "派车申请统计表_"+System.currentTimeMillis(); |
| | | String encodeFileName = URLEncoder.encode(fileName, Charset.forName("UTF-8").toString()) + ".xlsx"; |
| | | response.setHeader("Content-Disposition","attachment;filename=" + encodeFileName); |
| | | response.setContentType("application/octet-stream"); |
| | | response.setHeader("eva-opera-type", "download"); |
| | | response.setHeader("eva-download-filename", encodeFileName); |
| | | ExcelExporter.exportList(data, fileName, response.getOutputStream()); |
| | | } catch (IOException e) { |
| | | throw new BusinessException(ResponseStatus.EXPORT_EXCEL_ERROR, e); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |