kotlin mybatis.plus学习

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()

你可能感兴趣的:(java)