| | |
| | | import com.stylefeng.guns.modular.system.dao.PhoneMapper; |
| | | import com.stylefeng.guns.modular.system.model.Company; |
| | | import com.stylefeng.guns.modular.system.model.Phone; |
| | | import com.stylefeng.guns.modular.system.service.ICompanyCityService; |
| | | import com.stylefeng.guns.modular.system.service.ICompanyService; |
| | | import com.stylefeng.guns.modular.system.service.IPhoneService; |
| | | import com.stylefeng.guns.modular.system.util.GoogleMap.AddressComponentsVo; |
| | |
| | | |
| | | @Resource |
| | | private PhoneMapper phoneMapper; |
| | | |
| | | @Resource |
| | | private CompanyMapper companyMapper; |
| | | |
| | | @Autowired |
| | | private ICompanyCityService companyCityService; |
| | | |
| | | /** |
| | | * 获取所有系统电话 |
| | |
| | | //平台电话 |
| | | Phone query = phoneMapper.query(2, 1, null, null, null); |
| | | map.put("platform", null != query ? query.getPhone() : ""); |
| | | |
| | | List<Company> companies = companyMapper.queryList(city, null); |
| | | if(companies.size() > 0){ |
| | | Integer id = companies.get(0).getId(); |
| | | |
| | | Company companies = companyCityService.query(city); |
| | | if(null != companies){ |
| | | Integer id = companies.getId(); |
| | | Phone phone = this.selectOne(new EntityWrapper<Phone>().eq("type", 2).eq("companyId", id)); |
| | | map.put("company", phone.getPhone()); |
| | | phone = this.selectOne(new EntityWrapper<Phone>().eq("type", 3).eq("companyId", id)); |