package com.iailab.module.model.mpk.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.iailab.framework.common.service.impl.BaseServiceImpl; import com.iailab.module.model.mpk.dao.ModelMethodDao; import com.iailab.module.model.mpk.entity.ModelMethodEntity; import com.iailab.module.model.mpk.service.ModelMethodService; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Service; import java.util.Map; /** * @description: * @author: dzd * @date: 2024/9/9 10:51 **/ @Slf4j @Service public class ModelMethodServiceImpl extends BaseServiceImpl implements ModelMethodService { @Override public void deleteByMap(Map map) { baseDao.delete(getWrapper(map)); } private QueryWrapper getWrapper(Map params) { String mpkFileId = (String) params.get("mpkFileId"); QueryWrapper wrapper = new QueryWrapper<>(); wrapper.eq(StringUtils.isNotBlank(mpkFileId), "mpk_file_id", mpkFileId); return wrapper; } }