package com.hzs.member.achieve.controller.manage;


import com.hzs.common.core.web.controller.BaseController;
import com.hzs.common.core.web.domain.AjaxResult;
import com.hzs.common.security.utils.SecurityUtils;
import com.hzs.member.achieve.controller.vo.CuActiveMemberCensusVO;
import com.hzs.member.achieve.service.ICuActiveMemberCensusService;
import com.hzs.member.achieve.service.ICuMemberAchieveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.List;

/**
 * <p>
 * 统计活跃会员 后端控制器
 * </p>
 *
 * @author zhangjing
 * @since 2023-05-17
 */
@RestController
@RequestMapping("/manage/active-member-census")
public class CuActiveMemberCensusController extends BaseController {

    @Autowired
    private ICuActiveMemberCensusService cuActiveMemberCensusService;

    /**
     * @description: 手动统计活跃用户
     * @author: zhang jing
     * @date: 2023/5/18 9:57
     * @param: []
     * @return: com.hzs.common.core.web.domain.AjaxResult
     **/
    @PostMapping("/supplementData")
    public AjaxResult supplementData(@RequestBody CuActiveMemberCensusVO cvo) {
        //查找安置人伞下
        Boolean b = cuActiveMemberCensusService.supplementData(cvo.getPayTime());
        return AjaxResult.success(b);
    }


}
