| | |
| | | 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; |
| | |
| | | |
| | | 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) { |
| | |
| | | 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()); |
| | | } |
| | | } |