|
@ -32,10 +32,12 @@ import com.epmet.commons.tools.validator.group.UpdateGroup; |
|
|
import com.epmet.dto.CustomerDTO; |
|
|
import com.epmet.dto.CustomerDTO; |
|
|
import com.epmet.dto.form.*; |
|
|
import com.epmet.dto.form.*; |
|
|
import com.epmet.dto.result.CustomerDetailResultDTO; |
|
|
import com.epmet.dto.result.CustomerDetailResultDTO; |
|
|
|
|
|
import com.epmet.dto.result.CustomerInfoResultDTO; |
|
|
import com.epmet.dto.result.GridCountResultDTO; |
|
|
import com.epmet.dto.result.GridCountResultDTO; |
|
|
import com.epmet.dto.result.ValidCustomerResultDTO; |
|
|
import com.epmet.dto.result.ValidCustomerResultDTO; |
|
|
import com.epmet.excel.CustomerExcel; |
|
|
import com.epmet.excel.CustomerExcel; |
|
|
import com.epmet.feign.GovOrgFeignClient; |
|
|
import com.epmet.feign.GovOrgFeignClient; |
|
|
|
|
|
import com.epmet.feign.GovOrgOpenFeignClient; |
|
|
import com.epmet.service.CustomerService; |
|
|
import com.epmet.service.CustomerService; |
|
|
import org.slf4j.Logger; |
|
|
import org.slf4j.Logger; |
|
|
import org.slf4j.LoggerFactory; |
|
|
import org.slf4j.LoggerFactory; |
|
@ -64,6 +66,8 @@ public class CustomerController { |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private GovOrgFeignClient govOrgFeignClient; |
|
|
private GovOrgFeignClient govOrgFeignClient; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private GovOrgOpenFeignClient govOrgOpenFeignClient; |
|
|
|
|
|
|
|
|
@GetMapping("page") |
|
|
@GetMapping("page") |
|
|
public Result<PageData<CustomerDTO>> page(@RequestParam Map<String, Object> params) { |
|
|
public Result<PageData<CustomerDTO>> page(@RequestParam Map<String, Object> params) { |
|
@ -267,4 +271,25 @@ public class CustomerController { |
|
|
return new Result<GridCountResultDTO>().ok(customerService.getGridCount(formDTO)); |
|
|
return new Result<GridCountResultDTO>().ok(customerService.getGridCount(formDTO)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Description 查询客户基本信息 |
|
|
|
|
|
* @param formDTO |
|
|
|
|
|
* @author zxc |
|
|
|
|
|
* @date 2020/8/14 9:08 上午 |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("getcustomer") |
|
|
|
|
|
public Result<CustomerInfoResultDTO> getCustomer(@RequestBody CustomerIdFormDTO formDTO){ |
|
|
|
|
|
ValidatorUtils.validateEntity(formDTO, CustomerIdFormDTO.Customer.class); |
|
|
|
|
|
return new Result<CustomerInfoResultDTO>().ok(customerService.getCustomer(formDTO)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("zxc") |
|
|
|
|
|
public void getZxc(){ |
|
|
|
|
|
CommonGridIdFormDTO commonGridId = new CommonGridIdFormDTO(); |
|
|
|
|
|
commonGridId.setGridId("111"); |
|
|
|
|
|
commonGridId.setUserId("111"); |
|
|
|
|
|
Result<List<String>> gridStaffs = govOrgOpenFeignClient.getGridStaffs(commonGridId); |
|
|
|
|
|
System.out.println(gridStaffs); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|