Initial commit

This commit is contained in:
Docker7530
2026-03-01 01:43:46 +08:00
commit c6125c117b
3840 changed files with 415340 additions and 0 deletions
@@ -0,0 +1,281 @@
# 提单前台
![](../../../../attachment/images-uuid/693cd68687d040ef952976cee6bde0e4.png)
# 处理流程
## 获取企业产品
![](../../../../attachment/images-uuid/4da9fd5979524ed7b2aa1fd55e848233.png)
/workorder/filter/product?enterpriseId=impdmahu-qxqlctq2lghkfq7q&operateType=add
正哥已处理
operateType 如果是删除:已开通
operateType 如果是删除:已开通、试用中
ep_product_chargemode 查询产品
转换为 ProductsBBossEnum 中的产品
无暂停单 && 无注销单 && (开通的 || 试用单没走完的删了域名的)
# 提单(政企客户经理/省客户经理)
/workorder/custom/save
com.cmcc.cdn.platform.selfservice.controller.NewWorkOrderController#save
#### 提单参数
```json
{
"code": null,
"type": "domain_request",
"model": null,
"source": null,
"enterpriseCpId": null,
"name": null,
"mobile": null,
"email": null,
"createUser": null,
"corp": null,
"creatorInfo": null,
"dealer": null,
"createTime": null,
"state": null,
"approve": null,
"description": "",
"domain": null,
"https": null,
"keyLessFlag": null,
"keyless": null,
"speedDomain": null,
"speedList": [
{
"domain": "20250822110828.komect.com",
"cpDomain": "",
"icpNumber": "京ICP备0500_komect.com_12号",
"mainLoopDomain": null,
"loopDomain": null,
"loopType": null
}
],
"product": "网页加速",
"port": null,
"provinces": [
33
],
"plains": null,
"orignAddress": null,
"loopDomain": [
{
"value": "[2001:0db8:85a3:0000:0000:8a2e:0370:7334]:80",
"type": "ip",
"mainFlag": true,
"weight": null
}
],
"md5List": [
"eehgcudaliutvzavcyv7xysao"
],
"requirement": "add",
"enterprise": "awgb5qxx-hdmw9aygdphcswsi",
"icpNumber": null,
"isBatch": null,
"fileId": null,
"id": null,
"secInfoFileId": [
"0rawbsu5ee2ygvcyq13jpuri2"
],
"plane": null,
"httpSelection": {
"http": null,
"https": null
},
"domainType": null,
"subdomain": null,
"isSubscribe": null,
"productId": "PRODUCTID1747035900"
}
```
存在性校验:
self_service_domain_config
work_order_cache_domain
batch_self_domain
configure_list、speed_configure_domain、work_order
live_order_info、live_order_domain_info
---
主表:work_order
子表:configure_list (映射)
配置表:orign_address、speed_configure_domain、batch_self_domain(批量)
审批记录:domain_history(刚开始会创建两条记录)
域名表:self_service_domain_config、live_stream_domain_config(直播)
附件:log_file_resource
企业工单关系表:worker_order_enterprise
更新:configure_list 的 record_number 和 self_service_domain_config 的合法性。
更新:domain_history 会设置校验状态 isIcpCheckCompleted、isIcpCheckSuccess
随后找人的时候会设置:approvingUserid、approvingMobile、dealer(下一个审批人角色)、userTemp(审批过的人)
### 审批下发 BPM(集团客户经理管理员)
/workorder/approvedecision
下发话单
置空 approvingUserid、approvingMobile
增加审批记录。
### 下发 BPM 人员选择
根据创单人判断
省客户经理:取省 SA,如果没有取 徐娜 GLOBAL_AREA_MANAGER_ID
不是省客户经理 :取 SA,如果没有取 徐娜 GLOBAL_AREA_MANAGER_ID
#### 阶段反馈
com.cmcc.cdn.platform.selfservice.order.DomainOrderService#domainOrderStageFeedback
针对阶段反馈成功只是更改了 bpmTaskDao 表的状态
#### 回退接口
work_order 表
configure_list 表
通过 `domain_history`​校验是否已通过备案
如果备案未完成不可驳回
退回工单至发起人处
如果是批量域名需要删除对应的表
关话单
删除域名,发邮件
`domain_history`​记录
![](../../../../attachment/images-uuid/91fdfa5d86b04aa69ad894325eaa7301.png)
## 工单列表查询
/workorder/getworkList
![](../../../../attachment/images-uuid/15e2021af5cf402caae8da61ee7ab567.png)
```json
{
"data":[
{
"approving":true,
"approvingWorker":"政企分公司|政企汤汤|18867102345",
"corpName":"ECName-1701700035",
"createUser":false,
"customConfig":false,
"dealer":"政企客户经理",
"details":"20231204233906.komect.com",
"distribute":false,
"enumType":"domain_request",
"id":347411,
"mobile":"18867102345",
"modifying":true,
"orderType":0,
"orderTypeCheck":false,
"prohibited":false,
"status":"bpmReject",
"time":"2023-12-04 23:40",
"type":"域名配置需求",
"user":"政企汤汤 | 18867102345 | lichunliang@cmhi.chinamobile.com"
}
],
"pageNum":1,
"pageSize":10,
"total":1
}
```
![](../../../../attachment/images-uuid/dbf72bd18a6b4f06bc55c096315941bf.png)
```json
{
"data":[
{
"approving":false,
"corpName":"xj测试企业193",
"createUser":true,
"customConfig":false,
"details":"p193000925001",
"distribute":false,
"enumType":"DOMAIN_MIGRATE",
"id":347374,
"modifying":false,
"orderType":0,
"orderTypeCheck":false,
"prohibited":false,
"status":"finished",
"time":"2023-11-13 16:18",
"type":"订购迁移工单",
"user":"政企汤汤|18867102345"
}
],
"pageNum":1,
"pageSize":10,
"total":1
}
```
`WorkOrder`​的 status 决定列表
## 工单详情
/workorder/detail
## 域名配置工单修改合法性位置
com.cmcc.cdn.platform.selfservice.order.DomainOrderService#updateCheckedIcpInfo
## 客户经理修改工单接口
```
http://dev.p.cdn.10086.cn:8080/workorder/modify/detail
id: 347652
type: domain_request
```
上传附件普通
/workorder/custom/upload
删除附件
/workorder/custom/deleteFile
上传信安附件
/workorder/requestDomain/upload
@@ -0,0 +1,122 @@
## 获取加速域名接口
/workorder/cmcustom/getEffectTrailInfo
![](../../../../attachment/images-uuid/890e09e81ded4b199939267edf9ee3f5.png)
![](../../../../attachment/images-uuid/16ce6c644f104d96ab8b1725c8f59250.png)
## 提单接口(政企客户经理/省客户经理——直接下发 BPM)
/workorder/adapt/configchange
## 下发 BPM 参数
重点关注的 `cdn_type`y 已经进行过处理是通过前台页面过来的解析
```json
{
"accessSystem":"IBS",
"account":"CDN-IBS",
"code":"002-20231217001",
"data":{
"cdn_type":"LowLatencyLive",
"cpId":"83585286",
"domains":[
"DevReq363613166.komect.com"
],
"nameOfClient":"ECName-1700620430",
"operMail":"lichunliang@cmhi.chinamobile.com",
"operTel":"18867102345",
"operUser":"18867102345cmcc",
"sourceBasis":"002-20231217001",
"sourceOfDemand":"ESOPIBS平台)",
"summaryOfDemand":"其他说明"
},
"processType":"4",
"userList":[
{
"userMail":"remaxob441@kamismail.comabc",
"userName":"15700197926cmcc",
"userTel":"15700197926"
}
]
}
```
## 业务管理员回退流程
/workorder/approvedecision
com.cmcc.cdn.platform.selfservice.order.WorkOrderServiceImpl#decision
com.cmcc.cdn.platform.selfservice.order.DomainOrderService#decision
com.cmcc.cdn.platform.selfservice.order.DomainOrderService#cmaOrderReject
com.cmcc.cdn.platform.selfservice.service.impl.DomainDeleteTrancServiceImpl#deleteDomainFromIbs
# 确认项
需求变更工单对于绑定证书的域名更换证书,能否正常验收反馈
1. 准备一个已绑定证书的自助域名
2. 通过需求变更工单验收修改证书
3. 观察证书域名绑定情况。
4. 域名是否挂到了新证书下。
20240409154911--4b35-42ba-8a94-605964c2857e
试用单:验收反馈
![](../../../../attachment/images-paste/image-20240409155202130.png)
![](../../../../attachment/images-paste/image-20240409155322109.png)
![](../../../../attachment/images-paste/image-20240409155338836.png)
![](../../../../attachment/images-paste/image-20240409155407570.png)
20240409155625--2b71-4a5c-9b1c-2ec19f90488a
04091555_59
变更单:验收反馈
![](../../../../attachment/images-paste/image-20240409160316993.png)
![](../../../../attachment/images-paste/image-20240409160358207.png)
![](../../../../attachment/images-paste/image-20240409160413162.png)
![](../../../../attachment/images-paste/image-20240409160436906.png)
自助域名
83538802
20240409161187--9c5e-43d0-aca4-c8fc65f15cf4
04091611_15
![](../../../../attachment/images-paste/image-20240409161720709.png)
![](../../../../attachment/images-paste/image-20240409161750813.png)
![](../../../../attachment/images-paste/image-20240409161804426.png)
![](../../../../attachment/images-paste/image-20240409161823266.png)
需求变更
20240409162083--ebaa-4df6-9ee6-f51d3068aa41
04091618_58
![](../../../../attachment/images-paste/image-20240409164150542.png)
![](../../../../attachment/images-paste/image-20240409164204915.png)
![](../../../../attachment/images-paste/image-20240409164222073.png)
![](../../../../attachment/images-paste/image-20240409164243241.png)
@@ -0,0 +1,87 @@
# 自助域名提单截图(适配开发关闭)
![](../../../../attachment/images-uuid/6ef2d0ade42840fab3afee2e025e70b5.png)
## 后台接口
### 提单入口
```java
/cache/domain/order/submit
```
### 省业务管理员、集团运营经理审批
```java
/workorder/approvedecision
```
### 省运营经理点击配置
```java
/configManage/update/domain
```
### 提交配置接口
```java
/configManage/update/config
```
参数:
![](../../../../attachment/images-paste/image-20240319103239062.png)
有同步信安信息
上传证书操作
com.cmcc.cdn.platform.selfservice.service.impl.DomainStateServiceImpl#uploadCrtAndSaveDomain
com.cmcc.cdn.platform.selfservice.service.crt.impl.CertificateServiceImpl#uploadAndBindDomain
如果传了证书 ID
自助的变化的需要通知绑定
状态:UNUSED -》 ISSUE
部署:20240319102014.komect.com,0,0
绑定:20240319102014.komect.com,0
![](../../../../attachment/images-paste/image-20240319111737509.png)
## 流转流程
省运营经理 -23(创建后可直接结束,可提交点播业务目前)
-> 省业务管理员 -21(同意、终止、退回)
-> 集团运营经理 -22(同意、终止、退回,域名入库)
-> 省运营经理 -23(配置触发管道化下发,并生成域名配置记录工单)
-> 配管回调(pipe_config_entity 为管道化任务表,配管回调后任务记录消失,域名已生效,工单结束)
## 后台流程
```mermaid
sequenceDiagram
接受请求(控制层)->> + 生成工单:创建工单createCachePlusDomainWorkOrder
生成工单 ->>生成工单:如果是企业客户,需要绑定运营经理
生成工单 ->>生成工单:createFrom工单参数转换,work_order_cache_domain、work_order
生成工单 ->>生成工单:新增泛域名之间关系校验
生成工单 ->>生成工单:创单人审批记录work_order_cache_domain_history
生成工单 ->>生成工单:Icp审批记录work_order_cache_domain_history
生成工单 ->>生成工单:工单入库
生成工单 -->> - 接受请求(控制层):获得work_order_cache_domain表信息
接受请求(控制层)-x信安信息:rabbitmq异步处理
MQ信安信息消费者 ->> 消费者:待补充主要是信安校验和信安同步
接受请求(控制层)->>保存工单和企业关系:worker_order_enterprise
接受请求(控制层)-x订阅日志:如程序无异常默认订阅,异常捕获程序正常结束
```
## 已生效显示配置
![](../../../../attachment/images-paste/image-20240319155317842.png)