Blame view

src/main/java/com/huaheng/pc/config/zone/service/ZoneServiceImpl.java 795 Bytes
pengcheng authored
1
2
package com.huaheng.pc.config.zone.service;
mahuandong authored
3
4
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
pengcheng authored
5
6
7
8
9
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huaheng.pc.config.zone.domain.Zone;
import com.huaheng.pc.config.zone.mapper.ZoneMapper;
import org.springframework.stereotype.Service;
mahuandong authored
10
11
12
import java.util.List;
import java.util.Map;
pengcheng authored
13
@Service("zone")
pengcheng authored
14
15
public class ZoneServiceImpl extends ServiceImpl<ZoneMapper, Zone> implements ZoneService {
mahuandong authored
16
17
18
19
20
21
    @Override
    public List<Map<String, Object>> getZoneCodeList() {
        LambdaQueryWrapper<Zone> lambda = Wrappers.lambdaQuery();
        lambda.select(Zone::getId, Zone::getCode, Zone::getName);
        return this.listMaps(lambda);
    }
pengcheng authored
22
}