|
@@ -89,6 +89,8 @@ public class PmsProductServiceImpl implements PmsProductService {
|
|
throw new RuntimeException("没有绑定供应商无法新增!");
|
|
throw new RuntimeException("没有绑定供应商无法新增!");
|
|
}
|
|
}
|
|
productParam.setCompId(compId);
|
|
productParam.setCompId(compId);
|
|
|
|
+ productParam.setCreateId((long) CurrUserUtil.getUserId());
|
|
|
|
+ productParam.setCreateTime(new Date());
|
|
productMapper.insertSelective(product);
|
|
productMapper.insertSelective(product);
|
|
//根据促销类型设置价格:会员价格、阶梯价格、满减价格
|
|
//根据促销类型设置价格:会员价格、阶梯价格、满减价格
|
|
Long productId = product.getId();
|
|
Long productId = product.getId();
|
|
@@ -258,6 +260,7 @@ public class PmsProductServiceImpl implements PmsProductService {
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PmsProductExample productExample = new PmsProductExample();
|
|
PmsProductExample productExample = new PmsProductExample();
|
|
PmsProductExample.Criteria criteria = productExample.createCriteria();
|
|
PmsProductExample.Criteria criteria = productExample.createCriteria();
|
|
|
|
+ productExample.setOrderByClause("create_time desc");
|
|
criteria.andDeleteStatusEqualTo(0);
|
|
criteria.andDeleteStatusEqualTo(0);
|
|
if(!StringUtils.isEmpty(compId)){
|
|
if(!StringUtils.isEmpty(compId)){
|
|
criteria.andCompIdEqualTo(compId);
|
|
criteria.andCompIdEqualTo(compId);
|