kotlin mybatis.plus学習

811 ワード

java service public interface ShopService extends IService {} kotline service
interface ShopService: IService {}

java serviceImpl @Service public class ShopServiceImpl extends ServiceImpl implements ShopService {}
kotlin serviceImpl
@Service
class ShopServiceImpl :ShopService, ServiceImpl() {}

mapper
@Mapper
public interface ShopMapper : BaseMapper {

model
public class    GfShop {
    @TableId(value="shop_id",type= IdType.AUTO)
    private Integer shopId;

var ew=QueryWrapper()を使用します.ew.like("") memberMapper.selectCount()