Browse Source

修改提示

wanghui 8 years ago
parent
commit
70fa8c3c67

+ 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));