package com.ruoyi.web.project.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.FlowTaskEntity;
import com.yanzhu.jh.project.domain.SurProjectAuditinfo;
import com.yanzhu.jh.project.service.ISurProjectAuditinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version : V1.0
 * @ClassName: ProjectAuditinfoController
 * @Description: 项目审批管理
 * @Auther: JiangYuQi
 * @Date: 2020/7/7 18:03
 */
@RestController
@RequestMapping("/wechat/projectAuditinfo")
public class ProjectAuditinfoController extends BaseController {

    @Autowired
    private ISurProjectAuditinfoService surProjectAuditinfoService;

    /**
     * 查询项目审核信息列表
     */
    @GetMapping("/findList")
    public AjaxResult findList(FlowTaskEntity flowTaskEntity)
    {
        return success(surProjectAuditinfoService.selectMyAwaitFlowTask(flowTaskEntity));
    }

    /**
     * 统计审核信息
     */
    @GetMapping("/findAuditCount")
    public AjaxResult findAuditCount(FlowTaskEntity flowTaskEntity)
    {
        return success(surProjectAuditinfoService.queryCount(flowTaskEntity));
    }

    /**
     * 查询项目审核信息列表
     */
    @GetMapping("/selectProjectAuditinfo")
    public AjaxResult selectProjectAuditinfo(SurProjectAuditinfo surProjectAuditinfo)
    {
        return success(surProjectAuditinfoService.selectProjectAuditinfoList(surProjectAuditinfo));
    }
}
