|
|
@ -9,18 +9,19 @@ import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
import com.epmet.commons.tools.security.user.LoginUserUtil; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.dataaggre.dto.govorg.CustomerAgencyDTO; |
|
|
|
import com.epmet.dataaggre.dto.govorg.CustomerGridDTO; |
|
|
|
import com.epmet.dataaggre.dto.govorg.form.*; |
|
|
|
import com.epmet.dataaggre.dto.govorg.result.*; |
|
|
|
import com.epmet.dataaggre.entity.govorg.CustomerAgencyEntity; |
|
|
|
import com.epmet.dataaggre.entity.govorg.CustomerGridEntity; |
|
|
|
import com.epmet.dataaggre.enums.GridMemberDataAnalysisEnums; |
|
|
|
import com.epmet.dataaggre.service.AggreGridService; |
|
|
|
import com.epmet.dataaggre.service.govorg.GovOrgService; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
@ -178,4 +179,26 @@ public class GovOrgController { |
|
|
|
return new Result<List<OrgTreeResultDTO>>().ok(govOrgService.getAgencyTree(tokenDto, formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 查询组织信息 |
|
|
|
* @param agencyId |
|
|
|
* @author zxc |
|
|
|
* @date 2021/11/5 2:54 下午 |
|
|
|
*/ |
|
|
|
@PostMapping("agency") |
|
|
|
public Result<CustomerAgencyEntity> getAgencyInfo(@RequestParam("agencyId")String agencyId){ |
|
|
|
return new Result<CustomerAgencyEntity>().ok(govOrgService.getAgencyInfo(agencyId)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 查询网格信息 |
|
|
|
* @param gridId |
|
|
|
* @author zxc |
|
|
|
* @date 2021/11/5 2:54 下午 |
|
|
|
*/ |
|
|
|
@PostMapping("grid") |
|
|
|
public Result<CustomerGridEntity> getGridInfo(@RequestParam("gridId")String gridId){ |
|
|
|
return new Result<CustomerGridEntity>().ok(govOrgService.getGridInfo(gridId)); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|