提交 ff5a5c0c 作者: 刘明祎-运维用途

修改加盟入住流程

上级 8e841a1b
......@@ -254,25 +254,23 @@ public class ContractServiceImpl implements ContractService {
updateSignStatus.setBRemark(resultDesc);
updateSignStatus.setSingerTime(new Date());
if(orderNo.startsWith(FddConstant.FN)) {
// 乙方生成后台对应的账号
UserApplyTagDO userApplyTag = cooperationDao.getUserApplyTagByContractId(contractId);
BUserAccountVO bUserAccountVO = this.generateBackUserAccountVO(userApplyTag);
log.info("check apply cooperation tag, bUserAccountVO:{}", com.alibaba.fastjson2.JSONObject.toJSONString(bUserAccountVO));
ResultBody resultBody = backUserAccountService.insertBAccount(bUserAccountVO, null);
log.info(resultBody.toString());
if (!resultBody.getCode().equals(ResultEnum.SUCCESS.getResultCode())) {
// 生成账号失败处理
log.info("生成失败");
throw new BizException(ResultEnum.COOPERATION_CHECK_NOT_PASS_ERROR);
}
SmsUtil.sendPassCooperationApply(bUserAccountVO.getPhoneNum());
}
// if(orderNo.startsWith(FddConstant.FN)) {
// // 乙方生成后台对应的账号
// UserApplyTagDO userApplyTag = cooperationDao.getUserApplyTagByContractId(contractId);
// BUserAccountVO bUserAccountVO = this.generateBackUserAccountVO(userApplyTag);
// log.info("check apply cooperation tag, bUserAccountVO:{}", com.alibaba.fastjson2.JSONObject.toJSONString(bUserAccountVO));
// ResultBody resultBody = backUserAccountService.insertBAccount(bUserAccountVO, null);
// log.info(resultBody.toString());
// if (!resultBody.getCode().equals(ResultEnum.SUCCESS.getResultCode())) {
// // 生成账号失败处理
// log.info("生成失败");
// throw new BizException(ResultEnum.COOPERATION_CHECK_NOT_PASS_ERROR);
// }
// SmsUtil.sendPassCooperationApply(bUserAccountVO.getPhoneNum());
// }
// 同步订单状态
ContractInfoDTO contractInfoDTO = contractInfoDO.buildContractInfoDTO();
contractInfoDTO.setSignStatus(4);
log.info("到达mq");
log.info("到达mq");
mqProducer.sentFinishOrderSign(contractInfoDTO);
} else if (contractInfoDO.getSignStatus() == 2 && FddConstant.SIGN_FAIL.equals(resultCode) && contractInfoDO.getBTransactionId().equals(transactionId)) {
// 乙方公司签章失败
......
......@@ -210,6 +210,15 @@ public class CooperationServiceImpl implements CooperationService {
userTagDO.setCooperationTagId(userApplyTag.getCooperationTagId());
cooperationDao.insertUserTag(userTagDO);
}
// 审批通过生成后台对应的账号
BUserAccountVO bUserAccountVO = this.generateBackUserAccountVO(userApplyTag);
log.info("check apply cooperation tag, bUserAccountVO:{}", JSONObject.toJSONString(bUserAccountVO));
ResultBody resultBody = backUserAccountService.insertBAccount(bUserAccountVO, null);
if (!resultBody.getCode().equals(ResultEnum.SUCCESS.getResultCode())) {
// 生成账号失败处理
throw new BizException(ResultEnum.COOPERATION_CHECK_NOT_PASS_ERROR);
}
SmsUtil.sendPassCooperationApply(bUserAccountVO.getPhoneNum());
} else {
SmsUtil.sendNotPassCooperationApply(account.getPhoneNum());
cooperationDao.updateApplyTagStatus(id, 2);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论