package com.sckw.system.service;

import com.sckw.system.dao.SysAreaDao;
import com.sckw.system.model.SysArea;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 行政区域service接口
 * @author zk
 * @date 2023-05-31
 */
@Service
public class SysAreaService {

    @Autowired
    SysAreaDao sysAreaDao;

    /**
     * 查询
     * @param params
     * @return
     */
    public List<Map<String, Object>> findList(Map<String, Object> params) {
        return sysAreaDao.findList(params);
    }

    /**
     * @desc: 根据id获取
     * @author: yzc
     * @date: 2023-07-11 11:38
     * @Param code:
     * @return: com.sckw.system.model.SysArea
     */
    public SysArea selectById(Integer code) {
        return sysAreaDao.selectById(code);
    }
}
