package io.modules.item.service.impl;

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

import cn.hutool.core.util.StrUtil;
import io.common.service.impl.CrudServiceImpl;
import io.modules.item.dao.CaseDao;
import io.modules.item.dto.CaseDTO;
import io.modules.item.entity.CaseEntity;
import io.modules.item.service.CaseService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 病例表
 *
 * @author Mark #
 * @since 1.0.0 2025-05-13
 */
@Service
public class CaseServiceImpl extends CrudServiceImpl<CaseDao, CaseEntity, CaseDTO> implements CaseService {

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

        QueryWrapper<CaseEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StrUtil.isNotBlank(id), "id", id);

        return wrapper;
    }


}