代码同步

parent dd763388
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
from sys_coupon_detail scd from sys_coupon_detail scd
left join sys_user_coupon suc on suc.coupon_detail_id = scd.id left join sys_user_coupon suc on suc.coupon_detail_id = scd.id
left join sys_coupon sc on sc.id = scd.coupon_id left join sys_coupon sc on sc.id = scd.coupon_id
where sc.enterprise_id = #{coridc} and sc.is_delete=1 and sc.status=1 left join sys_enterprise se on se.id = sc.enterprise_id
where se.coridc = #{coridc} and sc.is_delete=1 and sc.status=1
and scd.is_delete=1 and scd.is_receive=1 and scd.is_delete=1 and scd.is_receive=1
and suc.user_id=#{usridc} and suc.is_use=0 and suc.user_id=#{usridc} and suc.is_use=0
</select> </select>
......
...@@ -229,7 +229,7 @@ public class CMBOneNetPayService { ...@@ -229,7 +229,7 @@ public class CMBOneNetPayService {
userCoupon.setCreateTime(LocalDateTime.now()); userCoupon.setCreateTime(LocalDateTime.now());
userCouponService.save(userCoupon); userCouponService.save(userCoupon);
couponDetail.setIsReceive(1); couponDetail.setIsReceive(1);
couponDetailService.save(couponDetail); couponDetailService.updateById(couponDetail);
return BaseResponse.ok("成功"); return BaseResponse.ok("成功");
} catch (Exception e) { } catch (Exception e) {
......
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