Procházet zdrojové kódy

fix 订单telphone

he2802 před 4 roky
rodič
revize
d2e5526287

+ 2 - 0
zhongzheng-framework/src/main/java/com/zhongzheng/framework/web/service/WxLoginService.java

@@ -23,6 +23,7 @@ import org.apache.commons.codec.binary.Base64;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Component;
+import org.springframework.transaction.annotation.Transactional;
 
 import javax.annotation.Resource;
 import java.util.HashMap;
@@ -131,6 +132,7 @@ public class WxLoginService
      * @param tel
      * @return
      */
+    @Transactional(rollbackFor = Exception.class)
     public Boolean register_small(String openId,String unionId,String tel,String inviteCode) {
         User bo = new User();
         bo.setOpenId(openId);