/**
* @Title: ShoppingServiceImpl.java
* @Package org.service.impl
* @Description: TODO该方法的主要作用:
* @author A18ccms A18ccms_gmail_com
* @date 2017-9-30 下午10:17:54
* @version V1.0
*/
package org.service.impl;
import org.dao.IShoppingDao;
import org.dao.impl.ShoppingDaoImpl;
import org.entity.Shopping;
import org.service.IShoppingService;
/**
*
* 项目名称:test_fuwenben
* 类名称:ShoppingServiceImpl
* 类描述: 实现类
* 创建人:Mu Xiongxiong
* 创建时间:2017-9-30 下午10:17:54
* 修改人:Mu Xiongxiong
* 修改时间:2017-9-30 下午10:17:54
* 修改备注:
* @version
*
*/
public class ShoppingServiceImpl implements IShoppingService {
/**
* @Fields shoppingService :该字段的意思:初始化shoppingDao
*/
private IShoppingDao shoppingDao = new ShoppingDaoImpl();
/**
* (非 Javadoc)
* <p>Description(描述):添加商品 </p>
* <p>Title: save</p>
* @param entity
* @return
* @see org.dao.IBaseDaoUtil#save(java.lang.Object)
*/
@Override
public int save(Shopping entity) {
return shoppingDao.save(entity);
}
}