Kaynağa Gözat

年份筛选年份全部 无问题

ly 10 ay önce
ebeveyn
işleme
1a363afd76

+ 9 - 5
src/main/java/com/liang/controller/PrjAnnualbudgetController.java

@@ -151,17 +151,21 @@ public class PrjAnnualbudgetController extends BaseController {
151 151
                            @RequestParam(required = false, defaultValue = "", value = "sortOrder") String sortOrder) {
152 152
         PageHelper.startPage(pageNum, pageSize);
153 153
         Map<String, String> paraMap = new HashMap<>();
154
+
154 155
         if (nf != null && !nf.isEmpty()){
155 156
             String[] nfs = nf.split(",");
156
-            if (nfs.length >1){
157
-                paraMap.put("nf",nfs[1]);
157
+            if (nfs.length>1){
158
+                if (nfs[1].equals("0")){
159
+                    paraMap.put("nf","");
160
+
161
+                }else {
162
+                    paraMap.put("nf", nfs[1]);
163
+                }
158 164
 
159 165
             }else {
160
-                paraMap.put("nf", nf);
166
+                paraMap.put("nf",nf);
161 167
             }
162
-
163 168
         }
164
-
165 169
         paraMap.put("sortName", sortName);
166 170
         paraMap.put("sortOrder", sortOrder);
167 171
         paraMap.put("xmmc", xmmc);

+ 45 - 11
src/main/java/com/liang/controller/StaBudgetapprovalController.java

@@ -203,11 +203,18 @@ public class StaBudgetapprovalController extends BaseController {
203 203
         if (nf != null && !nf.isEmpty()){
204 204
             String[] nfs = nf.split(",");
205 205
             if (nfs.length>1){
206
-                paraMap.put("nf", nfs[1]);
206
+                if (nfs[1].equals("0")){
207
+                    paraMap.put("nf","");
208
+
209
+                }else {
210
+                    paraMap.put("nf", nfs[1]);
211
+                }
212
+
207 213
             }else {
208
-                paraMap.put("nf", nf);
214
+                paraMap.put("nf",nf);
209 215
             }
210 216
         }
217
+
211 218
         paraMap.put("sortName", sortName);
212 219
         paraMap.put("sortOrder", sortOrder);
213 220
         paraMap.put("sqmc", sqmc);
@@ -774,12 +781,19 @@ public class StaBudgetapprovalController extends BaseController {
774 781
         PageHelper.startPage(pageNum, pageSize);
775 782
 
776 783
         Map<String, String> paraMap = new HashMap<>();
784
+
777 785
         if (nf != null && !nf.isEmpty()){
778 786
             String[] nfs = nf.split(",");
779
-            if (nfs.length > 1){
780
-                paraMap.put("nf", nfs[1]);
787
+            if (nfs.length>1){
788
+                if (nfs[1].equals("0")){
789
+                    paraMap.put("nf","");
790
+
791
+                }else {
792
+                    paraMap.put("nf", nfs[1]);
793
+                }
794
+
781 795
             }else {
782
-                paraMap.put("nf", nf);
796
+                paraMap.put("nf",nf);
783 797
             }
784 798
         }
785 799
         paraMap.put("sortName", sortName);
@@ -990,10 +1004,17 @@ public class StaBudgetapprovalController extends BaseController {
990 1004
         PageHelper.startPage(pageNum, pageSize);
991 1005
 
992 1006
         Map<String, String> paraMap = new HashMap<>();
1007
+
993 1008
         if (nf != null && !nf.isEmpty()){
994 1009
             String[] nfs = nf.split(",");
995 1010
             if (nfs.length>1){
996
-                paraMap.put("nf",nfs[1]);
1011
+                if (nfs[1].equals("0")){
1012
+                    paraMap.put("nf","");
1013
+
1014
+                }else {
1015
+                    paraMap.put("nf", nfs[1]);
1016
+                }
1017
+
997 1018
             }else {
998 1019
                 paraMap.put("nf",nf);
999 1020
             }
@@ -1083,14 +1104,20 @@ public class StaBudgetapprovalController extends BaseController {
1083 1104
                                      @RequestParam(required = false, defaultValue = "", value = "sortOrder") String sortOrder) {
1084 1105
         Map<String, String> paraMap = new HashMap<>();
1085 1106
         PageHelper.startPage(pageNum, pageSize);
1107
+
1086 1108
         if (nf != null && !nf.isEmpty()){
1087 1109
             String[] nfs = nf.split(",");
1088 1110
             if (nfs.length>1){
1089
-                paraMap.put("nf", nfs[1]);
1111
+                if (nfs[1].equals("0")){
1112
+                    paraMap.put("nf","");
1113
+
1114
+                }else {
1115
+                    paraMap.put("nf", nfs[1]);
1116
+                }
1117
+
1090 1118
             }else {
1091
-                paraMap.put("nf", nf);
1119
+                paraMap.put("nf",nf);
1092 1120
             }
1093
-
1094 1121
         }
1095 1122
         paraMap.put("sortName", sortName);
1096 1123
         paraMap.put("sortOrder", sortOrder);
@@ -1390,12 +1417,19 @@ public class StaBudgetapprovalController extends BaseController {
1390 1417
         PageHelper.startPage(pageNum, pageSize);
1391 1418
 
1392 1419
         Map<String, String> paraMap = new HashMap<>();
1420
+
1393 1421
         if (nf != null && !nf.isEmpty()){
1394 1422
             String[] nfs = nf.split(",");
1395 1423
             if (nfs.length>1){
1396
-                paraMap.put("nf", nfs[1]);
1424
+                if (nfs[1].equals("0")){
1425
+                    paraMap.put("nf","");
1426
+
1427
+                }else {
1428
+                    paraMap.put("nf", nfs[1]);
1429
+                }
1430
+
1397 1431
             }else {
1398
-                paraMap.put("nf", nf);
1432
+                paraMap.put("nf",nf);
1399 1433
             }
1400 1434
         }
1401 1435
         paraMap.put("sortName", sortName);

+ 8 - 1
src/main/java/com/liang/controller/StaPayapprovalController.java

@@ -140,10 +140,17 @@ public class StaPayapprovalController extends BaseController {
140 140
         }
141 141
 
142 142
         Map<String, String> paraMap = new HashMap<>();
143
+
143 144
         if (nf != null && !nf.isEmpty()){
144 145
             String[] nfs = nf.split(",");
145 146
             if (nfs.length>1){
146
-                paraMap.put("nf",nfs[1]);
147
+                if (nfs[1].equals("0")){
148
+                    paraMap.put("nf","");
149
+
150
+                }else {
151
+                    paraMap.put("nf", nfs[1]);
152
+                }
153
+
147 154
             }else {
148 155
                 paraMap.put("nf",nf);
149 156
             }

+ 10 - 3
src/main/java/com/liang/controller/StaReimbursementController.java

@@ -147,12 +147,19 @@ public class StaReimbursementController extends BaseController {
147 147
                            @RequestParam(required = false, defaultValue = "", value = "nf") String nf) {
148 148
         PageHelper.startPage(pageNum, pageSize);
149 149
         Map<String, String> paraMap = new HashMap<>();
150
+
150 151
         if (nf != null && !nf.isEmpty()){
151 152
             String[] nfs = nf.split(",");
152
-            if (nfs.length >1){
153
-                paraMap.put("nf", nfs[1]);
153
+            if (nfs.length>1){
154
+                if (nfs[1].equals("0")){
155
+                    paraMap.put("nf","");
156
+
157
+                }else {
158
+                    paraMap.put("nf", nfs[1]);
159
+                }
160
+
154 161
             }else {
155
-                paraMap.put("nf", nf);
162
+                paraMap.put("nf",nf);
156 163
             }
157 164
         }
158 165
         paraMap.put("sortName", sortName);

+ 1 - 1
src/main/resources/templates/annualbudget/list.html

@@ -32,7 +32,7 @@
32 32
                             <label class="layui-form-label" style="width: 70px">年份</label>
33 33
                             <div class="layui-input-inline" style="width: 140px">
34 34
                                 <select name="nf" id="nf" lay-filter="status">
35
-                                    <option value="">全部</option>
35
+                                    <option value="0">全部</option>
36 36
                                     <option th:each="item:${yearList}" th:text="${item.nf}" th:value="${item.nf}"></option>
37 37
                                 </select>
38 38
                             </div>

+ 1 - 2
src/main/resources/templates/payapply/list.html

@@ -41,8 +41,7 @@
41 41
                             <label class="layui-form-label" style="width: 70px;">年份</label>
42 42
                             <div class="layui-input-inline" style="width: 140px;">
43 43
                                 <select name="nf" id="nf" lay-filter="status" class="layui-select">
44
-                                    <option value="">全部</option>
45
-                                    <!-- Assume 'yearList' is populated with options -->
44
+                                    <option value="0">全部</option>
46 45
                                     <option th:each="item: ${yearList}" th:text="${item}" th:value="${item}"></option>
47 46
                                 </select>
48 47
                             </div>

+ 1 - 1
src/main/resources/templates/reimburse/list.html

@@ -41,7 +41,7 @@
41 41
                             <label class="layui-form-label" style="width: 70px;">年份</label>
42 42
                             <div class="layui-input-inline" style="width: 140px;">
43 43
                                 <select name="nf" id="nf" lay-filter="status" class="layui-select">
44
-                                    <option value="">全部</option>
44
+                                    <option value="0">全部</option>
45 45
                                     <!-- Assume 'yearList' is populated with options -->
46 46
                                     <option th:each="item: ${yearList}" th:text="${item}" th:value="${item}"></option>
47 47
                                 </select>

+ 1 - 1
src/main/resources/templates/stabudgetapproval/list_apply.html

@@ -61,7 +61,7 @@
61 61
                             <label class="layui-form-label" style="width: 70px;">年份</label>
62 62
                             <div class="layui-input-inline" style="width: 140px;">
63 63
                                 <select name="nf" id="nf" lay-filter="status">
64
-                                    <option value="">全部</option>
64
+                                    <option value="0">全部</option>
65 65
                                     <option th:each="item:${yearList}" th:text="${item.nf}"
66 66
                                             th:value="${item.nf}"></option>
67 67
                                 </select>

+ 1 - 1
src/main/resources/templates/stabudgetapproval/list_imprest_my.html

@@ -39,7 +39,7 @@
39 39
               <label class="layui-form-label" style="width: 30px; margin-left: -10px">年份</label>
40 40
               <div class="layui-input-inline" style="width: 100px">
41 41
                 <select name="nf" id="nf" lay-filter="status">
42
-                  <option value="">全部</option>
42
+                  <option value="0">全部</option>
43 43
                   <option th:each="item:${yearList}" th:text="${item.nf}" th:value="${item.nf}"></option>
44 44
                 </select>
45 45
               </div>

+ 1 - 1
src/main/resources/templates/stafeemanage/list_allapply.html

@@ -39,7 +39,7 @@
39 39
                             <label class="layui-form-label" style="width: 60px">年份</label>
40 40
                             <div class="layui-input-inline" style="width: 200px">
41 41
                                 <select name="nf" id="nf" lay-filter="status">
42
-                                    <option value="">全部</option>
42
+                                    <option value="0">全部</option>
43 43
                                     <option th:each="item:${yearList}" th:text="${item.nf}"
44 44
                                             th:value="${item.nf}"></option>
45 45
                                 </select>

+ 1 - 1
src/main/resources/templates/stafeemanage/list_approving.html

@@ -38,7 +38,7 @@
38 38
                             <label class="layui-form-label" style="width: 30px">年份</label>
39 39
                             <div class="layui-input-inline" style="width: 150px">
40 40
                                 <select name="nf" id="nf" lay-filter="status">
41
-                                    <option value="">全部</option>
41
+                                    <option value="0">全部</option>
42 42
                                     <option th:each="item:${yearList}" th:text="${item.nf}" th:value="${item.nf}"></option>
43 43
                                 </select>
44 44
                             </div>

+ 1 - 1
src/main/resources/templates/stafeemanage/list_feemanage.html

@@ -38,7 +38,7 @@
38 38
                             <label class="layui-form-label" style="width: 70px">年份</label>
39 39
                             <div class="layui-input-inline" style="width: 140px">
40 40
                                 <select name="nf" id="nf" lay-filter="status">
41
-                                    <option value="">全部</option>
41
+                                    <option value="0">全部</option>
42 42
                                     <option th:each="item:${yearList}" th:text="${item.nf}" th:value="${item.nf}"></option>
43 43
                                 </select>
44 44
                             </div>