mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
solon
This commit is contained in:
parent
185d92f054
commit
48c1b6e8a1
@ -22,9 +22,9 @@ public interface UserMapper extends MPJBaseMapper<UserDO> {
|
|||||||
### (可选)service继承JoinService
|
### (可选)service继承JoinService
|
||||||
|
|
||||||
```java
|
```java
|
||||||
import com.github.yulichang.mybatisplusjoin.solon.plugin.base.JoinService;
|
import com.github.yulichang.mybatisplusjoin.solon.plugin.base.MPJBaseService;
|
||||||
|
|
||||||
public interface UserService extends JoinService<UserDO> {
|
public interface UserService extends MPJBaseService<UserDO> {
|
||||||
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -32,11 +32,11 @@ public interface UserService extends JoinService<UserDO> {
|
|||||||
### (可选)serviceImpl继承JoinServiceImpl
|
### (可选)serviceImpl继承JoinServiceImpl
|
||||||
|
|
||||||
```java
|
```java
|
||||||
import com.github.yulichang.mybatisplusjoin.solon.plugin.base.JoinServiceImpl;
|
import com.github.yulichang.mybatisplusjoin.solon.plugin.base.MPJBaseServiceImpl;
|
||||||
import org.noear.solon.annotation.Component;
|
import org.noear.solon.annotation.Component;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class UserServiceImpl extends JoinServiceImpl<UserMapper, UserDO> implements UserService {
|
public class UserServiceImpl extends MPJBaseServiceImpl<UserMapper, UserDO> implements UserService {
|
||||||
|
|
||||||
}
|
}
|
||||||
```
|
```
|
@ -16,7 +16,7 @@ import java.util.Map;
|
|||||||
* @author yulichang
|
* @author yulichang
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({"unused"})
|
@SuppressWarnings({"unused"})
|
||||||
public interface JoinService<T> extends IService<T> {
|
public interface MPJBaseService<T> extends IService<T> {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
@ -8,6 +8,6 @@ import com.github.yulichang.base.MPJBaseMapper;
|
|||||||
* @see ServiceImpl
|
* @see ServiceImpl
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public class JoinServiceImpl<M extends MPJBaseMapper<T>, T> extends ServiceImpl<M, T> implements JoinService<T> {
|
public class MPJBaseServiceImpl<M extends MPJBaseMapper<T>, T> extends ServiceImpl<M, T> implements MPJBaseService<T> {
|
||||||
|
|
||||||
}
|
}
|
@ -27,7 +27,7 @@ import java.util.function.Function;
|
|||||||
* @since 1.2.0
|
* @since 1.2.0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({"unused"})
|
@SuppressWarnings({"unused"})
|
||||||
public interface JoinDeepService<T> extends IService<T> {
|
public interface MPJDeepService<T> extends IService<T> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据 ID 查询 并关联全部映射
|
* 根据 ID 查询 并关联全部映射
|
@ -23,7 +23,7 @@ import java.util.function.Function;
|
|||||||
* @since 1.4.4
|
* @since 1.4.4
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({"unchecked", "unused"})
|
@SuppressWarnings({"unchecked", "unused"})
|
||||||
public interface JoinRelationService<T> extends IService<T> {
|
public interface MPJRelationService<T> extends IService<T> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过注解实现单表多次查询
|
* 通过注解实现单表多次查询
|
Loading…
x
Reference in New Issue
Block a user