Browse Source

feature(优化): 重庆市转拼音错误ZQ->CQ

ZZH-wl 2 years ago
parent
commit
032a793a95
1 changed files with 3 additions and 0 deletions
  1. 3 0
      opms_parent/app/service/cust/cust_customer.go

+ 3 - 0
opms_parent/app/service/cust/cust_customer.go

@@ -152,6 +152,9 @@ func (s *CustomerService) customerCode(province, industry string) (string, error
 }
 
 func (s *CustomerService) customerProvinceCode(province string) string {
+	if province == "重庆市" {
+		return "CQ"
+	}
 	province = strings.Trim(province, "市")
 	province = strings.Trim(province, "省")
 	province = strings.Trim(province, "特别行政区")