类 ProductAttrValueServiceImpl

java.lang.Object
com.walker.jdbc.service.BaseServiceImpl
com.ishop.merchant.service.ProductAttrValueServiceImpl
所有已实现的接口:
com.walker.jdbc.BaseDao, com.walker.jdbc.service.BaseService

@Service public class ProductAttrValueServiceImpl extends com.walker.jdbc.service.BaseServiceImpl
  • 嵌套类概要

    从接口继承的嵌套类/接口 com.walker.jdbc.BaseDao

    com.walker.jdbc.BaseDao.RowExecution<T extends Object>
  • 字段概要

    从类继承的字段 com.walker.jdbc.service.BaseServiceImpl

    dao, log
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    execDeleteByProductIdAndType(long productId, int type)
    删除已有规格属性值
    int
    execOperateStock(Integer id, Integer num, String operationType, Integer type, Integer version)
    添加(退货)/扣减库存
    根据id、类型查询。
    queryProductAttrValueList(int type, long productId)
    获取商品参数规格值集合。

    从类继承的方法 com.walker.jdbc.service.BaseServiceImpl

    delete, delete, delete, delete, execBatchUpdate, execCall, execCall, execute, execute, execute, execute, get, get, get, get, get, get, get, get, get, getDao, getMaxOrder, insert, insert, insertBatch, queryForInt, queryForInt, queryForObject, queryForObject, queryListObjectWhereIn, save, save, saveOrder, select, select, select, select, select, select, select, select, select, select, selectAll, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, selectSplit, setDao, sqlGeneralQueryPager, sqlGeneralQueryPager, sqlGeneralQueryPager, sqlListObjectWhereIn, sqlMathQuery, sqlQuery, sqlQuery, sqlQueryListMap, update, update, update, update, update, update, updateBatch

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • ProductAttrValueServiceImpl

      public ProductAttrValueServiceImpl()
  • 方法详细资料

    • execDeleteByProductIdAndType

      public void execDeleteByProductIdAndType(long productId, int type)
      删除已有规格属性值
      参数:
      productId - 商品ID
      type - 规格类型
    • execOperateStock

      public int execOperateStock(Integer id, Integer num, String operationType, Integer type, Integer version)
      添加(退货)/扣减库存
      参数:
      id - 商品属性规格id
      num - 数量
      operationType - 类型:add—添加,sub—扣减,refund-退款添加库存
      type - 活动类型 0=商品
      返回:
      Boolean
    • queryByIdAndProductIdAndType

      public EbProductAttrValue queryByIdAndProductIdAndType(Integer id, Long productId, Integer type)
      根据id、类型查询。目前看只需要ID就行,其他两个参数无用!
      参数:
      id -
      productId -
      type -
      返回:
    • queryProductAttrValueList

      public List<EbProductAttrValue> queryProductAttrValueList(int type, long productId)
      获取商品参数规格值集合。
      参数:
      type - 类型:参加常量 ProductConstants
      productId -
      返回: