📄 buyordermanagerimpl.java
字号:
package com.university.goodsmanager.biz.service.impl;import java.util.ArrayList;import java.util.List;import com.university.goodsmanager.biz.entity.BuyOrder;import com.university.goodsmanager.biz.service.interf.*;import com.university.goodsmanager.dao.hbndao.HbnDao;import com.university.goodsmanager.dao.hbndao.HbnDaoImpl;public class BuyOrderManagerImpl implements BuyOrderManager { public boolean add(BuyOrder buyorder, int employee_id) { HbnDao hbndao=new HbnDaoImpl(); boolean flag=false; try { hbndao.save(buyorder,employee_id); flag=true; } catch (Exception e) { e.printStackTrace(); } return flag; } public boolean remove(BuyOrder buyorder, int employee_id) { boolean flag=true; HbnDao hbndao=new HbnDaoImpl(); try { hbndao.delete(buyorder,employee_id); } catch (Exception e) { e.printStackTrace(); flag=false; } return flag; } public boolean modify(BuyOrder buyorder) { boolean flag=true; HbnDao hbndao=new HbnDaoImpl(); try { hbndao.update(buyorder); } catch (Exception e) { flag=false; } return flag; } public List query() { List list=new ArrayList(); HbnDao hbndao=new HbnDaoImpl(); try { list=hbndao.queryBuyOrder(); } catch (Exception e) { e.printStackTrace(); } return list; } public BuyOrder query(BuyOrder buyorder) { int buyorder_id=buyorder.getBuyOrder_ID(); HbnDao hbndao=new HbnDaoImpl(); try { buyorder=hbndao.queryBuyOrder(buyorder_id); } catch (Exception e) { } return buyorder; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -