|
@@ -7,6 +7,7 @@ import com.songhua.common.utils.DateUtils;
|
|
|
import com.songhua.common.utils.uuid.IdUtils;
|
|
|
import com.songhua.system.domain.BasicCruiseShip;
|
|
|
import com.songhua.system.mapper.BasicCruiseShipMapper;
|
|
|
+import org.apache.commons.lang3.RandomUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.songhua.system.mapper.CruiseShipMappingMapper;
|
|
@@ -99,7 +100,7 @@ public class CruiseShipMappingServiceImpl implements ICruiseShipMappingService
|
|
|
}
|
|
|
data.put("id", recentLocations.get(i).getId());
|
|
|
data.put("polylinePath",data1);
|
|
|
- data.put("color", color.get(i));
|
|
|
+ data.put("color", color.get(RandomUtils.nextInt(0, 9)));
|
|
|
data.put("shipName", recentLocations.get(i).getShipName());
|
|
|
data.put("shipType", recentLocations.get(i).getShipType());
|
|
|
data.put("lengthOverall", recentLocations.get(i).getLengthOverall());
|