Commit faee3e88 authored by suichenguang's avatar suichenguang

搜索框更改

parent cc1a77df
...@@ -431,41 +431,78 @@ public class TaskListApi { ...@@ -431,41 +431,78 @@ public class TaskListApi {
int count=0; int count=0;
int count1; int count1;
int count2; int count2;
String c1;
String c2;
switch (state){ switch (state){
case "1": case "1":
count1= Integer.parseInt(taskListService.selectCountIssue(date)); c1=taskListService.selectCountIssue(date);
count2= Integer.parseInt(taskListService.selectCountIssue2(date)); c2=taskListService.selectCountConcora2(date);
if (c2==null||c2.equals("")){
c2="0";
}
count1= Integer.parseInt(c1);
count2= Integer.parseInt(c2);
count = count1+count2; count = count1+count2;
return count; return count;
case "2": case "2":
count1 =Integer.parseInt(taskListService.selectCountPrintOut(date)); c1=taskListService.selectCountPrintOut(date);
count2=Integer.parseInt(taskListService.selectCountPrintOut2(date)); c2=taskListService.selectCountPrintOut2(date);
if (c2==null||c2.equals("")){
c2="0";
}
count1 =Integer.parseInt(c1);
count2=Integer.parseInt(c2);
count = count1+count2; count = count1+count2;
return count; return count;
case "3": case "3":
count1=Integer.parseInt(taskListService.selectCountPosition(date)); c1=taskListService.selectCountPosition(date);
count2=Integer.parseInt(taskListService.selectCountPosition2(date)); c2=taskListService.selectCountPosition2(date);
if (c2==null||c2.equals("")){
c2="0";
}
count1=Integer.parseInt(c1);
count2=Integer.parseInt(c2);
count = count1+count2; count = count1+count2;
return count; return count;
case "4": case "4":
count1 = Integer.parseInt(taskListService.selectCountConcora(date)); c1=taskListService.selectCountConcora(date);
count2= Integer.parseInt(taskListService.selectCountConcora2(date)); c2=taskListService.selectCountConcora2(date);
if (c2==null||c2.equals("")){
c2="0";
}
count1 = Integer.parseInt(c1);
count2= Integer.parseInt(c2);
count = count1+count2; count = count1+count2;
return count; return count;
case "5": case "5":
count1 =Integer.parseInt(taskListService.selectCountPunching(date)); c1=taskListService.selectCountPunching(date);
count2=Integer.parseInt(taskListService.selectCountPunching2(date)); c2=taskListService.selectCountPunching2(date);
if (c2==null||c2.equals("")){
c2="0";
}
count1 =Integer.parseInt(c1);
count2=Integer.parseInt(c2);
count = count1+count2; count = count1+count2;
return count; return count;
case "6": case "6":
count1=Integer.parseInt(taskListService.selectCountSorting(date)); c1=taskListService.selectCountSorting(date);
count2=Integer.parseInt(taskListService.selectCountSorting2(date)); c2=taskListService.selectCountSorting2(date);
if (c2==null||c2.equals("")){
c2="0";
}
count1=Integer.parseInt(c1);
count2=Integer.parseInt(c2);
count =count1+count2; count =count1+count2;
return count; return count;
case "7": case "7":
count1=Integer.parseInt(taskListService.selectCountQuality(date)); c1=taskListService.selectCountQuality(date);
count2=Integer.parseInt(taskListService.selectCountQuality2(date)); c2=taskListService.selectCountQuality2(date);
if (c2==null||c2.equals("")){
c2="0";
}
count1=Integer.parseInt(c1);
count2=Integer.parseInt(c2);
count=count1+count2; count=count1+count2;
return count; return count;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment