|
|
|
@ -10,6 +10,7 @@ import com.example.demo.service.Temporary.RedService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Propagation; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
@ -62,7 +63,8 @@ public class RedServiceImpl implements RedService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
// @Transactional(rollbackFor = Exception.class) |
|
|
|
@Transactional(propagation = Propagation.REQUIRES_NEW) |
|
|
|
public void addAmount(Integer jwcode, BigDecimal sum, Integer type) { |
|
|
|
// 1. 基础参数校验 |
|
|
|
validateParams(jwcode, type, sum); |
|
|
|
|