|
|
|
@@ -32,6 +32,7 @@ import javax.servlet.http.HttpServletRequest; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
import java.lang.reflect.InvocationTargetException; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.HashMap; |
|
|
|
@@ -519,8 +520,7 @@ public class WxCardInfoServiceImpl implements WxCardInfoService { |
|
|
|
logger.error("card spend insert error"); |
|
|
|
throw new MallinkException(ErrorCode.DB_FAIL.getCode(), "card spend 插入出错!"); |
|
|
|
} |
|
|
|
|
|
|
|
String remark = user.getUsername() + "给实体卡卡号[" + wxCardInfo.getId() + "]" + "充值,金额:" + cardInfo.getAmount()/100 + "元"; |
|
|
|
String remark = user.getUsername() + "给实体卡卡号[" + wxCardInfo.getId() + "]" + "充值,金额:" + new BigDecimal(cardInfo.getAmount()).divide(new BigDecimal(100)) + "元"; |
|
|
|
insertWxCardDailyLogInfo(user, wxCardInfo, wxCoupon,EnumOperateLogType.RECHARGE.getCode(),remark, cardInfo.getAmount()); |
|
|
|
|
|
|
|
if(record.getCardBeforeAmount().equals(0)){ |
|
|
|
|