|
@@ -20,6 +20,8 @@ import com.fdkankan.contro.vo.SceneParam;
|
|
|
import com.fdkankan.contro.vo.SceneUploadCountParamVO;
|
|
import com.fdkankan.contro.vo.SceneUploadCountParamVO;
|
|
|
import com.fdkankan.fyun.config.FYunFileConfig;
|
|
import com.fdkankan.fyun.config.FYunFileConfig;
|
|
|
import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
|
|
|
+import com.fdkankan.model.constants.ConstantFilePath;
|
|
|
|
|
+import com.fdkankan.model.utils.SceneUtil;
|
|
|
import com.fdkankan.web.response.ResultData;
|
|
import com.fdkankan.web.response.ResultData;
|
|
|
import com.fdkankan.web.util.RSAEncrypt;
|
|
import com.fdkankan.web.util.RSAEncrypt;
|
|
|
import lombok.extern.log4j.Log4j2;
|
|
import lombok.extern.log4j.Log4j2;
|
|
@@ -240,4 +242,18 @@ public class SceneFileController{
|
|
|
return ResultData.ok(collect);
|
|
return ResultData.ok(collect);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @GetMapping("/zxgd/dowloadOirg/{uuid}")
|
|
|
|
|
+ public ResultData dowloadOirg4Zxgd(@PathVariable(value = "uuid") String uuid) throws Exception{
|
|
|
|
|
+ LambdaQueryWrapper<SceneZxgd> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
+ wrapper.eq(SceneZxgd::getUnicode, uuid);
|
|
|
|
|
+ SceneZxgd one = sceneZxgdService.getOne(wrapper);
|
|
|
|
|
+ if(one == null){
|
|
|
|
|
+ throw new BusinessException(ErrorCode.FAILURE_CODE_5038);
|
|
|
|
|
+ }
|
|
|
|
|
+ String dataSource = ConstantFilePath.BUILD_MODEL_PATH + one.getUnicode().split("_")[0] + "/" + one.getFileId() + "/" + one.getUnicode();
|
|
|
|
|
+ String homeKey = SceneUtil.getHomePath(dataSource);
|
|
|
|
|
+ fYunFileService.downloadFileByCommand(dataSource, homeKey);
|
|
|
|
|
+ return ResultData.ok();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|