|
@@ -133,12 +133,15 @@ public class RestaurantServiceImpl implements RestaurantService {
|
|
|
DecimalFormat decimalFormat = new DecimalFormat("#.0");
|
|
|
compare = Double.parseDouble(decimalFormat.format(compare));
|
|
|
|
|
|
- Integer flow = random.nextInt(85,100);
|
|
|
- Integer eat = random.nextInt(84,flow);
|
|
|
+ Integer flow = 0;
|
|
|
+ if(totalOrder>0){
|
|
|
+ flow = random.nextInt(85,95);
|
|
|
+ }
|
|
|
+
|
|
|
objects.get(0).put("value",dayPerson);
|
|
|
objects.get(0).put("compare",compare);
|
|
|
|
|
|
- objects.get(1).put("value",eat+"/"+flow);
|
|
|
+ objects.get(1).put("value",flow);
|
|
|
objects.get(1).put("compare",compare);
|
|
|
|
|
|
objects.get(2).put("value",totalPrice);
|