|
@@ -132,13 +132,13 @@ public class TaOrgAccountServiceImpl extends ServiceImpl<TaOrgAccountMapper, TaO
|
132
|
132
|
return responseBean;
|
133
|
133
|
}
|
134
|
134
|
|
135
|
|
-// List<TaContact> taContacts = selectSmsContactUser();
|
136
|
|
-// if (CollectionUtils.isNotEmpty(taContacts)){
|
137
|
|
-// TaContact taContact = taContacts.get(0);
|
138
|
|
-// String[] smsParams = {"业务平台充值成功", taOrgOrder.getTradeNo() + taOrgAccount.getMiniappName()};
|
139
|
|
-// // 短信发送
|
140
|
|
-// sendSmsMessage(taContact.getPhone(), CommConstant.ITEM_TYPE_RECHARGE, smsParams);
|
141
|
|
-// }
|
|
135
|
+ List<TaContact> taContacts = selectSmsContactUser();
|
|
136
|
+ if (CollectionUtils.isNotEmpty(taContacts)){
|
|
137
|
+ TaContact taContact = taContacts.get(0);
|
|
138
|
+ String[] smsParams = {"业务平台充值成功", taOrgOrder.getTradeNo() + taOrgAccount.getMiniappName()};
|
|
139
|
+ // 短信发送
|
|
140
|
+ sendSmsMessage(taContact.getPhone(), CommConstant.ITEM_TYPE_RECHARGE, smsParams);
|
|
141
|
+ }
|
142
|
142
|
|
143
|
143
|
return responseBean;
|
144
|
144
|
}
|
|
@@ -186,13 +186,13 @@ public class TaOrgAccountServiceImpl extends ServiceImpl<TaOrgAccountMapper, TaO
|
186
|
186
|
return responseBean;
|
187
|
187
|
}
|
188
|
188
|
|
189
|
|
-// List<TaContact> taContacts = selectSmsContactUser();
|
190
|
|
-// if (CollectionUtils.isNotEmpty(taContacts)){
|
191
|
|
-// TaContact taContact = taContacts.get(0);
|
192
|
|
-// String[] smsParams = {"业务平台退款申请", taOrgOrder.getTradeNo() + taOrgAccount.getMiniappName()};
|
193
|
|
-// // 短信发送
|
194
|
|
-// sendSmsMessage(taContact.getPhone(), CommConstant.ITEM_TYPE_REFUND, smsParams);
|
195
|
|
-// }
|
|
189
|
+ List<TaContact> taContacts = selectSmsContactUser();
|
|
190
|
+ if (CollectionUtils.isNotEmpty(taContacts)){
|
|
191
|
+ TaContact taContact = taContacts.get(0);
|
|
192
|
+ String[] smsParams = {"业务平台退款申请", taOrgOrder.getTradeNo() + taOrgAccount.getMiniappName()};
|
|
193
|
+ // 短信发送
|
|
194
|
+ sendSmsMessage(taContact.getPhone(), CommConstant.ITEM_TYPE_REFUND, smsParams);
|
|
195
|
+ }
|
196
|
196
|
|
197
|
197
|
return responseBean;
|
198
|
198
|
}
|
|
@@ -304,6 +304,7 @@ public class TaOrgAccountServiceImpl extends ServiceImpl<TaOrgAccountMapper, TaO
|
304
|
304
|
taOrgOrder.setTradeNo(CommonUtils.generateTradeNo(CommConstant.ITEM_TYPE_RECHARGE.equals(consumeType) ? CommConstant.RECHARGE : CommConstant.REFUND));
|
305
|
305
|
taOrgOrder.setAmount(NumberUtils.yuanToFen(amount));
|
306
|
306
|
taOrgOrder.setCreateDate(LocalDateTime.now());
|
|
307
|
+ taOrgOrder.setPayDate(LocalDateTime.now());
|
307
|
308
|
taOrgOrder.setExpiryDate(LocalDateTime.now());
|
308
|
309
|
taOrgOrder.setRemark(CommConstant.ITEM_TYPE_RECHARGE.equals(consumeType) ? "线下账户缴费" : "线下账户退费");
|
309
|
310
|
taOrgOrder.setTradingStatus(CommConstant.TRADING_STATUS_SUCCESS);
|