Commit 7ce60eed by zhiwj

bug

parent c82a802c
......@@ -65,7 +65,7 @@ public class SmsRecordApiServiceImpl implements SmsRecordApiService {
Integer unitFee = accountStandardService.queryUnitFee(enterpriseId, AccountStandardEnum.SMS.getCode());
double needFee = (double) (missCount * unitFee) / 1000;
if (needFee > accountBalance) {
if (needFee - accountBalance > 5000d) {
logger.info("enterpriseId:{}, 短信套餐包条数:{}, 余额:{}, 发送条数:{}, 不能发送", enterpriseId, smsPackageCount, accountBalance, sendCount);
return EnterpriseServiceResponse.failure(ErrorCode.OPERATION_FAILED.getCode(), "余额不足, 不能发送");
} else {
......
......@@ -392,7 +392,7 @@
<if test="payType != null ">
and pay_type = #{payType}
</if>
<if test="appCode != null ">
<if test="appCode != null and appCode != '' ">
and app_code = #{appCode}
</if>
<if test="smsContent != null and smsContent != '' ">
......
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