Your Name 4 years ago
parent
commit
5b8e81367b

+ 15
- 15
src/main/java/com/yunzhi/niucai/service/impl/TaBettingPlanServiceImpl.java View File

@@ -235,21 +235,21 @@ public class TaBettingPlanServiceImpl extends ServiceImpl<TaBettingPlanMapper, T
235 235
                 noteNumList.add(item.getDetailList().size());
236 236
             }
237 237
 
238
-            // 校验注数
239
-            int totalNums = BizUtils.computeSportNoteNum(tdSportPass.getUnitNum(), tdSportPass.getAmount(), noteNumList);
240
-            if (null == taBettingPlan.getNotesNum() || !taBettingPlan.getNotesNum().equals(totalNums)) {
241
-                throw new Exception("投注总注数计算不正确, 应该为: " + totalNums);
242
-            }
243
-
244
-            // 总金额
245
-            int totalPrice = totalNums * tdLottery.getUnitPrice() * taBettingPlan.getTimes();
246
-            if (null == taBettingPlan.getTotalPrice() || !taBettingPlan.getTotalPrice().equals(totalPrice)) {
247
-                throw new Exception("投注总金额计算不正确");
248
-            }
249
-
250
-            if (totalPrice > tdLottery.getMaxPrice()) {
251
-                throw new Exception("投注总金额不能超过" + String.format("%.2f", (float) tdLottery.getMaxPrice() / 100 ) + "元");
252
-            }
238
+//            // 校验注数
239
+//            int totalNums = BizUtils.computeSportNoteNum(tdSportPass.getUnitNum(), tdSportPass.getAmount(), noteNumList);
240
+//            if (null == taBettingPlan.getNotesNum() || !taBettingPlan.getNotesNum().equals(totalNums)) {
241
+//                throw new Exception("投注总注数计算不正确, 应该为: " + totalNums);
242
+//            }
243
+//
244
+//            // 总金额
245
+//            int totalPrice = totalNums * tdLottery.getUnitPrice() * taBettingPlan.getTimes();
246
+//            if (null == taBettingPlan.getTotalPrice() || !taBettingPlan.getTotalPrice().equals(totalPrice)) {
247
+//                throw new Exception("投注总金额计算不正确");
248
+//            }
249
+//
250
+//            if (totalPrice > tdLottery.getMaxPrice()) {
251
+//                throw new Exception("投注总金额不能超过" + String.format("%.2f", (float) tdLottery.getMaxPrice() / 100 ) + "元");
252
+//            }
253 253
         }
254 254
 
255 255
         // 如果是数字彩