wzy
2022-08-14 b141df9bf9764db8567efebed48006e12ab1f657
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.xzx.gc.role.service;
 
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.xzx.gc.entity.AddressLevelInfo;
import com.xzx.gc.role.mapper.AddressLevelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import tk.mybatis.mapper.entity.Example;
 
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
 
@Service
@Transactional
public class AddressLevelService {
 
    @Autowired
    private AddressLevelMapper addressLevelMapper;
 
    public List<AddressLevelInfo> queryAddressList(List<String> level3Id){
        Example example = new Example(AddressLevelInfo.class);
        example.createCriteria().andIn("level3Id",level3Id);
        return addressLevelMapper.selectByExample(example);
    }
}