Files
notes/work/移动杭研/问题处理/2023-01/0129-企业来源展示问题-测试单(NRWLXT-25256).md
2026-03-01 01:43:46 +08:00

75 lines
2.2 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 问题点 1
esop 企业来源展示为 cache+ 企业
![](../../../../attachment/images-uuid/691dbeaccdcc46679814a6ab4dc2cfb1.png)
# 问题复现
因为显示来源是从 WorkOrder 表中查询出来所以先排查了为什么存这个字段,然后进行处理。
登录账号:浙江省运营经理 B:18867114444
位置:直播控制台 - 域名管理
发送关停域名工单,相应的 Controller
```java
com.cmcc.cdn.platform.selfservice.controller.live.LiveOrderController#disableDomain
```
开发环境可以暂时先注释华为部分,并将下发 BPM 的开关进行关闭(BBOSS_ORDER_BPM_SWITCH
发现在保存工单时
```java
com.cmcc.cdn.platform.selfservice.service.live.impl.LiveRecordServiceImpl#generateWorkOrder
```
![](../../../../attachment/images-uuid/704a48e07dc94125961300011ab27a8c.png)
![](../../../../attachment/images-uuid/78a85f6717c74b7fad2ab39e1e7c950c.png)
在 WorkOrder 实体类中对 Source 有对应的默认值设置
![](../../../../attachment/images-uuid/3f009584dfd84fb08d5e74b64f69b570.png)
未修改前的逻辑会默认设置 Source 为 `WEB("cache+企业", null)`
修改后仅当空值是进行设置。
# 知识点
**@PrePersist 注解作用**
@PrePersist 的切点是在 entityManager.persist(entity) 的反射 invoke 方法执行前调用。可以理解为持久化对象前执行,因此就可以做些事情了,比如设置创建时间,设置对象删除状态等等。
# 问题点 2
![](../../../../attachment/images-uuid/0b496594273a40fe880c53916593804b.png)
当查出来显示为数据库的 Eum 值得时候为 BBOSS。测试认为应该显示 ESOP。
在与产品沟通后得知:
![](../../../../attachment/images-uuid/8e10bc0b7d294033aa69438e1223df1c.png)
![](../../../../attachment/images-uuid/d589ee5b293c40e09bcf9c586a0e3516.png)
**沟通重点**
BBOSS 那边承接 ESOP 工单、前端显示 ESOP。
**修改方案**
定位到返回前端前 Set 相应值得地方。
```java
com.cmcc.cdn.platform.selfservice.service.live.impl.LiveRecordServiceImpl#getDetailByWorkOrderId
```
![](../../../../attachment/images-uuid/15953dd68fea46608ee09e5948db8065.png)
![](../../../../attachment/images-uuid/68b7b20d49d54556ae628761ec1dad98.png)
将 Source 的值进行转换。