| | |
| | | import java.math.BigDecimal; |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.*; |
| | | |
| | | @RequestMapping("/dataReporting") |
| | |
| | | } |
| | | list.add(reporting); |
| | | } |
| | | deleteAllData(format); |
| | | dataReportingService.addDataReporting(list, format, param); |
| | | return Result.success(); |
| | | } |
| | |
| | | } catch (ParseException e) { |
| | | throw new ErrorException("文件中日期在转换时出现错误"); |
| | | } |
| | | deleteAllFans(LocalDate.parse(format).plusDays(1).format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))); |
| | | for (int i = 6; i < rows.size(); i++) { |
| | | FansSubmit fansSubmit = new FansSubmit(); |
| | | for (int i1 = 0; i1 < rows.get(5).size(); i1++) { |
| | |
| | | } catch (ParseException e) { |
| | | throw new ErrorException("文件中日期在转换时出现错误"); |
| | | } |
| | | deleteAllFinance(LocalDate.parse(format).plusDays(1).format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))); |
| | | for (int i = 6; i < rows.size(); i++) { |
| | | FinanceSubmit financeSubmit = new FinanceSubmit(); |
| | | for (int i1 = 0; i1 < rows.get(5).size(); i1++) { |
| | |
| | | List<DataReporting> list = JSON.parseArray(str, DataReporting.class); |
| | | return Result.success(dataReportingService.updateVxCards(list)); |
| | | } |
| | | |
| | | @ApiOperation(value = "一键删除所有进粉上报的数据") |
| | | @PostMapping("/deleteAllFans") |
| | | public Result deleteAllFans(String date) { |
| | | fansSubmitService.deleteAllFans(date); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "一键删除所有财务上报的数据") |
| | | @PostMapping("/deleteAllFinance") |
| | | public Result deleteAllFinance(String date) { |
| | | financeSubmitService.deleteAllFinance(date); |
| | | return Result.success(); |
| | | } |
| | | } |