lyhzzz 1 rok pred
rodič
commit
78ae07d128

+ 5 - 3
src/main/java/com/fdkankan/manage_jp/controller/ProjectSceneController.java

@@ -49,16 +49,18 @@ public class ProjectSceneController extends BaseController{
         param.setCompanyId(getUser().getCompanyId());
         String jsonString = JSONObject.toJSONString(param);
         String ciphertext = RsaUtils.encipher(jsonString, RsaUtils.publicKey);
-        return Result.success("/manage_jp/api/getSceneMap/"+ URLEncoder.encode(ciphertext));
+        return Result.success("/service/manage_jp/projectScene/getSceneMap/"+ URLEncoder.encode(ciphertext));
     }
 
-    @GetMapping("/getSceneMap/{ciphertext}")
-    public Result getSceneMap(@PathVariable String ciphertext){
+    @GetMapping("/getSceneMap/{ciphertext}/{type}")
+    public Result getSceneMap(@PathVariable String ciphertext,
+                              @PathVariable Integer type){
         if (StringUtils.isBlank(ciphertext)){
             throw new BusinessException(ResultCode.PARAM_ERROR);
         }
         String deTxt = RsaUtils.decipher(ciphertext, RsaUtils.privateKey);
         SceneGpsParam param = JSONObject.parseObject(deTxt, SceneGpsParam.class);
+        param.setType(type);
         return Result.success(projectSceneGpsService.allSceneGps(param));
     }