|
@@ -100,7 +100,10 @@ public class RestaurantServiceImpl implements RestaurantService {
|
|
|
BigDecimal bigDecimal = new BigDecimal(totalPrice);
|
|
|
Integer totalOrder = cuisineOrderMapper.getTotalOrderByCompanyIdAndDeptId(iocParam);
|
|
|
Integer totalPerson = cuisineOrderMapper.getTotalPersonByCompanyIdAndDeptId(iocParam);
|
|
|
- int dayPerson = random.nextInt(0,totalPerson);
|
|
|
+ int dayPerson = 0;
|
|
|
+ if(totalPerson>0){
|
|
|
+ dayPerson = random.nextInt(0,totalPerson);
|
|
|
+ }
|
|
|
double avgPrice = 0d;
|
|
|
if (totalPrice > 0) {
|
|
|
if (totalOrder > 0) {
|