/**
 * Description: CmCreditGoods业务实现类
 * Copyright:   Copyright (c)2015
 * Company:     江苏三六五网络股份有限公司
 *
 * @author: 江苏三六五网络股份有限公司
 * @version: 1.0
 * Create at:   2015-08-10 下午 17:06:09
 * <p/>
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2015-08-10   江苏三六五网络股份有限公司   1.0         Initial
 */
package com.house365.ws.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.house365.beans.entity.CmCreditGoodsEntity;
import com.house365.dao.system.interfaces.Dao;
import com.house365.service.system.impl.DefaultServiceImpl;
import com.house365.ws.beans.request.CmCreditGoodsRequest;
import com.house365.ws.dao.interfaces.ICmCreditGoodsDao;
import com.house365.ws.service.interfaces.ICmCreditGoodsService;

/**
 * CmCreditGoods业务实现类<br>
 *
 * @author 江苏三六五网络股份有限公司
 * @version 1.0, 2015-08-10
 * @see
 * @since 1.0
 */
@Service("cmCreditGoodsService")
public class CmCreditGoodsServiceImpl<T extends CmCreditGoodsEntity> extends DefaultServiceImpl<T> implements ICmCreditGoodsService<T> {
    /**
     * 自动注入的数据访问对象
     */
    @Autowired
    private ICmCreditGoodsDao<T> cmCreditGoodsDao;

    @Override
    protected Dao<T> getDao() {
        return cmCreditGoodsDao;
    }

    @SuppressWarnings("unchecked")
    @Override
    public Integer addCmCreditGoodsAndExchangeCode(CmCreditGoodsRequest request) {
        //return hmcCustomerInfoDao.queryCustomerListByHouseIdAndMobilePhone(houseId, mobilePhone);

        return null;
    }

    @Override
    public void updateSortList(){
        cmCreditGoodsDao.updateSortList();
        cmCreditGoodsDao.updatePromotionSort();
    }
}
