| | |
| | | @Autowired |
| | | private IOpenCityService openCityService; |
| | | |
| | | |
| | | /** |
| | | * 获取所有系统电话 |
| | | * @return |
| | |
| | | public Map<String, Object> queryCustomerPhone(String code) throws Exception { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | OpenCity openCity = openCityService.openCity1(code); |
| | | Phone phone = this.selectOne(new EntityWrapper<Phone>().eq("openCityId", openCity).eq("type", 2).eq("platform", 1)); |
| | | Phone phone = this.selectOne(new EntityWrapper<Phone>().eq("openCityId", openCity.getId()).eq("type", 2).eq("platform", 1)); |
| | | map.put("platform", null != phone ? phone.getPhone() : ""); |
| | | phone = this.selectOne(new EntityWrapper<Phone>().eq("openCityId", openCity).eq("type", 2).eq("platform", 2)); |
| | | phone = this.selectOne(new EntityWrapper<Phone>().eq("openCityId", openCity.getId()).eq("type", 2).eq("platform", 2)); |
| | | map.put("company", null != phone ? phone.getPhone() : ""); |
| | | return map; |
| | | } |