value
2024-04-22 d9865c5576c8ed413d2b69a36b3ec5f15bee015b
data-server/src/main/java/com/yuanchu/mom/controller/DataReportingController.java
@@ -77,7 +77,7 @@
        return Result.success(dataReportingService.selectProductCountDtoPageList(page, productCountDto));
    }
    @ApiOperation(value = "获取登记人汇总列表")
    @ApiOperation(value = "获取员工数据统计列表")
    @PostMapping("/selectRegistrantCountDtoPageList")
    public Result selectRegistrantCountDtoPageList(@RequestBody Map<String, Object> data) {
        Page page = JSON.parseObject(JSON.toJSONString(data.get("page")), Page.class);
@@ -211,9 +211,8 @@
                        break;
                }
            }
            list.add(reporting);
            if(reporting.getAccountConsumption().compareTo(BigDecimal.ZERO) > 0) list.add(reporting);
        }
        deleteAllData(format);
        dataReportingService.addDataReporting(list, format, param);
        return Result.success();
    }
@@ -271,7 +270,6 @@
        } 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++) {
@@ -326,7 +324,6 @@
        } 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++) {
@@ -390,6 +387,13 @@
        return Result.success(dataReportingService.selectDataReportingForCreateUserNames(time));
    }
    @ApiOperation(value = "获取项目数据统计的项目筛选项")
    @PostMapping("/selectDataReportingForProduct")
    @ValueAuth
    public Result selectDataReportingForProduct(String time) {
        return Result.success(dataReportingService.selectDataReportingForProduct(time));
    }
    @ApiOperation(value = "获取微信号列表")
    @GetMapping("/selectVxs")
    @ValueAuth
@@ -417,4 +421,11 @@
        financeSubmitService.deleteAllFinance(date);
        return Result.success();
    }
    @ApiOperation(value = "数据上报主管权限")
    @GetMapping("/dataReportingPower")
    public Result dataReportingPower() {
        return Result.success();
    }
}