From fcd45222f5577403ae7b23c20323fb2cce75a553 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 05 三月 2019 10:08:21 +0800 Subject: [PATCH] 邀请判断修改 --- fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java index 5265f49..5149f4e 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java @@ -1065,9 +1065,11 @@ for (UserSystemCoupon userSystemCoupon: list) { // 婵�娲� - userSystemCoupon.setStateActivated(1); - userSystemCoupon.setUpdateTime(new Date()); - userSystemCouponMapper.updateByPrimaryKeySelective(userSystemCoupon); + UserSystemCoupon update=new UserSystemCoupon(); + update.setId(userSystemCoupon.getId()); + update.setStateActivated(1); + update.setUpdateTime(new Date()); + userSystemCouponMapper.updateByPrimaryKeySelective(update); Integer state = userSystemCoupon.getState(); if (UserSystemCoupon.STATE_OVERDUE == state) { -- Gitblit v1.8.0