Commit ca837fbe by “Kongxiangkun”

增加积分商城相关代码

parent 74b32f80
......@@ -47,13 +47,6 @@ public class PointProductServiceImpl extends ServiceImpl<PointProductMapper, Poi
@Override
public Long deleteDetailById(PointProduct pointProduct) {
PointProduct tem = new PointProduct();
tem.setId(pointProduct.getId());
int count = pointProductMapper.selectCount(new EntityWrapper<PointProduct>(tem));
log.info("删除积分商品时判断是否存在:{}", count);
if(count<=0){
return -1L;
}
pointProduct.setState(0);
log.info("删除积分商品update入参:{}", JSONUtil.toJsonStr(pointProduct));
return (long) pointProductMapper.updateById(pointProduct);
......
......@@ -24,6 +24,7 @@ import com.yizhi.util.application.date.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Arrays;
import java.util.Date;
......@@ -92,6 +93,7 @@ public class PointServiceImpl extends ServiceImpl<PointMapper, Point> implements
}
@Transactional(rollbackFor = Exception.class)
public void addPoint(Long accountId, String type, String sourceId){
Long companyId = ContextHolder.get().getCompanyId();
Long orgId = ContextHolder.get().getOrgId();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment