You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
632 B

2 days ago
# -*- coding: utf-8 -*-
"""修正「兑底」→「兜底」笔误(CustomerProjectQueryPortImpl L47)"""
import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
p = r'd:\code\crm-backend-matt\crm-project\src\main\java\com\crm\project\port\inbound\impl\CustomerProjectQueryPortImpl.java'
txt = open(p, 'r', encoding='utf-8').read()
n = txt.count('兑底')
txt = txt.replace('兑底', '兜底')
open(p, 'w', encoding='utf-8', newline='').write(txt)
print(f'替换 {n} 处; 校验: 兑底残留={open(p, encoding="utf-8").read().count("兑底")} 兜底={open(p, encoding="utf-8").read().count("兜底")}')