Commit 8008890a by 吕明尚

修改优惠卷配置

parent 76759203
......@@ -141,6 +141,8 @@ public class SCouponServiceImpl extends ServiceImpl<SCouponMapper, SCoupon> impl
LambdaQueryWrapper<SCoupon> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(SCoupon::getTiktokSkuId, sCoupon.getTiktokSkuId());
sCouponList = sCouponMapper.selectOne(wrapper);
} else {
sCouponList = sCouponMapper.selectById(sCoupon.getId());
}
if (ObjectUtils.isEmpty(sCouponList) || sCoupon.getId().equals(sCouponList.getId())) {
return sCouponMapper.updateSCoupon(sCoupon);
......
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