customerserviceimpl.java
来自「该程序能够准确的记录互联网用户上网所用的流量」· Java 代码 · 共 51 行
JAVA
51 行
package com.briup.customer.service.impl;import java.util.Set;import com.briup.common.dao.pojo.Product;import com.briup.common.dao.pojo.User;import com.briup.common.exception.CommonException;import com.briup.customer.dao.ICustomerDao;import com.briup.customer.service.ICustomerService;public class CustomerServiceImpl implements ICustomerService{ private ICustomerDao customerDao; public void setCustomerDao(ICustomerDao customerDao){ this.customerDao=customerDao; } // 通过品牌名称查询品牌信息 public Product getProductInfo(String name) throws Exception { // TODO Auto-generated method stub try { return customerDao.getProductInfo(name); } catch (CommonException e) { e.printStackTrace(); throw new CommonException(e.getMessage()); } } // 根据品牌名称查找品牌信息 public Product getProductByName(String name) throws Exception { try{ Product product = customerDao.findProductByName(name); return product; }catch(Exception e){ e.printStackTrace(); return null; } } public Set getProduct(User user) throws Exception { // TODO Auto-generated method stub return null; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?