wanghui пре 8 година
родитељ
комит
70fa8c3c67
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/main/java/com/goafanti/common/controller/PortalController.java

+ 1 - 1
src/main/java/com/goafanti/common/controller/PortalController.java

@@ -129,7 +129,7 @@ public class PortalController extends BaseController {
 		List<DemandListBo> boutiquedemand = demandService.selectDemandList(1);
 		List<DemandListBo> reboutiquedemand = new ArrayList<DemandListBo>();
 		if (boutiquedemand.size() >= 4) {
-			int index = (int) new Random().nextInt(boutiquedemand.size() - 3);
+			int index = new Random().nextInt(boutiquedemand.size() - 3);
 			reboutiquedemand.add(boutiquedemand.get(index));
 			reboutiquedemand.add(boutiquedemand.get(index + 1));
 			reboutiquedemand.add(boutiquedemand.get(index + 2));