日期:2014-05-20 浏览次数:20693 次
public Cart getCartById(long cartId) {
try {
return this.cartMapper.get(cartId);
} catch (Exception e) {
return null;
}
}
public Cart getCartById(long cartId) {
if((Long)cartId==null){
return null;
}else {
try {
return this.cartMapper.get(cartId);
} catch (Exception e) {
return null;
}
}
}