Commit c918be5c authored by 刘林's avatar 刘林

fix(jg):证打印标记功能开发

parent 219d7e00
...@@ -49,6 +49,9 @@ public class ChangeLogInsertListener { ...@@ -49,6 +49,9 @@ public class ChangeLogInsertListener {
@Value("${change.log.deal.thread.number:1}") @Value("${change.log.deal.thread.number:1}")
private int threadNumber; private int threadNumber;
@Value("${change.log.deal.routePath:/mixuap?appId=1742358052905971713&id=1924440797940314113}")
private String routePath;
private final ESDataChangeLogDao esDataChangeLogDao; private final ESDataChangeLogDao esDataChangeLogDao;
private final JgBizChangeLogServiceImpl bizChangeLogService; private final JgBizChangeLogServiceImpl bizChangeLogService;
...@@ -104,21 +107,21 @@ public class ChangeLogInsertListener { ...@@ -104,21 +107,21 @@ public class ChangeLogInsertListener {
Optional.ofNullable(event.getBizRelationData().getRecords()).orElse(Collections.emptySet()).stream() Optional.ofNullable(event.getBizRelationData().getRecords()).orElse(Collections.emptySet()).stream()
).findFirst().orElse(null); ).findFirst().orElse(null);
String businessTypeName = BusinessTypeEnum String businessTypeName = BusinessTypeEnum
.findNameByEnumName(changeLog.getBizType()) .findNameByEnumName(changeLog.getBizType()).orElse("设备编辑");
.map(name -> "设备编辑_" + name)
.orElse("设备编辑");
jgResumeInfoService.createWithModel(JgResumeInfoDto.builder() jgResumeInfoService.createWithModel(JgResumeInfoDto.builder()
.applyNo(event.getBizRelationData().getBizId()) .applyNo(event.getBizRelationData().getBizId())
.businessType(businessTypeName) .businessType(businessTypeName)
.businessId(event.getBizRelationData().getBizId()) .businessId(event.getBizRelationData().getBizId())
.equId(equId) .equId(equId)
.resumeType("1") .resumeType("1")
.changeContent("设备编辑")
.changeLogId(String.valueOf(changeLog.getSequenceNbr())) .changeLogId(String.valueOf(changeLog.getSequenceNbr()))
.approvalUnit(event.getBizRelationData().getUnitName()) .approvalUnit(event.getBizRelationData().getUnitName())
.approvalUnitCode(event.getBizRelationData().getUnitCode()) .approvalUnitCode(event.getBizRelationData().getUnitCode())
.createUserName(event.getBizRelationData().getRecUserName()) .createUserName(event.getBizRelationData().getRecUserName())
.createUserId(event.getRequestContext().getExcutedUserId()) .createUserId(event.getRequestContext().getExcutedUserId())
.status("正常") .status("正常")
.routePath(routePath)
.build()); .build());
} catch (Exception e){ } catch (Exception e){
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
......
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