Browse Source

修复未查询全部表单问题

zhouhao 8 years ago
parent
commit
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) {
         if (event.getApplicationContext().getParent() != null) return;
         try {
-            formService.createQuery().where(Form.Property.using, 1).list().forEach(form -> {
+            formService.createQuery().where(Form.Property.using, 1).listNoPaging().forEach(form -> {
                 try {
                     Form deployed = formService.selectDeployed(form.getName());
                     if (null != deployed) {