|
@@ -144,13 +144,11 @@ public class PointServiceImpl extends ServiceImpl<MtPointMapper, MtPoint> implem
|
|
|
if (newAmount < 0) {
|
|
|
return;
|
|
|
}
|
|
|
- if (!mtUser.getMerchantId().equals(mtPoint.getMerchantId())) {
|
|
|
- throw new BusinessCheckException("没有操作权限");
|
|
|
- }
|
|
|
mtUser.setPoint(newAmount);
|
|
|
if (mtUser.getStoreId() != null) {
|
|
|
mtPoint.setStoreId(mtUser.getStoreId());
|
|
|
}
|
|
|
+ mtPoint.setMerchantId(mtUser.getMerchantId());
|
|
|
mtUserMapper.updateById(mtUser);
|
|
|
mtPointMapper.insert(mtPoint);
|
|
|
|