77
88/**
99 * IBaseService
10- * @author Wang926454
10+ * @author dolyw.com
1111 * @date 2018/8/9 15:45
1212 */
1313public interface IBaseService <T > {
@@ -17,7 +17,7 @@ public interface IBaseService<T> {
1717 * 根据实体中的属性值进行查询,查询条件使用等号
1818 * @param record
1919 * @return java.util.List<T>
20- * @author Wang926454
20+ * @author dolyw.com
2121 * @date 2018/8/9 15:43
2222 */
2323 List <T > select (T record );
@@ -26,7 +26,7 @@ public interface IBaseService<T> {
2626 * 根据主键字段进行查询,方法参数必须包含完整的主键属性,查询条件使用等号
2727 * @param key
2828 * @return T
29- * @author Wang926454
29+ * @author dolyw.com
3030 * @date 2018/8/9 15:43
3131 */
3232 T selectByPrimaryKey (Object key );
@@ -35,7 +35,7 @@ public interface IBaseService<T> {
3535 * 查询全部结果,select(null)方法能达到同样的效果
3636 * @param
3737 * @return java.util.List<T>
38- * @author Wang926454
38+ * @author dolyw.com
3939 * @date 2018/8/9 15:43
4040 */
4141 List <T > selectAll ();
@@ -44,7 +44,7 @@ public interface IBaseService<T> {
4444 * 根据实体中的属性进行查询,只能有一个返回值,有多个结果是抛出异常,查询条件使用等号
4545 * @param record
4646 * @return T
47- * @author Wang926454
47+ * @author dolyw.com
4848 * @date 2018/8/9 15:43
4949 */
5050 T selectOne (T record );
@@ -53,7 +53,7 @@ public interface IBaseService<T> {
5353 * 根据实体中的属性查询总数,查询条件使用等号
5454 * @param record
5555 * @return int
56- * @author Wang926454
56+ * @author dolyw.com
5757 * @date 2018/8/9 15:43
5858 */
5959 int selectCount (T record );
@@ -63,7 +63,7 @@ public interface IBaseService<T> {
6363 * 保存一个实体,null的属性也会保存,不会使用数据库默认值
6464 * @param record
6565 * @return int
66- * @author Wang926454
66+ * @author dolyw.com
6767 * @date 2018/8/9 15:43
6868 */
6969 int insert (T record );
@@ -72,7 +72,7 @@ public interface IBaseService<T> {
7272 * 保存一个实体,null的属性不会保存,会使用数据库默认值
7373 * @param record
7474 * @return int
75- * @author Wang926454
75+ * @author dolyw.com
7676 * @date 2018/8/9 15:43
7777 */
7878 int insertSelective (T record );
@@ -82,7 +82,7 @@ public interface IBaseService<T> {
8282 * 根据主键更新实体全部字段,null值会被更新
8383 * @param record
8484 * @return int
85- * @author Wang926454
85+ * @author dolyw.com
8686 * @date 2018/8/9 15:43
8787 */
8888 int updateByPrimaryKey (T record );
@@ -91,7 +91,7 @@ public interface IBaseService<T> {
9191 * 根据主键更新属性不为null的值
9292 * @param record
9393 * @return int
94- * @author Wang926454
94+ * @author dolyw.com
9595 * @date 2018/8/9 15:43
9696 */
9797 int updateByPrimaryKeySelective (T record );
@@ -101,7 +101,7 @@ public interface IBaseService<T> {
101101 * 根据实体属性作为条件进行删除,查询条件使用等号
102102 * @param record
103103 * @return int
104- * @author Wang926454
104+ * @author dolyw.com
105105 * @date 2018/8/9 15:43
106106 */
107107 int delete (T record );
@@ -110,7 +110,7 @@ public interface IBaseService<T> {
110110 * 根据主键字段进行删除,方法参数必须包含完整的主键属性
111111 * @param key
112112 * @return int
113- * @author Wang926454
113+ * @author dolyw.com
114114 * @date 2018/8/9 15:44
115115 */
116116 int deleteByPrimaryKey (Object key );
@@ -120,7 +120,7 @@ public interface IBaseService<T> {
120120 * 根据Example条件进行查询,这个查询支持通过Example类指定查询列,通过selectProperties方法指定查询列
121121 * @param example
122122 * @return java.util.List<T>
123- * @author Wang926454
123+ * @author dolyw.com
124124 * @date 2018/8/9 15:44
125125 */
126126 List <T > selectByExample (Object example );
@@ -129,7 +129,7 @@ public interface IBaseService<T> {
129129 * 根据Example条件进行查询总数
130130 * @param example
131131 * @return int
132- * @author Wang926454
132+ * @author dolyw.com
133133 * @date 2018/8/9 15:44
134134 */
135135 int selectCountByExample (Object example );
@@ -139,7 +139,7 @@ public interface IBaseService<T> {
139139 * @param record
140140 * @param example
141141 * @return int
142- * @author Wang926454
142+ * @author dolyw.com
143143 * @date 2018/8/9 15:44
144144 */
145145 int updateByExample (@ Param ("record" ) T record , @ Param ("example" ) Object example );
@@ -149,7 +149,7 @@ public interface IBaseService<T> {
149149 * @param record
150150 * @param example
151151 * @return int
152- * @author Wang926454
152+ * @author dolyw.com
153153 * @date 2018/8/9 15:44
154154 */
155155 int updateByExampleSelective (@ Param ("record" ) T record , @ Param ("example" ) Object example );
@@ -158,7 +158,7 @@ public interface IBaseService<T> {
158158 * 根据Example条件删除数据
159159 * @param example
160160 * @return int
161- * @author Wang926454
161+ * @author dolyw.com
162162 * @date 2018/8/9 15:44
163163 */
164164 int deleteByExample (Object example );
@@ -169,7 +169,7 @@ public interface IBaseService<T> {
169169 * @param record
170170 * @param rowBounds
171171 * @return java.util.List<T>
172- * @author Wang926454
172+ * @author dolyw.com
173173 * @date 2018/8/9 15:44
174174 */
175175 List <T > selectByRowBounds (T record , RowBounds rowBounds );
@@ -179,7 +179,7 @@ public interface IBaseService<T> {
179179 * @param example
180180 * @param rowBounds
181181 * @return java.util.List<T>
182- * @author Wang926454
182+ * @author dolyw.com
183183 * @date 2018/8/9 15:44
184184 */
185185 List <T > selectByExampleAndRowBounds (Object example , RowBounds rowBounds );
0 commit comments