|  | @ -6,6 +6,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
 | 
	
		
			
				|  |  | import com.yihu.jw.base.dao.a2dao.MediicineDeviceDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.base.dao.a2dao.MediicineDeviceUserDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.base.dao.a2dao.MediicineUserDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.base.dao.equipment.WlyyUserAreaDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.base.dao.role.RoleDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.base.dao.user.UserDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.base.util.ConstantUtils;
 | 
	
	
		
			
				|  | @ -15,6 +16,7 @@ import com.yihu.jw.entity.a1entity.Mediicinedevice;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.a1entity.Mediicineuser;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.role.RoleDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.user.UserDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.equipment.WlyyUserAreaDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.utils.hibernate.HibenateUtils;
 | 
	
		
			
				|  |  | import com.yihu.mysql.query.BaseJpaService;
 | 
	
		
			
				|  |  | import org.springframework.beans.factory.annotation.Autowired;
 | 
	
	
		
			
				|  | @ -53,6 +55,9 @@ public class MedicineUserService extends BaseJpaService<Mediicineuser, Mediicine
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private HibenateUtils hibenateUtils;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private WlyyUserAreaDao userAreaDao;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 分页查询补货员信息
 | 
	
	
		
			
				|  | @ -161,7 +166,7 @@ public class MedicineUserService extends BaseJpaService<Mediicineuser, Mediicine
 | 
	
		
			
				|  |  |                 "\tAND b.enabled = 1\n" +
 | 
	
		
			
				|  |  |                 "\tAND b.locked = 0\n";
 | 
	
		
			
				|  |  |         if (!StringUtils.isEmpty(content)){
 | 
	
		
			
				|  |  |             conditionSql += "\tAND CONCAT(IFNULL(b.`mobile`,''),IFNULL(b.`name`,'')) like '%"+ content +"%'";
 | 
	
		
			
				|  |  |             conditionSql += "\tAND CONCAT(IFNULL(b.mobile,''),IFNULL(b.name,'')) like '%"+ content +"%'";
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         sql = sql + conditionSql;
 | 
	
		
			
				|  |  | 
 | 
	
	
		
			
				|  | @ -176,6 +181,8 @@ public class MedicineUserService extends BaseJpaService<Mediicineuser, Mediicine
 | 
	
		
			
				|  |  |                     "  1=1 and t.del = 1 and t.user_id = '" + stringObjectMap.get("id").toString() + "'";
 | 
	
		
			
				|  |  |             stringObjectMap.put("allocatedDevice", jdbcTemplate.queryForObject(countSql, Integer.class));
 | 
	
		
			
				|  |  |             stringObjectMap.put("deviceQty", deviceDao.countAll());
 | 
	
		
			
				|  |  |             List<WlyyUserAreaDO> areaDOList =userAreaDao.findAllByUserId(stringObjectMap.get("id").toString());
 | 
	
		
			
				|  |  |             stringObjectMap.put("areaList",areaDOList);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         String countSql = " select " +
 | 
	
		
			
				|  |  |                 "     COUNT(DISTINCT (b.id)) as count " +
 |