⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 returnproductmanagerimpl.java

📁 基于java的物资管理系统非常好用啊相当简单
💻 JAVA
字号:
package com.university.goodsmanager.biz.service.impl;import java.util.ArrayList;import java.util.List;import com.university.goodsmanager.biz.entity.ReturnProduct;import com.university.goodsmanager.biz.service.interf.ReturnProductManager;import com.university.goodsmanager.dao.hbndao.HbnDao;import com.university.goodsmanager.dao.hbndao.HbnDaoImpl;public class ReturnProductManagerImpl implements ReturnProductManager {	public boolean add(ReturnProduct rp) {		HbnDao hbndao=new HbnDaoImpl();		boolean flag=false;		try {			hbndao.save(rp);			flag=true;		} catch (Exception e) {			flag=false;			e.printStackTrace();		}		return flag;	}	public boolean remove(ReturnProduct rp) {		boolean flag=true;		HbnDao hbndao=new HbnDaoImpl();		try {			hbndao.delete(rp);		} catch (Exception e) {			flag=false;		}		return flag;	}	public boolean modify(ReturnProduct rp) {		boolean flag=true;		HbnDao hbndao=new HbnDaoImpl();		try {			hbndao.update(rp);		} catch (Exception e) {			flag=false;		}		return flag;	}	public List query() {		List list=new ArrayList();		HbnDao hbndao=new HbnDaoImpl();		try {			list=hbndao.queryReturnProduct();		} catch (Exception e) {			e.printStackTrace();		}		return list;	}	public ReturnProduct query(ReturnProduct rp) {		int return_id=rp.getReturn_ID();		HbnDao hbndao=new HbnDaoImpl();		try {			rp=hbndao.queryReturnProduct(return_id);					} catch (Exception e) {					}		return rp;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -