📄 shopcarlogic.java
字号:
package omega.logic;
import java.util.List;
import omega.domain.Product;
import omega.domain.Shopcart;
import omega.persistence.iface.*;
import omega.persistence.sqlmapdao.ShopCarSqlMapDao;
public class ShopCarLogic {
ShopCarDao sd=new ShopCarSqlMapDao();
public List getCarbyName(String username) throws Exception{
return sd.getShopCar(username);
}
public void Insert(Shopcart shopcar) throws Exception{
sd.insertCar(shopcar);
}
public void update(Shopcart shopcar) throws Exception{
sd.updateCar(shopcar);
}
public void updatebyorderid(Shopcart shopcar)throws Exception{
sd.updateCarByOrderid(shopcar);
}
public void Del(int id) throws Exception{
sd.delCar(id);
}
public void DelByName(String username) throws Exception{
sd.delCarbyusername(username);
}
public Shopcart getMaxId() throws Exception {
return sd.getMaxId();
}
public int getCount() throws Exception {
return sd.getCount();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -