|
@@ -178,9 +178,9 @@ public class TaBettingPlanServiceImpl extends ServiceImpl<TaBettingPlanMapper, T
|
178
|
178
|
// 销售时间
|
179
|
179
|
if (taBettingPlan.getIsSport()) {
|
180
|
180
|
String currentTime = LocalDateTime.now().format(DateTimeFormatter.ofPattern("HH:mm"));
|
181
|
|
- if (currentTime.compareTo(taShopLottery.getOpeningTime()) < 0 || currentTime.compareTo(taShopLottery.getClosingTime()) > 0) {
|
182
|
|
- throw new Exception("非当前店铺彩票开售时间");
|
183
|
|
- }
|
|
181
|
+// if (currentTime.compareTo(taShopLottery.getOpeningTime()) < 0 || currentTime.compareTo(taShopLottery.getClosingTime()) > 0) {
|
|
182
|
+// throw new Exception("非当前店铺彩票开售时间");
|
|
183
|
+// }
|
184
|
184
|
}
|
185
|
185
|
|
186
|
186
|
return;
|
|
@@ -236,20 +236,20 @@ public class TaBettingPlanServiceImpl extends ServiceImpl<TaBettingPlanMapper, T
|
236
|
236
|
}
|
237
|
237
|
|
238
|
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
|
|
- }
|
|
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
|
// 如果是数字彩
|