Commit 4b07c9ac by 杨林龙

优化不在店统计逻辑

1 parent 0e1ae6e5
...@@ -11,7 +11,6 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -11,7 +11,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet;
import java.util.List; import java.util.List;
/** /**
...@@ -314,20 +313,9 @@ public class ElectricInStoreDriveService { ...@@ -314,20 +313,9 @@ public class ElectricInStoreDriveService {
*/ */
private Integer getInStoreNum(ElectricInStoreDrive inStoreDrive) { private Integer getInStoreNum(ElectricInStoreDrive inStoreDrive) {
int num = 0; int num = 0;
if (inStoreDrive.getGpsState() == 2) { if (inStoreDrive.getGpsState() == 2 || inStoreDrive.getGpsState() == 3) {
num = 1; num = 1;
} }
if (inStoreDrive.getPositionState() == 0) {
int hours = inStoreDrive.getGpsTime().getHours();
if (hours > 9 && hours < 17) {
num = 1;
}
} else if (inStoreDrive.getPositionState() == 1) {
int hours = inStoreDrive.getGpsTime().getHours();
if (hours > 10 && hours < 16) {
num = 1;
}
}
return num; return num;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!