Skip to content

Commit

Permalink
事务传播行为,未添加注解的方法加入上一个事务
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed May 12, 2019
1 parent 6fa2c9e commit e23c30b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TransactionAspectSupport.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func AopProxyServiceValue(service reflect.Value, engine SessionEngine) {
var beanName = beanType.PkgPath() + beanType.Name()
ProxyValue(service, func(funcField reflect.StructField, field reflect.Value) func(arg ProxyArg) []reflect.Value {
//init data
var propagation = tx.PROPAGATION_NEVER
var propagation = tx.PROPAGATION_REQUIRED
var nativeImplFunc = reflect.ValueOf(field.Interface())
var txTag, haveTx = funcField.Tag.Lookup("tx")
var rollbackTag = funcField.Tag.Get("rollback")
Expand Down

0 comments on commit e23c30b

Please sign in to comment.