| | |
| | | |
| | | @ApiOperation( value = "数据生成终止 shopId=店铺id type: 1=餐饮 2=进货") |
| | | @GetMapping(value = "/stopGenerator") |
| | | public AjaxResult<String> dataCoverage(@RequestParam(value = "shopId") Long shopId, |
| | | public AjaxResult<String> stopGenerator(@RequestParam(value = "shopId") Long shopId, |
| | | @RequestParam(value = "type") Integer type) { |
| | | if(type == 1){ |
| | | redisCache.setCacheObject(OrderNumConstants.MEAL+"_"+shopId,shopId); |
| | |
| | | BeanUtils.copyProperties(orderMealVO, tOrderMealExportExcel); |
| | | tOrderMealExportExcel.setCreateStrTime(DateUtils.localDateToString(orderMealVO.getMealTime())); |
| | | tOrderMealExportExcel.setGoodsList(orderMealVO.getGoodsList().stream().collect(Collectors.joining("\n"))); |
| | | tOrderMealExportExcel.setPersonCount(orderMealVO.getMealPerson()); |
| | | orderMeals.add(tOrderMealExportExcel); |
| | | } |
| | | Workbook workbook = ExcelExportUtil.exportExcel(new ExportParams(), TOrderMealExportExcel.class, orderMeals); |