类 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 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidexecDeleteByProductIdAndType(long productId, int type) 删除已有规格属性值int添加(退货)/扣减库存queryByIdAndProductIdAndType(Integer id, Long productId, Integer type) 根据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
-
构造器详细资料
-
ProductAttrValueServiceImpl
public ProductAttrValueServiceImpl()
-
-
方法详细资料
-
execDeleteByProductIdAndType
public void execDeleteByProductIdAndType(long productId, int type) 删除已有规格属性值- 参数:
productId- 商品IDtype- 规格类型
-
execOperateStock
public int execOperateStock(Integer id, Integer num, String operationType, Integer type, Integer version) 添加(退货)/扣减库存- 参数:
id- 商品属性规格idnum- 数量operationType- 类型:add—添加,sub—扣减,refund-退款添加库存type- 活动类型 0=商品- 返回:
- Boolean
-
queryByIdAndProductIdAndType
根据id、类型查询。目前看只需要ID就行,其他两个参数无用!- 参数:
id-productId-type-- 返回:
-
queryProductAttrValueList
获取商品参数规格值集合。- 参数:
type- 类型:参加常量 ProductConstantsproductId-- 返回:
-