Commit 7601f6ef authored by suhuiguang's avatar suhuiguang

refact(注册开通):流程调整

1.增加回滚删除消息逻辑
parent 38911c28
......@@ -784,7 +784,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
*/
private void send(String userId, String relationId, String companyType) {
MessageModel messageModel = new MessageModel();
messageModel.setUserId(userId);
messageModel.setRecivers(Collections.singletonList(userId));
messageModel.setMsgTypeLabel("检验检验业务开通");
messageModel.setMsgType("openApp");
messageModel.setTitle("签署承诺书");
......@@ -793,6 +793,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
messageModel.setTerminal("WEB");
messageModel.setRoutePath(msgDetailPath);
messageModel.setCompanyType(companyType);
messageModel.setIsRead(false);
messageFeignClient.create(messageModel);
}
......@@ -821,6 +822,8 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
BeanUtils.copyProperties(e, licence);
licence.setSequenceNbr(sequence.nextId());
licence.setItemCode(itemCode);
licence.setUnitCode(jyjcOpeningApplication.getUnitCode());
licence.setUnitName(jyjcOpeningApplication.getUnitCodeName());
licence.setEnterpriseCertSeq(cert.getSequenceNbr().toString());
licences.add(licence);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment