浏览代码

校园服务=0元

wuwen 4 年之前
父节点
当前提交
5a1fba8414

+ 12 - 2
src/main/java/com/ssj/sys/controller/FinanceReportController.java

@@ -433,7 +433,11 @@ public class FinanceReportController extends BaseController {
         Page<Map<String,Object>> page = financeService.balanceConsumeDetailList_New(params, initPage(pageNo, pageSize));
         List<Map<String,Object>> list=page.getContent();
         for (Map<String, Object> map : list) {
-        	map.put("price_1", "350");
+        	if(Integer.parseInt(map.get("meal_type").toString())==4) {
+        		map.put("price_1", "0");
+        	}else {
+        		map.put("price_1", "350");
+        	}
           	map.put("sum_price_1", "0");
         	map.put("sum_price_2", "0");
         	map.put("sum_price_3", "0");
@@ -466,6 +470,8 @@ public class FinanceReportController extends BaseController {
         					new BigDecimal(map.get("count_2").toString()).intValue()
         					*0.4 
         					: 0);
+        		}else {
+        			map.put("price_1", "0");
         		}
         	}
         	
@@ -579,7 +585,11 @@ public class FinanceReportController extends BaseController {
             
             List<Map<String,Object>> list=page.getContent();
             for (Map<String, Object> map : list) {
-            	map.put("price_1", "350");
+            	if(Integer.parseInt(map.get("meal_type").toString())==4) {
+            		map.put("price_1", "0");
+            	}else {
+            		map.put("price_1", "350");
+            	}
               	map.put("sum_price_1", "0");
             	map.put("sum_price_2", "0");
             	map.put("sum_price_3", "0");

+ 1 - 1
src/main/resources/templates/sys/finance/allList6.html

@@ -106,7 +106,7 @@
 					<td th:text="${item.get('count_1')>0 ? item.get('balance_month') : ''   }"></td>
 					<td th:text="${item.get('sum_price_1')}"></td>
 	
-					<td th:text="${item.get('count_2')>0 ? '350' : '0' }"></td>
+					<td th:text="${item.get('price_1')}"></td>
 <!-- 					<td th:text="${item.get('sum_3')}"></td> -->
 <!-- 					<td th:text="${item.get('sum_4')}"></td> -->
 					<td th:text="${item.get('count_2')>0 ? item.get('balance_month') : ''   }"></td>

src/main/resources/templates/sys/fx/merchantAdd_old.html → src/main/resources/templates/sys/fx/merchantOldAdd.html


src/main/resources/templates/sys/fx/merchantAdd_sc.html → src/main/resources/templates/sys/fx/merchantScAdd.html