浏览代码

wip:手机号必填修改

WH01243 3 年之前
父节点
当前提交
d4bbe3c195
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      invoice/src/service/InvoiceService.go

+ 1 - 1
invoice/src/service/InvoiceService.go

@@ -34,7 +34,7 @@ func (u *InvoiceService) InvoiceAdd(solgan *entity.Invoice, resType string, isLo
 	if isLoop == 0 {
 		solgan.Swno = strings.Replace(fmt.Sprintln(solgan.Swno+fmt.Sprintf("%06v", rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(1000000))), "\n", "", -1)
 	}
-	solgan.Phone = solgan.CustTelephone
+	solgan.CustTelephone = solgan.Phone
 	solgan.SaleTax = entity.SaleTax
 	solgan.InvType = entity.InvType
 	solgan.BillType = entity.BillType