|  | @@ -82,7 +82,15 @@ public class MerchantApplyServiceImpl implements MerchantApplyService {
 | 
	
		
			
				|  |  |      public Long createMerchantApply(MerchantApplySaveReqVO createReqVO) {
 | 
	
		
			
				|  |  |          // 插入
 | 
	
		
			
				|  |  |          MerchantApplyDO merchantApply = BeanUtils.toBean(createReqVO, MerchantApplyDO.class);
 | 
	
		
			
				|  |  | +        merchantApply.setCheckStatus(MerchantApplyCheckStatusEnum.AUDIT_PASS.getType());
 | 
	
		
			
				|  |  | +        merchantApply.setCheckPersonStatus(MerchantApplyCheckPersonStatusEnum.ZERO.getStatus());
 | 
	
		
			
				|  |  | +        merchantApply.setApplyMemberUserId(getLoginUserId());
 | 
	
		
			
				|  |  |          merchantApplyMapper.insert(merchantApply);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        MerchantSaveReqVO bean = BeanUtils.toBean(createReqVO, MerchantSaveReqVO.class);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        bean.setMerchantApplyId(merchantApply.getId());
 | 
	
		
			
				|  |  | +        merchantService.createMerchant(bean, null);
 | 
	
		
			
				|  |  |          // 返回
 | 
	
		
			
				|  |  |          return merchantApply.getId();
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -124,27 +132,28 @@ public class MerchantApplyServiceImpl implements MerchantApplyService {
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  |              // 审核通过
 | 
	
		
			
				|  |  |              // 一级审核人
 | 
	
		
			
				|  |  | -            if (MerchantApplyCheckPersonStatusEnum.getCheckPersonStatus(loginUserId).equals(MerchantApplyCheckPersonStatusEnum.ONE.getStatus())) {
 | 
	
		
			
				|  |  | -                // 修改为向二级审核人审核,状态不变
 | 
	
		
			
				|  |  | -                updateDO.setCheckPersonStatus(MerchantApplyCheckPersonStatusEnum.TWO.getStatus());
 | 
	
		
			
				|  |  | -                updateDO.setCheckStatus(MerchantApplyCheckStatusEnum.WAIT_AUDIT.getType());
 | 
	
		
			
				|  |  | -                merchantApplyMapper.updateById(updateDO);
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -                MerchantApplyLogSaveReqVO build = MerchantApplyLogSaveReqVO.builder()
 | 
	
		
			
				|  |  | -                        .status(MerchantApplyCheckStatusEnum.AUDIT_PASS.getType())
 | 
	
		
			
				|  |  | -                        .merchantApplyId(updateDO.getId())
 | 
	
		
			
				|  |  | -                        .checkComment(updateDO.getCheckComment())
 | 
	
		
			
				|  |  | -                        .checkSystemUserId(loginUserId)
 | 
	
		
			
				|  |  | -                        .build();
 | 
	
		
			
				|  |  | -                merchantApplyLogService.createMerchantApplyLog(build);
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -                // todo 商户审核通过向上级发送微信信息
 | 
	
		
			
				|  |  | -                sentWxChantMessageToThSystemUser(updateDO,MerchantApplyCheckPersonStatusEnum.TWO.getUserid());
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -                // 发送极光推送
 | 
	
		
			
				|  |  | -                jPushToThSystemUser(updateDO, MerchantApplyCheckPersonStatusEnum.TWO.getUserid());
 | 
	
		
			
				|  |  | -                return;
 | 
	
		
			
				|  |  | -            } else if (MerchantApplyCheckPersonStatusEnum.getCheckPersonStatus(loginUserId).equals(MerchantApplyCheckPersonStatusEnum.TWO.getStatus())) {
 | 
	
		
			
				|  |  | +//            if (MerchantApplyCheckPersonStatusEnum.getCheckPersonStatus(loginUserId).equals(MerchantApplyCheckPersonStatusEnum.ONE.getStatus())) {
 | 
	
		
			
				|  |  | +//                // 修改为向二级审核人审核,状态不变
 | 
	
		
			
				|  |  | +//                updateDO.setCheckPersonStatus(MerchantApplyCheckPersonStatusEnum.TWO.getStatus());
 | 
	
		
			
				|  |  | +//                updateDO.setCheckStatus(MerchantApplyCheckStatusEnum.WAIT_AUDIT.getType());
 | 
	
		
			
				|  |  | +//                merchantApplyMapper.updateById(updateDO);
 | 
	
		
			
				|  |  | +//
 | 
	
		
			
				|  |  | +//                MerchantApplyLogSaveReqVO build = MerchantApplyLogSaveReqVO.builder()
 | 
	
		
			
				|  |  | +//                        .status(MerchantApplyCheckStatusEnum.AUDIT_PASS.getType())
 | 
	
		
			
				|  |  | +//                        .merchantApplyId(updateDO.getId())
 | 
	
		
			
				|  |  | +//                        .checkComment(updateDO.getCheckComment())
 | 
	
		
			
				|  |  | +//                        .checkSystemUserId(loginUserId)
 | 
	
		
			
				|  |  | +//                        .build();
 | 
	
		
			
				|  |  | +//                merchantApplyLogService.createMerchantApplyLog(build);
 | 
	
		
			
				|  |  | +//
 | 
	
		
			
				|  |  | +//                // todo 商户审核通过向上级发送微信信息
 | 
	
		
			
				|  |  | +//                sentWxChantMessageToThSystemUser(updateDO,MerchantApplyCheckPersonStatusEnum.TWO.getUserid());
 | 
	
		
			
				|  |  | +//
 | 
	
		
			
				|  |  | +//                // 发送极光推送
 | 
	
		
			
				|  |  | +//                jPushToThSystemUser(updateDO, MerchantApplyCheckPersonStatusEnum.TWO.getUserid());
 | 
	
		
			
				|  |  | +//                return;
 | 
	
		
			
				|  |  | +//            } else
 | 
	
		
			
				|  |  | +                if (MerchantApplyCheckPersonStatusEnum.getCheckPersonStatus(loginUserId).equals(MerchantApplyCheckPersonStatusEnum.TWO.getStatus())) {
 | 
	
		
			
				|  |  |                  // 修改为向三级审核人审核,状态不变
 | 
	
		
			
				|  |  |                  updateDO.setCheckPersonStatus(MerchantApplyCheckPersonStatusEnum.THREE.getStatus());
 | 
	
		
			
				|  |  |                  updateDO.setCheckStatus(MerchantApplyCheckStatusEnum.WAIT_AUDIT.getType());
 | 
	
	
		
			
				|  | @@ -357,7 +366,7 @@ public class MerchantApplyServiceImpl implements MerchantApplyService {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          Long loginUserId = getLoginUserId();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        if (loginUserId != null && loginUserId != 1L) {
 | 
	
		
			
				|  |  | +        if (loginUserId != null && loginUserId != 1L && MerchantApplyCheckPersonStatusEnum.getCheckPersonStatus(loginUserId) != -1) {
 | 
	
		
			
				|  |  |              pageReqVO.setCheckPersonStatus(MerchantApplyCheckPersonStatusEnum.getCheckPersonStatus(loginUserId));
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 |