forked from gzzfw/backEnd/gz-dyh

xusd
2024-09-27 7c3418c45926b5288b22044d60dbb12fa2c982d0
dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/service/CaseWindupApplyService.java
@@ -4,6 +4,8 @@
import cn.huge.base.common.utils.DateUtils;
import cn.huge.base.common.utils.IdUtils;
import cn.huge.base.common.utils.ObjectUtils;
import cn.huge.module.cases.domain.dto.FrontPageListDTO;
import cn.huge.module.cases.domain.dto.FrontPageListJADTO;
import cn.huge.module.cases.domain.po.CaseInfo;
import cn.huge.module.client.api.impl.UtilsClientImpl;
import cn.huge.module.cases.dao.mapper.CaseWindupApplyMapper;
@@ -13,13 +15,11 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.PageRequest;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.PostConstruct;
import java.util.Date;
import java.util.List;
import java.util.Map;
@@ -158,4 +158,52 @@
        }
    }
    /**
     * 首页-待审核分页查询
     * @param terms 条件
     * @return Page
     */
    public long countMyTaskApplyReview(Map<String, Object> terms){
        long total = mapper.countMyTaskApplyReview(terms);
        return total;
    }
    /**
     * 首页-待审核查询
     * @param page 分页对象
     * @param terms 条件
     * @return Page
     */
    public List<FrontPageListDTO> listMyTaskApplyReview(PageRequest page, Map<String, Object> terms){
        List<FrontPageListDTO> frontPageListDTOList = mapper.listMyTaskApplyReview(page, terms);
        return frontPageListDTOList;
    }
    /**
     * 首页-查询数量
     * @param auditUnitId 条件
     * @return Page
     */
    public long countApplyReview(String auditUnitId){
        return mapper.countApplyReview(auditUnitId);
    }
    /**
     * 首页-查询待办任务-结案申请/已结案条件统计
     * @param terms 条件
     * @return Page
     */
    public long countMyTaskJa(Map<String, Object> terms){
        return mapper.countMyTaskJa(terms);
    }
    /**
     * 首页-查询待办任务-结案申请/已结案分页查询
     * @param page 分页对象
     * @param terms 条件
     * @return Page
     */
    public List<FrontPageListJADTO> listMyTaskJa(PageRequest page, Map<String, Object> terms){
        return mapper.listMyTaskJa(page, terms);
    }
}