..
This commit is contained in:
@@ -11,7 +11,7 @@ import javax.validation.constraints.Positive;
|
||||
* @Digits注解 验证注解的元素值的整数位数和小数位数上限 ,并且类型为float,double,BigDecimal。
|
||||
*/
|
||||
@Data
|
||||
public class PageForm<T> {
|
||||
public class PageForm {
|
||||
|
||||
@NotNull(message = "pageNumber不能为空")
|
||||
@Min(value = 1, message = "pageNumber最小为1")
|
||||
@@ -30,8 +30,19 @@ public class PageForm<T> {
|
||||
|
||||
private String searchKeyword;
|
||||
|
||||
/*======================流程参数==============================*/
|
||||
|
||||
/**
|
||||
* 是否审核
|
||||
*/
|
||||
private Boolean audit;
|
||||
|
||||
/**
|
||||
* 业务ID
|
||||
*/
|
||||
private String bizId;
|
||||
|
||||
|
||||
public PageForm defaultSort(String column, String order) {
|
||||
this.setPageOrderName(column);
|
||||
this.setPageOrderBy(order);
|
||||
|
||||
@@ -884,7 +884,6 @@ public interface BaseService<T> {
|
||||
*/
|
||||
Pagination listPageMap(Integer pageNumber, int pageSize, Condition cnd);
|
||||
|
||||
|
||||
/**
|
||||
* DataTable Page
|
||||
*
|
||||
@@ -950,4 +949,12 @@ public interface BaseService<T> {
|
||||
* @return
|
||||
*/
|
||||
NutMap data(int length, int start, int draw, Cnd cnd, String linkName);
|
||||
|
||||
/**
|
||||
* 获取Map
|
||||
* @param sql
|
||||
* @return
|
||||
*/
|
||||
NutMap fetchMap(Sql sql);
|
||||
|
||||
}
|
||||
|
||||
@@ -1436,4 +1436,12 @@ public class BaseServiceImpl<T> extends EntityService<T> implements BaseService<
|
||||
re.put("recordsTotal", length);
|
||||
return re;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NutMap fetchMap(Sql sql) {
|
||||
sql.setCallback(Sqls.callback.map());
|
||||
execute(sql);
|
||||
NutMap result = (NutMap)sql.getResult();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user