|
|
@ -12,7 +12,6 @@ import com.epmet.evaluationindex.screen.dto.form.CompartmentFormDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.form.TreeByTypeFormDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.result.CompartmentResultDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.result.TreeResultDTO; |
|
|
|
import com.epmet.feign.EpmetCommonServiceOpenFeignClient; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
@ -30,8 +29,6 @@ public class AgencyController { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private AgencyService agencyService; |
|
|
|
@Autowired |
|
|
|
private EpmetCommonServiceOpenFeignClient commonServiceOpenFeignClient; |
|
|
|
/** |
|
|
|
* @param |
|
|
|
* @Description 1、组织机构树 只返回 is_display = '1'的 |
|
|
@ -95,6 +92,6 @@ public class AgencyController { |
|
|
|
@PostMapping("addstreetcomm") |
|
|
|
public Result<AddAreaCodeDictResultDTO> addStreetCommAreaCode(@RequestBody AddAreaCodeDictFormDTO formDTO){ |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return commonServiceOpenFeignClient.addStreetCommAreaCode(formDTO); |
|
|
|
return new Result<AddAreaCodeDictResultDTO>().ok(agencyService.addStreetCommAreaCode(formDTO)); |
|
|
|
} |
|
|
|
} |
|
|
|