|
@@ -1,5 +1,6 @@
|
|
package com.fdkankan.extend.controller;
|
|
package com.fdkankan.extend.controller;
|
|
|
|
|
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
import com.fdkankan.extend.service.ITowerService;
|
|
import com.fdkankan.extend.service.ITowerService;
|
|
import com.fdkankan.web.response.ResultData;
|
|
import com.fdkankan.web.response.ResultData;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -8,6 +9,7 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
+import java.util.Arrays;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -19,10 +21,12 @@ public class TowerController {
|
|
private ITowerService towerService;
|
|
private ITowerService towerService;
|
|
|
|
|
|
@PostMapping("/packSceneData")
|
|
@PostMapping("/packSceneData")
|
|
- public ResultData packSceneData(Map<String, Object> param){
|
|
|
|
- Long companyId = (Long) param.get("companyId");
|
|
|
|
- List<String> nums = (List<String>)param.get("nums");
|
|
|
|
- towerService.packSceneData(companyId, nums);
|
|
|
|
|
|
+ public ResultData packSceneData(Long companyId, String nums){
|
|
|
|
+ List<String> numList = null;
|
|
|
|
+ if(StrUtil.isNotEmpty(nums)){
|
|
|
|
+ numList = Arrays.asList(nums.split(","));
|
|
|
|
+ }
|
|
|
|
+ towerService.packSceneData(companyId, numList);
|
|
return ResultData.ok();
|
|
return ResultData.ok();
|
|
}
|
|
}
|
|
|
|
|