|
@@ -3039,7 +3039,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
|
|
|
- if k >= 32 && k <= 38 {
|
|
|
+ if k >= 32 && k <= 40 {
|
|
|
if v == "是" {
|
|
|
tempItem := serviceTempNameMap[titleMap[k]]
|
|
|
if tempItem == nil {
|
|
@@ -3060,10 +3060,10 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
}
|
|
|
continue
|
|
|
}
|
|
|
- if k >= 39 && k <= 49 {
|
|
|
+ if k >= 41 && k <= 51 {
|
|
|
if v == "是" {
|
|
|
|
|
|
- if k <= 42 {
|
|
|
+ if k <= 44 {
|
|
|
|
|
|
parentName := "权益大套餐"
|
|
|
tempItem := serviceTempNameMap[titleMap[k]]
|
|
@@ -3160,7 +3160,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
|
|
|
- if k >= 50 && k <= 56 {
|
|
|
+ if k >= 52 && k <= 58 {
|
|
|
if v == "是" {
|
|
|
tempItem := serviceTempNameMap[titleMap[k]]
|
|
|
if tempItem == nil {
|
|
@@ -3182,12 +3182,12 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
|
|
|
- if k == 57 {
|
|
|
+ if k == 59 {
|
|
|
rowRegister.ServiceRemark = v
|
|
|
continue
|
|
|
}
|
|
|
|
|
|
- if k == 60 {
|
|
|
+ if k == 61 {
|
|
|
|
|
|
va := cell.Value
|
|
|
if va == "" {
|
|
@@ -3211,7 +3211,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
rowRegister.StartDate = startDate
|
|
|
continue
|
|
|
}
|
|
|
- if k == 61 {
|
|
|
+ if k == 62 {
|
|
|
va := cell.Value
|
|
|
if va == "" {
|
|
|
resp.Fail(fmt.Sprintf("第%d行到期时间不可为空, 请按模板导入", i+1), c)
|
|
@@ -3234,7 +3234,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
|
|
|
- if k == 62 {
|
|
|
+ if k == 63 {
|
|
|
amountStr := v
|
|
|
amount, e := strconv.ParseFloat(amountStr, 64)
|
|
|
if e != nil {
|
|
@@ -3245,7 +3245,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
|
|
|
- if k == 63 {
|
|
|
+ if k == 64 {
|
|
|
rate := rateMap[v]
|
|
|
if rate <= 0 {
|
|
|
resp.Fail(fmt.Sprintf("第%d行金额单位有误, 请按模板导入", i+1), c)
|
|
@@ -3256,7 +3256,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
|
|
|
- if k == 64 {
|
|
|
+ if k == 65 {
|
|
|
amountStr := v
|
|
|
amount, _ := strconv.ParseFloat(amountStr, 64)
|
|
|
if amount > 0 {
|
|
@@ -3271,7 +3271,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
|
|
|
- if k == 65 {
|
|
|
+ if k == 66 {
|
|
|
amountStr := v
|
|
|
amount, _ := strconv.ParseFloat(amountStr, 64)
|
|
|
if amount > 0 {
|
|
@@ -3286,12 +3286,12 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
|
|
|
- if k == 66 {
|
|
|
+ if k == 67 {
|
|
|
rowRegister.AgreedPayTime = v
|
|
|
continue
|
|
|
}
|
|
|
|
|
|
- if k == 67 {
|
|
|
+ if k == 68 {
|
|
|
va := cell.Value
|
|
|
if va == "" {
|
|
|
continue
|
|
@@ -3313,7 +3313,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
|
|
|
- if k == 68 {
|
|
|
+ if k == 69 {
|
|
|
rowRegister.ContractStatus = fms.ContractStatusNameKeyMap[v]
|
|
|
if rowRegister.ContractStatus == 0 {
|
|
|
resp.Fail(fmt.Sprintf("第%d行合同状态不匹配, 请按模板导入", i+1), c)
|
|
@@ -3322,7 +3322,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
|
|
|
- if k == 69 {
|
|
|
+ if k == 70 {
|
|
|
rowContractCode := v
|
|
|
if rowContractCode == "" {
|
|
|
resp.Fail(fmt.Sprintf("第%d行合同编号不可为空, 请按模板导入", i+1), c)
|
|
@@ -3337,12 +3337,13 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
|
|
|
- if k == 70 {
|
|
|
+ if k == 71 {
|
|
|
rowRegister.Remark = v
|
|
|
continue
|
|
|
}
|
|
|
|
|
|
- k2 := 70
|
|
|
+
|
|
|
+ k2 := 71
|
|
|
for ir := 0; ir < invoiceMax; ir++ {
|
|
|
n := ir + 1
|
|
|
|