|
@@ -1,5 +1,14 @@
|
|
|
package com.diagbot.facade;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+import org.apache.commons.lang.StringUtils;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import com.diagbot.dto.QueryAuthProgressDTO;
|
|
|
import com.diagbot.dto.UserAuthenticationDTO;
|
|
|
import com.diagbot.dto.UserAuthenticationRespDTO;
|
|
|
import com.diagbot.entity.Organization;
|
|
@@ -10,12 +19,6 @@ import com.diagbot.enums.OrganizationTypeEnum;
|
|
|
import com.diagbot.service.impl.UserAuthenticationServiceImpl;
|
|
|
import com.diagbot.util.UserUtils;
|
|
|
import com.diagbot.vo.UserAuthenticationVO;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.stereotype.Component;
|
|
|
-
|
|
|
-import java.util.Date;
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @Description:用户认证业务层
|
|
@@ -143,4 +146,32 @@ public class UserAuthenticationFacade extends UserAuthenticationServiceImpl {
|
|
|
}
|
|
|
return map;
|
|
|
}
|
|
|
+
|
|
|
+ public QueryAuthProgressDTO queryAuthProgress() {
|
|
|
+ QueryAuthProgressDTO queryAuthProgressDTO = new QueryAuthProgressDTO();
|
|
|
+ Long userId = Long.parseLong(UserUtils.getCurrentPrincipleID());
|
|
|
+ UserAuthentication userAuthentication = this.getByUserId(userId);
|
|
|
+ String status = userAuthentication.getStatus();
|
|
|
+ String isReject = userAuthentication.getIsReject();
|
|
|
+ if(StringUtils.isBlank(isReject)){
|
|
|
+ if(status.equals("0")){
|
|
|
+ queryAuthProgressDTO.setStatus("1");
|
|
|
+ queryAuthProgressDTO.setStatusMessage("未认证");
|
|
|
+ }else if(status.equals("2")){
|
|
|
+ queryAuthProgressDTO.setStatus("2");
|
|
|
+ queryAuthProgressDTO.setStatusMessage("认证中");
|
|
|
+ }
|
|
|
+ }else if(isReject.equals("N")){
|
|
|
+ if(status.equals("0")){
|
|
|
+ queryAuthProgressDTO.setStatus("3");
|
|
|
+ queryAuthProgressDTO.setStatusMessage("认证未通过");
|
|
|
+ }
|
|
|
+ }else if(isReject.equals("Y")){
|
|
|
+ if(status.equals("1")){
|
|
|
+ queryAuthProgressDTO.setStatus("4");
|
|
|
+ queryAuthProgressDTO.setStatusMessage("认证通过");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return queryAuthProgressDTO;
|
|
|
+ }
|
|
|
}
|