📄 productdaoimpl.java
字号:
package com.t53.crm4.basd.dao.impl;
import java.util.List;
import com.t53.crm4.basd.dao.IProductDao;
import com.t53.crm4.common.dao.impl.GenericDao;
import com.t53.crm4.common.entity.Product;
public class ProductDaoImpl extends GenericDao<Product,Long,ProductDaoImpl> implements IProductDao {
/**
* 根据参数查询产品
*/
public List<Product> findByPropertys(String[] param) {
String hql = "from Product p where p.prodName like " + param[0]
+ " and p.prodType like " + param[1] + "p.prodBatch like "
+ param[2];
return this.find(hql);
}
/**
* 查询所有产品
*/
public List<Product> findAll() {
return findAll();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -