|
|
@@ -13,6 +13,7 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import javax.servlet.http.HttpSession;
|
|
|
import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
public class BaseController {
|
|
|
@@ -170,6 +171,14 @@ public class BaseController {
|
|
|
return layuiPage;
|
|
|
}
|
|
|
|
|
|
+ public static <T> LayuiPage<T> renderLayuiList(List<T> rs) {
|
|
|
+ LayuiPage<T> layuiPage = new LayuiPage<T>();
|
|
|
+ layuiPage.setCode(0);
|
|
|
+ layuiPage.setData(rs);
|
|
|
+ layuiPage.setCount(rs.size());
|
|
|
+ return layuiPage;
|
|
|
+ }
|
|
|
+
|
|
|
private Date toDate(String value, Date defaultValue) {
|
|
|
try {
|
|
|
if (StrFunc.isEmpty(value))
|