whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/service/AppAlmParamService.java
@@ -1,10 +1,11 @@
package com.whyc.service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.whyc.mapper.AppAlmParamMapper;
import com.whyc.pojo.AppAlmParam;
import com.whyc.pojo.PageParam;
import com.whyc.util.ActionUtil;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@@ -24,7 +25,7 @@
    public Map<Integer,Map<Integer,List<AppAlmParam>>> getAllList() {
        Map<Integer,Map<Integer,List<AppAlmParam>>> resMap = new HashMap<>();
        List<AppAlmParam> pageParamList = mapper.selectList(null);
        List<AppAlmParam> pageParamList = mapper.selectList((Wrapper<AppAlmParam>) ActionUtil.objeNull);
        Map<Integer, List<AppAlmParam>> paramMap = pageParamList.stream().collect(Collectors.groupingBy(AppAlmParam::getAlmAutoClearEn));
        Set<Integer> statusSet = paramMap.keySet();
        for (Integer status : statusSet) {
@@ -42,4 +43,17 @@
    public void updateList2(List<AppAlmParam> paramList) {
        mapper.updateList2(paramList);
    }
    public List<AppAlmParam> getAllList2() {
        return mapper.selectList((Wrapper<AppAlmParam>) ActionUtil.objeNull);
    }
    public List<Integer> getListToBeConfirmed(Integer type) {
        QueryWrapper<AppAlmParam> query = Wrappers.query();
        if(type != 0){ // 0,查全部
            query.eq("alm_category",type);
        }
        query.eq("alm_auto_clear_en",0);
        return mapper.selectList(query).stream().map(AppAlmParam::getAlmId).collect(Collectors.toList());
    }
}