| | |
| | | package com.stylefeng.guns.modular.system.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.stylefeng.guns.core.util.ToolUtil; |
| | | import com.stylefeng.guns.modular.system.dao.PhoneMapper; |
| | | import com.stylefeng.guns.modular.system.dao.SysReformistMapper; |
| | | import com.stylefeng.guns.modular.system.model.Driver; |
| | | import com.stylefeng.guns.modular.system.model.Phone; |
| | | import com.stylefeng.guns.modular.system.model.SysReformist; |
| | | import com.stylefeng.guns.modular.system.service.IPhoneService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @Resource |
| | | private PhoneMapper phoneMapper; |
| | | @Autowired |
| | | private SysReformistMapper sysReformistMapper; |
| | | |
| | | /** |
| | | * 获取所有系统电话 |
| | |
| | | query = phoneMapper.query(2, 2, province, null, null); |
| | | } |
| | | map.put("company", null != query ? query.getPhone() : ""); |
| | | try { |
| | | String wechat = ""; |
| | | List<SysReformist> companyId = sysReformistMapper.selectList(new EntityWrapper<SysReformist>().eq("companyId", query==null?1:query.getCompanyId())); |
| | | for (SysReformist sysReformist : companyId) { |
| | | wechat = sysReformist.getUserQrCode(); |
| | | } |
| | | map.put("wechatUrl",wechat); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | return map; |
| | | } |
| | | } |