package io.renren.modules.loan.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.service.impl.CrudServiceImpl;
import io.renren.modules.loan.dao.RdUserUploadDao;
import io.renren.modules.loan.dto.RdUserUploadDTO;
import io.renren.modules.loan.entity.RdUserUploadEntity;
import io.renren.modules.loan.service.RdUserUploadService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 产品文件类型必传验证配置表
 *
 * @author lsy 
 * @since 1.0.0 2022-10-30
 */
@Service
public class RdUserUploadServiceImpl extends CrudServiceImpl<RdUserUploadDao, RdUserUploadEntity, RdUserUploadDTO> implements RdUserUploadService {

    @Override
    public QueryWrapper<RdUserUploadEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<RdUserUploadEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}