|
@@ -0,0 +1,47 @@
|
|
|
|
+package com.onemap.api.service.impl;
|
|
|
|
+
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
+import com.onemap.api.domain.CghjQxcgsbrwIoDto;
|
|
|
|
+import com.onemap.api.domain.AuthorizeDto;
|
|
|
|
+import com.onemap.api.domain.TSysOpenUser;
|
|
|
|
+import com.onemap.api.mapper.TSysOpenUserMapper;
|
|
|
|
+import com.onemap.api.service.ResultsService;
|
|
|
|
+import com.onemap.common.core.constant.SecurityConstants;
|
|
|
|
+import com.onemap.common.core.domain.R;
|
|
|
|
+import com.onemap.common.core.utils.StringUtils;
|
|
|
|
+import com.onemap.common.core.web.domain.RequestResult;
|
|
|
|
+import com.onemap.common.security.service.TokenService;
|
|
|
|
+import com.onemap.system.api.RemoteUserService;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
|
+
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
|
+import java.util.Map;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+@Service
|
|
|
|
+public class ResultsServiceImpl implements ResultsService {
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private TSysOpenUserMapper tSysOpenUserMapper;
|
|
|
|
+ @Autowired
|
|
|
|
+ private RemoteUserService remoteUserService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private TokenService tokenService;
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public RequestResult md5(CghjQxcgsbrwIoDto cghjQxcgsbrwIoDto, HttpServletRequest request) {
|
|
|
|
+ String appid = cghjQxcgsbrwIoDto.getAppid();
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if (cghjQxcgsbrwIoDto.getMd5() == null || cghjQxcgsbrwIoDto.getMd5().isEmpty()){
|
|
|
|
+ return RequestResult.error("文件MD5参数不能为空");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (cghjQxcgsbrwIoDto.getGhlx() == null || cghjQxcgsbrwIoDto.getGhlx().isEmpty()){
|
|
|
|
+ cghjQxcgsbrwIoDto.setGhlx("总体规划");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return RequestResult.success("");
|
|
|
|
+ }
|
|
|
|
+}
|