|
@@ -21,6 +21,8 @@ import com.github.pagehelper.Page;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.data.domain.PageImpl;
|
|
|
import org.springframework.data.domain.PageRequest;
|
|
@@ -39,6 +41,8 @@ import java.util.*;
|
|
|
@AllArgsConstructor
|
|
|
public class GiveServiceImpl extends ServiceImpl<MtGiveMapper, MtGive> implements GiveService {
|
|
|
|
|
|
+ private static final Logger logger = LoggerFactory.getLogger(GiveServiceImpl.class);
|
|
|
+
|
|
|
private MtGiveMapper mtGiveMapper;
|
|
|
|
|
|
private MtUserCouponMapper mtUserCouponMapper;
|
|
@@ -288,7 +292,7 @@ public class GiveServiceImpl extends ServiceImpl<MtGiveMapper, MtGive> implement
|
|
|
params.put("totalMoney", money+"");
|
|
|
sendSmsService.sendSms(merchantId, "received-coupon", mobileList, params);
|
|
|
} catch (Exception e) {
|
|
|
- //empty
|
|
|
+ logger.error("核销卡券发送通知消息出错:", e.getMessage());
|
|
|
}
|
|
|
|
|
|
return new ResponseObject(200, "", giveInfo);
|