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.SettingSelectDao;
|
import com.iailab.module.model.mpk.entity.SettingSelectEntity;
|
import com.iailab.module.model.mpk.service.SettingSelectService;
|
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/14 15:13
|
**/
|
@Slf4j
|
@Service
|
public class SettingSelectServiceImpl extends BaseServiceImpl<SettingSelectDao, SettingSelectEntity> implements SettingSelectService {
|
|
|
@Override
|
public void deleteByMap(Map<String, Object> map) {
|
baseDao.delete(getWrapper(map));
|
}
|
|
private QueryWrapper<SettingSelectEntity> getWrapper(Map<String, Object> params) {
|
String settingId = (String) params.get("settingId");
|
|
QueryWrapper<SettingSelectEntity> wrapper = new QueryWrapper<>();
|
wrapper.eq(StringUtils.isNotBlank(settingId), "setting_id", settingId);
|
|
return wrapper;
|
}
|
}
|