Commit 4832efb2 by tang

待升级会员事务bug

parent b265d118
......@@ -10,6 +10,7 @@ import com.thinkgem.jeesite.modules.youka.entity.UpgradeUserEntity;
import com.thinkgem.jeesite.modules.youka.entity.YoukaUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
@Service
......@@ -20,6 +21,7 @@ public class UpgradeUserService extends CrudService<UpgradeUserDao, UpgradeUser
private YoukaUserService youkaUserService;
@Transactional(readOnly = false, propagation = Propagation.REQUIRES_NEW)
public void examine(UpgradeUserEntity upgradeUserEntity){
YoukaUser youkaUser = youkaUserService.checkMobile(upgradeUserEntity.getMobile());
YoukaUser youkaUserNew = new YoukaUser();
......
......@@ -25,6 +25,7 @@ import com.thinkgem.jeesite.modules.youka.entity.YoukaUser;
import com.thinkgem.jeesite.modules.youka.entity.YoukaUserDetail;
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.util.ArrayList;
......@@ -64,7 +65,7 @@ public class YoukaUserService extends CrudService<YoukaUserDao, YoukaUser> {
}
@Override
@Transactional(readOnly = false)
@Transactional(readOnly = false, propagation = Propagation.REQUIRES_NEW)
public void save(YoukaUser youkaUser){
if(StringUtils.isBlank(youkaUser.getBelongTo())){
youkaUser.setBelongTo("B");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment