Commit 9aceb7e8 by 杨卫

docs(config): 添加rpc-dj-smartcarlife和wechat-build-server配置文档

- 新增rpc-dj-smartcarlife配置文件,包含开发、测试、预发布、线上环境的微信通知员工列表配置
- 新增rpc-dj-smartcarlife配置文件,包含企业微信商户ID和代理ID配置
- 新增rpc-dj-smartcarlife配置文件,包含微信基础路径配置
- 更新sql脚本,修改兜底预警规则中的渗透率和转化率配置查询逻辑
- 新增wechat-build-server配置文件,包含企业微信corpID和基础corpID配置
- 更新配置文件中的企业微信相关参数,适配不同环境的商户和代理配置
1 parent 77e93be5
......@@ -21,6 +21,31 @@ INSERT INTO `dj_car_life_dict` (`business_code`, `type_code`, `type_name`, `item
### 谢海旭 -----------------end---------------------
### 杨卫 -----------------start--------------------
-- 兜底预警规则修改,测试、生成环境id一样
-- 电池渗透率
update pg_warning_config set rule_json = '[{"sortNo":1,"metricId":5,"metricName":"渗透率","operator":"<=","threshold":{"type":2,"value":"select t.merchant_id as merchant_id4s, t.guarantee_standard as config_value from dj_car_life_merchant_guarantee t where t.guarantee_index = ''WR_RATE_003'' and t.base_scene_code = ''110201'' and t.deleted_flag = ''N'';","valueField":"config_value"},"nextLogic":null}]'
where id = 8;
-- 轮胎渗透率
update pg_warning_config set rule_json = '[{"sortNo":1,"metricId":6,"metricName":"渗透率","operator":"<=","threshold":{"type":2,"value":"select t.merchant_id as merchant_id4s, t.guarantee_standard as config_value from dj_car_life_merchant_guarantee t where t.guarantee_index = ''WR_RATE_004'' and t.base_scene_code = ''110201'' and t.deleted_flag = ''N'';","valueField":"config_value"},"nextLogic":null}]'
where id = 7;
-- 安心包渗透率
update pg_warning_config set rule_json = '[{"sortNo":1,"metricId":4,"metricName":"渗透率","operator":"<=","threshold":{"type":2,"value":"select t.merchant_id as merchant_id4s, t.guarantee_standard as config_value from dj_car_life_merchant_guarantee t where t.guarantee_index = ''WR_RATE_002'' and t.base_scene_code = ''110201'' and t.deleted_flag = ''N'';","valueField":"config_value"},"nextLogic":null}]'
where id = 6;
-- 整车延保渗透率
update pg_warning_config set rule_json = '[{"sortNo":1,"metricId":3,"metricName":"渗透率","operator":"<=","threshold":{"type":2,"value":"select t.merchant_id as merchant_id4s, t.guarantee_standard as config_value from dj_car_life_merchant_guarantee t where t.guarantee_index = ''WR_RATE_001'' and t.base_scene_code = ''110201'' and t.deleted_flag = ''N'';","valueField":"config_value"},"nextLogic":null}]'
where id = 5;
-- 电池转化率
update pg_warning_config set rule_json = '[{"sortNo":1,"metricId":10,"metricName":"转化率","operator":"<=","threshold":{"type":2,"value":"select t.merchant_id as merchant_id4s, t.guarantee_standard as config_value from dj_car_life_merchant_guarantee t where t.guarantee_index = ''WR_CONV_003'' and t.base_scene_code = ''110201'' and t.deleted_flag = ''N'';","valueField":"config_value"},"nextLogic":null}]'
where id = 4;
-- 轮胎转化率
update pg_warning_config set rule_json = '[{"sortNo":1,"metricId":11,"metricName":"转化率","operator":"<=","threshold":{"type":2,"value":"select t.merchant_id as merchant_id4s, t.guarantee_standard as config_value from dj_car_life_merchant_guarantee t where t.guarantee_index = ''WR_CONV_004'' and t.base_scene_code = ''110201'' and t.deleted_flag = ''N'';","valueField":"config_value"},"nextLogic":null}]'
where id = 3;
-- 安心包转化率
update pg_warning_config set rule_json = '[{"sortNo":1,"metricId":9,"metricName":"转化率","operator":"<=","threshold":{"type":2,"value":"select t.merchant_id as merchant_id4s, t.guarantee_standard as config_value from dj_car_life_merchant_guarantee t where t.guarantee_index = ''WR_CONV_002'' and t.base_scene_code = ''110201'' and t.deleted_flag = ''N'';","valueField":"config_value"},"nextLogic":null}]'
where id = 2;
-- 整车延保转化率
update pg_warning_config set rule_json = '[{"sortNo":1,"metricId":8,"metricName":"转化率","operator":"<=","threshold":{"type":2,"value":"select t.merchant_id as merchant_id4s, t.guarantee_standard as config_value from dj_car_life_merchant_guarantee t where t.guarantee_index = ''WR_CONV_001'' and t.base_scene_code = ''110201'' and t.deleted_flag = ''N'';","valueField":"config_value"},"nextLogic":null}]'
where id = 1;
### 杨卫 -----------------end----------------------
......
### 说明:
* 配置要备注【新增】、【修改】、【删除】
* 如果有新的kafka的topic,那就需要额外备注【生产需要创建topic】
### 开发环境
```properties
# 新增
product.wechat.notify.common.staff.list=[]
# 新增
product.wechat.notify.default.staff.list=[{"name":"杨卫","phone":"17680252939"}]
product.wechat.notify.qinggai.staff.list=[{"name":"杨卫","phone":"17680252939"}]
# 新增
product.staff.notify.workwechat.merchantid=442008611
# 新增
product.staff.notify.workwechat.agentid=1000153
# 新增,连接预发布
wechat.base.path=https://scrm.beta.glsx.com.cn/wechat-build-server/
```
### 测试环境
```properties
# 新增
product.wechat.notify.common.staff.list=[]
# 新增
product.wechat.notify.default.staff.list=[{"name":"杨卫","phone":"17680252939"}]
product.wechat.notify.qinggai.staff.list=[{"name":"杨卫","phone":"17680252939"}]
# 新增
product.staff.notify.workwechat.merchantid=442008611
# 新增
product.staff.notify.workwechat.agentid=1000153
# 新增,连接预发布
wechat.base.path=https://scrm.beta.glsx.com.cn/wechat-build-server/
```
### 预发布环境
```properties
# 新增
product.wechat.notify.common.staff.list=[]
# 新增
product.wechat.notify.default.staff.list=[{"name":"杨卫","phone":"17680252939"}]
product.wechat.notify.qinggai.staff.list=[{"name":"杨卫","phone":"17680252939"}]
# 新增
product.staff.notify.workwechat.merchantid=442008611
# 新增
product.staff.notify.workwechat.agentid=1000153
# 新增,连接预发布
wechat.base.path=https://scrm.beta.glsx.com.cn/wechat-build-server/
```
### 线上环境
```properties
# 新增
product.wechat.notify.common.staff.list=[{"name":"李婉","phone":"13410260372"},{"name":"蔡淑婉","phone":"13410512690"},{"name":"何敏","phone":"15118075090"},{"name":"陈晓萍","phone":"13632946764"},{"name":"梁语航","phone":"17688159857"},{"name":"谭娅婷","phone":"18850253872"}]
# 新增
product.wechat.notify.default.staff.list=[{"name":"李晓琴","phone":"15019903579"}]
product.wechat.notify.qinggai.staff.list=[{"name":"陈星","phone":"19902905889"}]
# 新增
product.staff.notify.workwechat.merchantid=442008611
# 新增
product.staff.notify.workwechat.agentid=1000153
# 新增
wechat.base.path=https://scrm.glsx.com.cn/wechat-build-server/
```
###
### 说明:
* 配置要备注【新增】、【修改】、【删除】
* 如果有新的kafka的topic,那就需要额外备注【生产需要创建topic】
### 开发环境
```properties
```
### 测试环境
```properties
```
### 预发布环境
```properties
# 修改
corpid.config=[{"merchant_id":"44210895","corp_id":"wwa55ffac1225eb25e","corp_secret":"NZjgQmQzmM5N-J-dLGzKRyVs_uX26Yx95T4supZX7hQ"},{"merchant_id":"442108952","corp_id":"wwa55ffac1225eb25e","corp_secret":"DeRMcfVpCEPvwfHCBTMCU3jhFQ7Za0uZumHwDp0BbXs"},{"merchant_id":"442108951","corp_id":"wwa55ffac1225eb25e","corp_secret":"VdwP-szCSLV0DnR19GdgPBMIkeVkn9NrAKkVef_f5s0"},{"merchant_id":"44202977","corp_id":"ww047bdc0f1e76cc13","corp_secret":"jeE4LnF-RpWU6lKwMVsUSVGwBUFGoTF1Fr0Ki1RuSXc"},{"merchant_id":"442029771","corp_id":"ww047bdc0f1e76cc13","corp_secret":"dh-4h901KZYrsWB_OcmFqBA8v-u9lsrVFLlUlx26LuU"},{"merchant_id":"442029772","corp_id":"ww047bdc0f1e76cc13","corp_secret":"INH0X094LAL9plejSacYQOpp3w2XDdlptRgnzli-Ff8"},{"merchant_id":"44210954","corp_id":"ww04f00e41042e5141","corp_secret":"MzHlOvUGfa6XJIcUCqaPIEikuRn1_OFoTc675So4Udw"},{"merchant_id":"44211274","corp_id":"wwb8019f8661a4e12d","corp_secret":"Xr8Epul5UB6HTDnHQFFK7P2yeRhQU6jL-Ln_ZUXVPUI"},{"merchant_id":"44211275","corp_id":"ww2318dc9e5d23230b","corp_secret":"XBWRCvadxOhZDcB-L-FlIBElPh3tbmz1j907Izp9pcw"},{"merchant_id":"44211276","corp_id":"wx51bda2e574d24a91","corp_secret":"CDyAmcqiPMu8N_pA9Z7lwydAz50U5Q6lBVaYzSdcjIk"},{"merchant_id":"44211277","corp_id":"wwa55ffac1225eb25e","corp_secret":"euJumagbbzVaAyKik203xLCxJ7B7ljybO9HJQk4tK34"},{"merchant_id":"44211278","corp_id":"wx51bda2e574d24a91","corp_secret":"239sLm5zlN93Nv7wiFUjYGrH-5iMAp6AzUhYytVXOpU"},{"merchant_id":"44210956","corp_id":"ww04f00e41042e5141","corp_secret":"MzHlOvUGfa6XJIcUCqaPIEikuRn1_OFoTc675So4Udw"},{"merchant_id":"44210956","corp_id":"ww04f00e41042e5141","corp_secret":"PCbPiIkgDitSsojaW0cfk-EwLWkXNkpUMH1fr3JJMww"},{"merchant_id":"442008611","corp_id":"wx51bda2e574d24a91","corp_secret":"q4V8AUKwD1oQ9e3EwCYwKL5AqLIohlhAgx33sV3ddJI"}]
# 修改
base.corpid.config=[{"agent_id":"1000046","corp_id":"ww7ee69c648ae1b7e6","corp_secret":"AkBbh89YTMJLZE0xWI_ilyDRh3h9edK7F2ZtraV_hzQ"},{"agent_id":"1000136","corp_id":"wx51bda2e574d24a91","corp_secret":"CDyAmcqiPMu8N_pA9Z7lwydAz50U5Q6lBVaYzSdcjIk"},{"agent_id":"1000015","corp_id":"wwa55ffac1225eb25e","corp_secret":"tSnHQlShx10-tJuH5JaDa7Etu3sgFuA6yiZiaw6_e0Q"},{"agent_id":"1000016","corp_id":"wwa55ffac1225eb25e","corp_secret":"euJumagbbzVaAyKik203xLCxJ7B7ljybO9HJQk4tK34"},{"agent_id":"1000146","corp_id":"wx51bda2e574d24a91","corp_secret":"239sLm5zlN93Nv7wiFUjYGrH-5iMAp6AzUhYytVXOpU"},{"agent_id":"1000008","corp_id":"wwa55ffac1225eb25e","corp_secret":"NZjgQmQzmM5N-J-dLGzKRyVs_uX26Yx95T4supZX7hQ"},{"agent_id":"1000006","corp_id":"ww04f00e41042e5141","corp_secret":"PCbPiIkgDitSsojaW0cfk-EwLWkXNkpUMH1fr3JJMww"},{"agent_id":"1000153","corp_id":"wx51bda2e574d24a91","corp_secret":"q4V8AUKwD1oQ9e3EwCYwKL5AqLIohlhAgx33sV3ddJI"}]
```
### 线上环境
```properties
# 修改
corpid.config=[{"merchant_id":"44210895","corp_id":"wwa55ffac1225eb25e","corp_secret":"NZjgQmQzmM5N-J-dLGzKRyVs_uX26Yx95T4supZX7hQ"},{"merchant_id":"44202977","corp_id":"ww047bdc0f1e76cc13","corp_secret":"jeE4LnF-RpWU6lKwMVsUSVGwBUFGoTF1Fr0Ki1RuSXc"},{"merchant_id":"442029771","corp_id":"ww047bdc0f1e76cc13","corp_secret":"dh-4h901KZYrsWB_OcmFqBA8v-u9lsrVFLlUlx26LuU"},{"merchant_id":"442029772","corp_id":"ww047bdc0f1e76cc13","corp_secret":"INH0X094LAL9plejSacYQOpp3w2XDdlptRgnzli-Ff8"},{"merchant_id":"44210954","corp_id":"ww04f00e41042e5141","corp_secret":"MzHlOvUGfa6XJIcUCqaPIEikuRn1_OFoTc675So4Udw"},{"merchant_id":"44211274","corp_id":"wwb8019f8661a4e12d","corp_secret":"Xr8Epul5UB6HTDnHQFFK7P2yeRhQU6jL-Ln_ZUXVPUI"},{"merchant_id":"44213847","corp_id":"ww2318dc9e5d23230b","corp_secret":"XBWRCvadxOhZDcB-L-FlIBElPh3tbmz1j907Izp9pcw"},{"merchant_id":"44211277","corp_id":"wx51bda2e574d24a91","corp_secret":"CDyAmcqiPMu8N_pA9Z7lwydAz50U5Q6lBVaYzSdcjIk"},{"merchant_id":"44211278","corp_id":"wx51bda2e574d24a91","corp_secret":"239sLm5zlN93Nv7wiFUjYGrH-5iMAp6AzUhYytVXOpU"},{"merchant_id":"44211330","corp_id":"ww85c692b29269d427","corp_secret":"dLNIZAK9ycDJ_U6BQ-feTwaSPeUnA7hMU6o3sp2fIdY"},{"merchant_id":"44211331","corp_id":"wwb141274a5998339b","corp_secret":"9Bb0i55hjM2_N9MLoa1YGPwi-FE5P79uS1sk6_AJQS4"},{"merchant_id":"442008611","corp_id":"wx51bda2e574d24a91","corp_secret":"q4V8AUKwD1oQ9e3EwCYwKL5AqLIohlhAgx33sV3ddJI"}]
# 修改
base.corpid.config=[{"agent_id":"1000046","corp_id":"ww7ee69c648ae1b7e6","corp_secret":"AkBbh89YTMJLZE0xWI_ilyDRh3h9edK7F2ZtraV_hzQ"},{"agent_id":"1000136","corp_id":"wx51bda2e574d24a91","corp_secret":"CDyAmcqiPMu8N_pA9Z7lwydAz50U5Q6lBVaYzSdcjIk"},{"agent_id":"1000153","corp_id":"wx51bda2e574d24a91","corp_secret":"q4V8AUKwD1oQ9e3EwCYwKL5AqLIohlhAgx33sV3ddJI"}]
```
###
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!