mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
汇付回调添加事务控制
This commit is contained in:
@@ -55,6 +55,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
@@ -1093,7 +1094,8 @@ public class OrderService {
|
||||
* @param data
|
||||
* @throws JsonProcessingException
|
||||
*/
|
||||
private void paymentSucceeded(String data) throws JsonProcessingException {
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void paymentSucceeded(String data) throws JsonProcessingException {
|
||||
// 验签成功 保存到回调记录表中
|
||||
JSONObject jsonObject = JSON.parseObject(data);
|
||||
log.info("adapay支付成功回调:{}", jsonObject.toJSONString());
|
||||
|
||||
Reference in New Issue
Block a user