ziwen 1 year ago
parent
commit
e4a392df49
1 changed files with 3 additions and 2 deletions
  1. 3 2
      controller/contract/register.go

+ 3 - 2
controller/contract/register.go

@@ -2797,11 +2797,12 @@ func (rg *RegisterController) Import(c *gin.Context) {
 					v := utils.TrimStr(cell.String())
 					// 客户名称
 					if k == 0 {
-						if v == "" {
+						//pool_474 客户名称保留空格
+						if cell.String() == "" {
 							resp.Fail(fmt.Sprintf("第%d行客户名称不可为空, 请按模板导入", i+1), c)
 							return
 						}
-						rowRegister.CompanyName = v
+						rowRegister.CompanyName = cell.String()
 						continue
 					}
 					// 是否新客户