📄 customerserviceimpl.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -