From 7b352c4ab440fe31246c9a13cee503729061c95c Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期三, 29 四月 2020 16:58:36 +0800
Subject: [PATCH] 发圈排列优化

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/dynamic/GoodsEvaluateServiceImpl.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/dynamic/GoodsEvaluateServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/dynamic/GoodsEvaluateServiceImpl.java
index 7b8d9ce..2b168ac 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/dynamic/GoodsEvaluateServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/dynamic/GoodsEvaluateServiceImpl.java
@@ -471,7 +471,7 @@
 				lineNum = 1;
 			} else if (totalImg == 3) {
 				lineNum = 3;
-			} else if (totalImg <= 4) {
+			} else if (totalImg == 2 || totalImg == 4) {
 				lineNum = 2;
 			} else {
 				lineNum = 3;
@@ -806,7 +806,7 @@
 				lineNum = 1;
 			} else if (totalImg == 3) {
 				lineNum = 3;
-			} else if (totalImg <= 4) {
+			} else if (totalImg == 2 || totalImg == 4) {
 				lineNum = 2;
 			} else {
 				lineNum = 3;
@@ -1112,7 +1112,7 @@
 				lineNum = 1;
 			} else if (totalImg == 3) {
 				lineNum = 3;
-			} else if (totalImg <= 4) {
+			} else if (totalImg == 2 || totalImg == 4) {
 				lineNum = 2;
 			} else {
 				lineNum = 3;
@@ -1302,7 +1302,7 @@
 				lineNum = 1;
 			} else if (totalImg == 3) {
 				lineNum = 3;
-			} else if (totalImg <= 4) {
+			} else if (totalImg == 2 || totalImg == 4) {
 				lineNum = 2;
 			} else {
 				lineNum = 3;
@@ -1933,7 +1933,7 @@
 				lineNum = 1;
 			} else if (imgList.size() == 3) {
 				lineNum = 3;
-			} else if (imgList.size() <= 4) {
+			} else if (imgList.size() == 2 || imgList.size() == 4) {
 				lineNum = 2;
 			} else {
 				lineNum = 3;
@@ -2161,7 +2161,7 @@
 					lineNum = 1;
 				} else if (imgList.size() == 3) {
 					lineNum = 3;
-				} else if (imgList.size() <= 4) {
+				} else if (imgList.size() == 2 || imgList.size() == 4) {
 					lineNum = 2;
 				} else {
 					lineNum = 3;

--
Gitblit v1.8.0