快速集成MyBatis Plus
package com.feed02.wemedia.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.feed02.model.wemedia.pojos.WmChannel;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface WmChannelMapper extends BaseMapper<WmChannel> {
}
package com.feed02.wemedia.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.feed02.model.wemedia.pojos.WmChannel;
public interface WmChannelService extends IService<WmChannel> {
}
package com.feed02.wemedia.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feed02.model.wemedia.pojos.WmChannel;
import com.feed02.wemedia.mapper.WmChannelMapper;
import com.feed02.wemedia.service.WmChannelService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Slf4j
@Service
@Transactional
public class WmChannelServiceImpl extends ServiceImpl<WmChannelMapper , WmChannel> implements WmChannelService {
}