瀏覽代碼

no message

zhangchuanxing 1 月之前
父節點
當前提交
55caf53f30
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      controllers/company_apply_v2.go

+ 12 - 0
controllers/company_apply_v2.go

@@ -208,6 +208,12 @@ func (this *CompanyApplyController) ApplyServiceUpdate() {
 		}
 		var sealId int
 		if productId == 2 {
+			contractCode, err = seal.GetSealCodeRai() //权益客户合同编号格式替换
+			if err != nil {
+				br.Msg = "生成合同编码失败"
+				br.ErrMsg = "生成合同编码失败,Err:" + err.Error()
+				return
+			}
 			sealCount, err := seal.GetCountByDateAndCompanyId(req.StartDate, req.EndDate, req.CompanyId)
 			if err != nil {
 				br.Msg = "生成合同编码失败"
@@ -739,6 +745,12 @@ func (this *CompanyApplyController) ApplyTurnPositive() {
 		var sealId int
 
 		if productId == 2 {
+			contractCode, err = seal.GetSealCodeRai() //权益客户合同编号格式替换
+			if err != nil {
+				br.Msg = "生成合同编码失败"
+				br.ErrMsg = "生成合同编码失败,Err:" + err.Error()
+				return
+			}
 			sealCount, err := seal.GetCountByDateAndCompanyId(req.StartDate, req.EndDate, req.CompanyId)
 			if err != nil {
 				br.Msg = "生成合同编码失败"