|  |  | 
 |  |  |         return baseDao.getNo(pid, productType); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public List<XhProductModel> getProductList() { | 
 |  |  |         List<XhProductModel> ProductList = baseDao.getProductList(); | 
 |  |  |     public List<XhProductModel> getProductList(Long shipId, Integer type) { | 
 |  |  |         List<XhProductModel> ProductList = baseDao.getProductList(shipId,type); | 
 |  |  |         return TreeUtils.build(ProductList); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |             writeList(dto.getChildren(), List); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |     public void refreshCache() { | 
 |  |  |         List<XhProductModel> productList = baseDao.getProductListAll(); | 
 |  |  |         Map<Long, XhProductModel> imgMap = new HashMap<>(); | 
 |  |  |         for (XhProductModel product : productList) { | 
 |  |  |             imgMap.put(product.getId(), product); | 
 |  |  |         } | 
 |  |  |         CacheUtils.put("sysImgCache", "sysImgCache", imgMap); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public void getImg(HttpServletResponse response, Long id) { | 
 |  |  |         Map<Long, XhProductModel> imgMap = new HashMap<>(); | 
 |  |  |         imgMap = (Map<Long, XhProductModel>) CacheUtils.get("sysImgCache","sysImgCache"); | 
 |  |  |         XhProductModel product = imgMap.get(id); | 
 |  |  |         sysPictureBaseService.getSvgImage(response,product.getOperatImg()); | 
 |  |  |     } | 
 |  |  | } |