|
|
|
@@ -322,8 +322,8 @@ public class WxCouponPasswordServiceImpl implements WxCouponPasswordService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void setPrice(WxCouponPassword wxCouponPassword) { |
|
|
|
wxCouponPasswordMapper.setPrice(wxCouponPassword); |
|
|
|
public Integer setPrice(WxCouponPassword wxCouponPassword) { |
|
|
|
return wxCouponPasswordMapper.setPrice(wxCouponPassword); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@@ -365,7 +365,12 @@ public class WxCouponPasswordServiceImpl implements WxCouponPasswordService { |
|
|
|
password.updateTenantInfo(user); |
|
|
|
password.setId(Long.parseLong(template.getCouponPasswordId())); |
|
|
|
password.setPrice(new BigDecimal(template.getPrice()).multiply(new BigDecimal(100)).intValue()); |
|
|
|
setPrice(password); |
|
|
|
Integer count = setPrice(password); |
|
|
|
if (null != count && count > 0 ) { |
|
|
|
}else { |
|
|
|
stringRedisTemplate.opsForHash().increment(importKey, "processCount", 1); |
|
|
|
return ; |
|
|
|
} |
|
|
|
}catch(Exception e) { |
|
|
|
stringRedisTemplate.opsForHash().increment(importKey, "processCount", 1); |
|
|
|
logger.error("import price error.",e); |
|
|
|
|