소스 검색

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

ZZH-wl 2 년 전
부모
커밋
032a793a95
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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, "特别行政区")