package io.modules.item.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import io.modules.item.dao.ApplicationsDao;
import io.modules.item.dto.ApplicationsDTO;
import io.modules.item.entity.Applications;
import io.modules.item.service.ApplicationsService;
import cn.hutool.core.util.StrUtil;
import io.common.service.impl.CrudServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * certif申请表
 */
@Service
public class ApplicationsServiceImpl extends CrudServiceImpl<ApplicationsDao, Applications, ApplicationsDTO> implements ApplicationsService {

    @Override
    public QueryWrapper<Applications> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");
        QueryWrapper<Applications> wrapper = new QueryWrapper<>();
        wrapper.eq(StrUtil.isNotBlank(id), "id", id);

        return wrapper;
    }



}
