|
@@ -11,7 +11,6 @@ import com.gis.common.base.exception.BaseRuntimeException;
|
|
|
import com.gis.common.constant.ConfigConstant;
|
|
|
import com.gis.common.util.*;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.apache.commons.lang3.RandomUtils;
|
|
|
import org.springframework.amqp.rabbit.core.RabbitTemplate;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -44,7 +43,7 @@ public class ProduceServiceImpl implements ProducerService {
|
|
|
FodderMapper fodderMapper;
|
|
|
|
|
|
@Override
|
|
|
- public Result upload(MultipartFile file) throws IOException {
|
|
|
+ public Result upload(MultipartFile file, String tempId) throws IOException {
|
|
|
Long userId = JwtUtil.getUserId(request.getHeader("token"));
|
|
|
long start = System.currentTimeMillis();
|
|
|
// 全景图只支持jpg图片格式
|
|
@@ -71,6 +70,7 @@ public class ProduceServiceImpl implements ProducerService {
|
|
|
entity.setSceneCode(sceneCode);
|
|
|
entity.setCreatorId(userId);
|
|
|
entity.setFilePath(basePath);
|
|
|
+ entity.setTempId(tempId);
|
|
|
|
|
|
|
|
|
fodderMapper.insert(entity);
|