-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f3d70d
commit e2e99d3
Showing
3 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/java/com/github/jeffreyning/mybatisplus/service/IMppService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.github.jeffreyning.mybatisplus.service; | ||
|
||
import com.baomidou.mybatisplus.extension.service.IService; | ||
import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; | ||
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper; | ||
|
||
/** | ||
* @author ninghao | ||
*/ | ||
public interface IMppService<T> extends IService<T> { | ||
MppBaseMapper<T> getBaseMapper(); | ||
default boolean updateByMultiId(T entity) { | ||
return SqlHelper.retBool(this.getBaseMapper().updateByMultiId(entity)); | ||
} | ||
|
||
default boolean deleteByMultiId(T entity) { | ||
return SqlHelper.retBool(this.getBaseMapper().deleteByMultiId(entity)); | ||
} | ||
|
||
default T selectByMultiId(T entity) { | ||
return this.getBaseMapper().selectByMultiId(entity); | ||
} | ||
|
||
} |