|
@@ -10,7 +10,9 @@ import io.swagger.annotations.*;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
+import sun.util.resources.ga.LocaleNames_ga;
|
|
|
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
@@ -81,6 +83,25 @@ public class AssetTenantUserController {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "根据区域id获取租户下拉选", notes = "根据区域id获取租户下拉选")
|
|
|
+ @ApiImplicitParam(name = "areaId", value = "区域id", required = true, dataType = "Long", paramType = "path")
|
|
|
+ @GetMapping("/getAssetTenantSelectData/{areaId}")
|
|
|
+ public ResponseEx<Object> getAssetTenantSelectData(@PathVariable Long areaId) {
|
|
|
+ List<Map<String,Object>> tenantData = assetTenantUserService.getAssetTenantSelectData(areaId);
|
|
|
+ return ResponseEx.createSuccess(tenantData);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "根据区域id 和租户id 获取资产下拉选", notes = "根据区域id 和租户id 获取资产下拉选")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "areaId", value = "区域id", required = false, dataType = "Long", paramType = "quary"),
|
|
|
+ @ApiImplicitParam(name = "snycId", value = "同步租户id", required = true, dataType = "Long", paramType = "quary")
|
|
|
+ })
|
|
|
+ @GetMapping("/getAssetSelectData")
|
|
|
+ public ResponseEx<Object> getAssetSelectData(@RequestParam(required = false) Long areaId,@RequestParam(required = true) Long snycId) {
|
|
|
+ List<Map<String,Object>> assetData = assetTenantUserService.getAssetSelectData(areaId,snycId);
|
|
|
+ return ResponseEx.createSuccess(assetData);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|