package com.jwipc.sys.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.sys.entity.MoldForm;
import com.jwipc.sys.entity.MoldSettings;
import com.jwipc.sys.entity.MoldSettings;
import com.jwipc.sys.mapper.MoldSettingsMapper;
import com.jwipc.sys.mapper.MoldSettingsMapper;
import com.jwipc.sys.model.po.MoldFormPO;
import com.jwipc.sys.model.po.MoldSettingsPO;
import com.jwipc.sys.model.query.MoldFormQuery;
import com.jwipc.sys.model.query.MoldSettingsQuery;
import com.jwipc.sys.service.IMoldSettingsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author AL
 * @since 2024-02-01
 */
@Service
public class MoldSettingsServiceImpl extends ServiceImpl<MoldSettingsMapper, MoldSettings> implements IMoldSettingsService {
    @Override
    public List<MoldSettingsPO> findPageByQuery(Page<MoldSettings> dbPage, MoldSettingsQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
    @Override
    public MoldSettingsPO getDataById(Long id) {
        return baseMapper.getDataById(id);
    }
}
