|
@ -1,16 +1,17 @@ |
|
|
package com.epmet.controller; |
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.dto.form.CoverageCategoryQueryFormDTO; |
|
|
import com.epmet.dto.form.CoverageCategoryQueryFormDTO; |
|
|
import com.epmet.dto.result.CoverageCategoryResultDTO; |
|
|
import com.epmet.dto.result.CoverageCategoryResultDTO; |
|
|
|
|
|
import com.epmet.dto.result.IcCoverageCategoryDictListResultDTO; |
|
|
import com.epmet.service.CoverageService; |
|
|
import com.epmet.service.CoverageService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 5大图层controller |
|
|
* 5大图层controller |
|
@ -34,4 +35,9 @@ public class CoverageController { |
|
|
return new Result<List<CoverageCategoryResultDTO>>().ok(categories); |
|
|
return new Result<List<CoverageCategoryResultDTO>>().ok(categories); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("dict-select-list/{placeType}") |
|
|
|
|
|
public Result<List<IcCoverageCategoryDictListResultDTO>> dictMap(@LoginUser TokenDto tokenDto, @PathVariable("placeType") String placeType) { |
|
|
|
|
|
return new Result<List<IcCoverageCategoryDictListResultDTO>>().ok(coverageService.dictMap(tokenDto.getCustomerId(), placeType)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |