Преглед на файлове

fixed page jump in business

maqingyang преди 11 месеца
родител
ревизия
90fad9a2b4
променени са 1 файла, в които са добавени 9 реда и са изтрити 9 реда
  1. 9 9
      src/main/java/com/kexun/controller/BusinessController.java

+ 9 - 9
src/main/java/com/kexun/controller/BusinessController.java

@@ -33,7 +33,7 @@ public class BusinessController {
         int businessType = req.getIntValue("businessType");
         List<BusinessInfo> list=null;
         switch(businessType){
-            case 0:
+            case 1:
                 list = BusinessService.queryBusinessList("'0'",null);
                 for (BusinessInfo businessInfo : list) {
                     if (businessInfo.getStatus().equals("0")) {
@@ -41,7 +41,7 @@ public class BusinessController {
                     }
                 }
                 break;
-            case 1:
+            case 2:
                 list = BusinessService.queryBusinessList("'1','2'",null);
                 for (BusinessInfo businessInfo : list) {
                     if (businessInfo.getStatus().equals("1")) {
@@ -51,7 +51,7 @@ public class BusinessController {
                     }
                 }
                 break;
-            case 2:
+            case 3:
                 list = BusinessService.queryBusinessList("'3','4'",null);
                 for (BusinessInfo businessInfo : list) {
                     if (businessInfo.getStatus().equals("3")) {
@@ -78,7 +78,7 @@ public class BusinessController {
         PageHelper.startPage(pageNum, pageSize);//设置分页信息
         List<BusinessInfo> list=null;
         switch(businessType){
-            case 0:
+            case 1:
                 list = BusinessService.queryBusinessList("'0'",null);
                 for (BusinessInfo businessInfo : list) {
                     if (businessInfo.getStatus().equals("0")) {
@@ -86,7 +86,7 @@ public class BusinessController {
                     }
                 }
                 break;
-            case 1:
+            case 2:
                 list = BusinessService.queryBusinessList("'1','2'",null);
                 for (BusinessInfo businessInfo : list) {
                     if (businessInfo.getStatus().equals("1")) {
@@ -96,7 +96,7 @@ public class BusinessController {
                     }
                 }
                 break;
-            case 2:
+            case 3:
                 list = BusinessService.queryBusinessList("'3','4'",null);
                 for (BusinessInfo businessInfo : list) {
                     if (businessInfo.getStatus().equals("3")) {
@@ -151,7 +151,7 @@ public class BusinessController {
         PageHelper.startPage(pageNum, pageSize);//设置分页信息
         List<BusinessInfo> list=null;
         switch(businessType){
-            case 0:
+            case 1:
                 list = BusinessService.queryBusinessList("'0'",customerName);
                 for (BusinessInfo businessInfo : list) {
                     if (businessInfo.getStatus().equals("0")) {
@@ -159,7 +159,7 @@ public class BusinessController {
                     }
                 }
                 break;
-            case 1:
+            case 2:
                 list = BusinessService.queryBusinessList("'1','2'",customerName);
                 for (BusinessInfo businessInfo : list) {
                     if (businessInfo.getStatus().equals("1")) {
@@ -169,7 +169,7 @@ public class BusinessController {
                     }
                 }
                 break;
-            case 2:
+            case 3:
                 list = BusinessService.queryBusinessList("'3','4'",customerName);
                 for (BusinessInfo businessInfo : list) {
                     if (businessInfo.getStatus().equals("3")) {