package com.mosty.hczx.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mosty.base.model.entity.qwzx.TbQwCjbs;
import com.mosty.base.model.query.hczx.TbHcBpcRCCountQuery;
import com.mosty.base.model.query.qwzx.TbQwCjbsQuery;
import com.mosty.base.model.vo.hczx.TbHcBpcRCCountVO;
import com.mosty.common.base.domain.ResponseResult;
import com.mosty.common.base.entity.log.BusinessType;
import com.mosty.common.base.entity.log.Log;
import com.mosty.common.token.JwtSysUser;
import com.mosty.hczx.service.TbHcCountService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangzhao
 * 核查中心-核查统计接口
 */
@Api(tags = "核查统计")
@RestController
@AllArgsConstructor
@RequestMapping("/tbHcCount")
public class TbHcCountController {

    /**
     * 核查中心核查统计Service
     */
    private final TbHcCountService tbHcCountService;

    /**
     * 查询人车盘查
     * @param query 被盘查人车统计查询对象
     * @return ResponseResult 被盘查人车数量统计返回对象
     */
    @ApiOperation(value = "查询人车盘查")
    @GetMapping("/selectRCCount")
    @JwtSysUser
    @Log(title = "核查中心-核查统计接口-查询人车盘查", businessType = BusinessType.OTHER)
    public ResponseResult<TbHcBpcRCCountVO> selectRCCount(TbHcBpcRCCountQuery query){
        return ResponseResult.success(tbHcCountService.selectRCCount(query));
    }


}
