Browse Source

身份申请 添加事务

tags/V1.7.0
wanghaoran 1 year ago
parent
commit
2f47d7802c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      tuoheng-api/src/main/java/com/tuoheng/api/service/impl/IdentityServiceImpl.java

+ 2
- 0
tuoheng-api/src/main/java/com/tuoheng/api/service/impl/IdentityServiceImpl.java View File

@@ -16,6 +16,7 @@ import com.tuoheng.common.utils.JsonResult;
import com.tuoheng.common.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Arrays;
import java.util.Date;
@@ -58,6 +59,7 @@ public class IdentityServiceImpl extends BaseServiceImpl<IdentityMapper, Identit
}

@Override
@Transactional
public JsonResult submit(IdentityApply identityApply) {
if(null == identityApply.getTenantId() || StringUtils.isEmpty(identityApply.getApplyOpenid())){
return JsonResult.error("登录人信息为空!");

Loading…
Cancel
Save