【DAOP-1.0】企业认证
【功能点】测试问题处理
Showing
2 changed files
with
12 additions
and
8 deletions
... | @@ -550,7 +550,6 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -550,7 +550,6 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService |
550 | 550 | ||
551 | private StaffRSVO getCurStaff(){ | 551 | private StaffRSVO getCurStaff(){ |
552 | UserInfo userInfo = UserContextHolder.get(); | 552 | UserInfo userInfo = UserContextHolder.get(); |
553 | userInfo.getUserId(); | ||
554 | StaffRSVO staffVO = personelFeign.getByUserGuid(userInfo.getUserId()).getData(); | 553 | StaffRSVO staffVO = personelFeign.getByUserGuid(userInfo.getUserId()).getData(); |
555 | return staffVO; | 554 | return staffVO; |
556 | } | 555 | } | ... | ... |
... | @@ -31,6 +31,7 @@ import com.csbr.qingcloud.portal.mybatis.service.MfEnterpriseService; | ... | @@ -31,6 +31,7 @@ import com.csbr.qingcloud.portal.mybatis.service.MfEnterpriseService; |
31 | import com.csbr.qingcloud.portal.service.EnterpriseService; | 31 | import com.csbr.qingcloud.portal.service.EnterpriseService; |
32 | import com.csbr.qingcloud.portal.util.ObjectUtil; | 32 | import com.csbr.qingcloud.portal.util.ObjectUtil; |
33 | import csbr.cloud.entity.domain.base.vo.PageListVO; | 33 | import csbr.cloud.entity.domain.base.vo.PageListVO; |
34 | import csbr.cloud.entity.domain.user.UserInfo; | ||
34 | import csbr.cloud.entity.enums.ApprovalStateEnum; | 35 | import csbr.cloud.entity.enums.ApprovalStateEnum; |
35 | import csbr.cloud.entity.utils.UserContextHolder; | 36 | import csbr.cloud.entity.utils.UserContextHolder; |
36 | import io.seata.common.util.DateUtil; | 37 | import io.seata.common.util.DateUtil; |
... | @@ -522,17 +523,21 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -522,17 +523,21 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
522 | 523 | ||
523 | @Override | 524 | @Override |
524 | public Boolean check(EnterpriseRQVO vo) { | 525 | public Boolean check(EnterpriseRQVO vo) { |
525 | //防止管理员帐号发起认证 | 526 | //非认证会员才需要检查会员名称等数据 |
526 | if(StringUtils.isBlank(vo.getGuid())){ | 527 | StaffRSVO staff = getCurStaff(); |
527 | checkUser(vo.getLogonUser()); | 528 | if("非认证会员".equals(staff.getTenantName())){ |
529 | TenantRQVO tenant = csbrBeanUtil.convert(vo,TenantRQVO.class); | ||
530 | personelFeign.checkTenant(tenant); | ||
528 | } | 531 | } |
529 | |||
530 | //检查会员名称等数据 | ||
531 | TenantRQVO tenant = csbrBeanUtil.convert(vo,TenantRQVO.class); | ||
532 | personelFeign.checkTenant(tenant); | ||
533 | return true; | 532 | return true; |
534 | } | 533 | } |
535 | 534 | ||
535 | private StaffRSVO getCurStaff(){ | ||
536 | UserInfo userInfo = UserContextHolder.get(); | ||
537 | StaffRSVO staffVO = personelFeign.getByUserGuid(userInfo.getUserId()).getData(); | ||
538 | return staffVO; | ||
539 | } | ||
540 | |||
536 | private void checkUser(String logonUser){ | 541 | private void checkUser(String logonUser){ |
537 | UserQueryDTO dto = new UserQueryDTO(); | 542 | UserQueryDTO dto = new UserQueryDTO(); |
538 | dto.setLogonUser(logonUser); | 543 | dto.setLogonUser(logonUser); | ... | ... |
-
Please register or sign in to post a comment