事务注解
This commit is contained in:
parent
b5584d4c6e
commit
b6d9eaa2de
|
|
@ -34,6 +34,7 @@ import io.swagger.annotations.Api;
|
|||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
|
@ -226,6 +227,7 @@ public class WuyouController {
|
|||
return "success";
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void activities(UserEntity user, UserEntity sourceUser) {
|
||||
//分享达标
|
||||
if (sourceUser != null && sourceUser.getUserId() != 1) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue