浏览代码

修复未查询全部表单问题

zhouhao 8 年之前
父节点
当前提交
ec000ff33d

+ 1 - 1
hsweb-web-service/hsweb-web-service-simple/src/main/java/org/hsweb/web/service/impl/FormDeployContextLoaderListener.java

@@ -25,7 +25,7 @@ public class FormDeployContextLoaderListener implements ApplicationListener<Cont
     public void onApplicationEvent(ContextRefreshedEvent event) {
     public void onApplicationEvent(ContextRefreshedEvent event) {
         if (event.getApplicationContext().getParent() != null) return;
         if (event.getApplicationContext().getParent() != null) return;
         try {
         try {
-            formService.createQuery().where(Form.Property.using, 1).list().forEach(form -> {
+            formService.createQuery().where(Form.Property.using, 1).listNoPaging().forEach(form -> {
                 try {
                 try {
                     Form deployed = formService.selectDeployed(form.getName());
                     Form deployed = formService.selectDeployed(form.getName());
                     if (null != deployed) {
                     if (null != deployed) {