package com.ruoyi.ibs.list.service.impl;

import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.ibs.list.domain.DwBGridCmpmCorpcustClaimDetailRpt;
import com.ruoyi.ibs.list.domain.DwBGridCmpmCorpcustClaimResultRpt;
import com.ruoyi.ibs.list.mapper.DwBGridCmpmCorpcustClaimRptMapper;
import com.ruoyi.ibs.list.service.DwBGridCmpmCorpcustClaimRptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DwBGridCmpmCorpcustClaimRptServiceImpl implements DwBGridCmpmCorpcustClaimRptService {

    @Resource
    private DwBGridCmpmCorpcustClaimRptMapper resultMapper;

    @Override
    public List<DwBGridCmpmCorpcustClaimResultRpt> getResultList() {
        return resultMapper.selectResultList(SecurityUtils.userRole(), String.valueOf(SecurityUtils.getDeptId()));
    }

    @Override
    public List<DwBGridCmpmCorpcustClaimDetailRpt> getDetailList() {
        return resultMapper.selectDetailList(SecurityUtils.userRole(), String.valueOf(SecurityUtils.getDeptId()));
    }

}
