java service
public interface ShopService extends IService<GfShop> {}
kotline service
interface ShopService: IService<GfShop> {}
java serviceImpl
@Service public class ShopServiceImpl extends ServiceImpl<ShopMapper,GfShop> implements ShopService {}
kotlin serviceImpl
@Service
class ShopServiceImpl :ShopService, ServiceImpl<ShopMapper, GfShop>() {}
mapper
@Mapper
public interface ShopMapper : BaseMapper<GfShop> {
model
public class GfShop {
@TableId(value="shop_id",type= IdType.AUTO)
private Integer shopId;
使用
var ew = QueryWrapper();
ew.like("")
memberMapper.selectCount()