package cn.ibizlab.core.extensions.service;

import cn.ibizlab.core.sample.service.impl.IBIZBOOKServiceImpl;
import lombok.extern.slf4j.Slf4j;
import cn.ibizlab.core.sample.domain.IBIZBOOK;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Primary;
import java.util.*;

/**
 * 实体[图书] 自定义服务对象
 */
@Slf4j
@Primary
@Service("IBIZBOOKExService")
public class IBIZBOOKExService extends IBIZBOOKServiceImpl {

    @Override
    protected Class currentModelClass() {
        return com.baomidou.mybatisplus.core.toolkit.ReflectionKit.getSuperClassGenericType(this.getClass().getSuperclass(), 1);
    }

    /**
     * [UpdatePress:更新出版社] 行为扩展
     * @param et
     * @return
     */
    @Override
    @Transactional
    public IBIZBOOK updatePress(IBIZBOOK et) {
        return super.updatePress(et);
    }
}

