fix:用户注册绑定添加事务

dev
wangxy 1 year ago
parent f7acbe966e
commit a870471cbf

@ -21,6 +21,7 @@ import com.hyp.framework.manager.AsyncManager;
import com.hyp.framework.manager.factory.AsyncFactory; import com.hyp.framework.manager.factory.AsyncFactory;
import com.hyp.system.service.ISysConfigService; import com.hyp.system.service.ISysConfigService;
import com.hyp.system.service.ISysUserService; import com.hyp.system.service.ISysUserService;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -53,6 +54,7 @@ public class SysRegisterService
/** /**
* *
*/ */
@Transactional(rollbackFor = Exception.class)
public String register(RegisterBody registerBody) public String register(RegisterBody registerBody)
{ {
String msg = "", username = registerBody.getUsername(), password = registerBody.getPassword(); String msg = "", username = registerBody.getUsername(), password = registerBody.getPassword();

Loading…
Cancel
Save