|
@@ -3162,7 +3162,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
// 权益研选等套餐
|
|
|
- if k >= 53 && k <= 59 {
|
|
|
+ if k >= 53 && k <= 60 {
|
|
|
if v == "是" {
|
|
|
tempItem := serviceTempNameMap[titleMap[k]]
|
|
|
if tempItem == nil {
|
|
@@ -3184,12 +3184,12 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
// 套餐备注
|
|
|
- if k == 60 {
|
|
|
+ if k == 61 {
|
|
|
rowRegister.ServiceRemark = v
|
|
|
continue
|
|
|
}
|
|
|
// 开始时间/到期时间
|
|
|
- if k == 61 {
|
|
|
+ if k == 62 {
|
|
|
// 转换失败可能是因为格式为Excel日期格式, 读取出来会是一串数字, 将其转换成日期字符串再处理
|
|
|
va := cell.Value
|
|
|
if va == "" {
|
|
@@ -3213,7 +3213,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
rowRegister.StartDate = startDate
|
|
|
continue
|
|
|
}
|
|
|
- if k == 62 {
|
|
|
+ if k == 63 {
|
|
|
va := cell.Value
|
|
|
if va == "" {
|
|
|
resp.Fail(fmt.Sprintf("第%d行到期时间不可为空, 请按模板导入", i+1), c)
|
|
@@ -3236,7 +3236,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
// 合同金额
|
|
|
- if k == 63 {
|
|
|
+ if k == 64 {
|
|
|
amountStr := v
|
|
|
amount, e := strconv.ParseFloat(amountStr, 64)
|
|
|
if e != nil {
|
|
@@ -3247,7 +3247,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
// 金额单位
|
|
|
- if k == 64 {
|
|
|
+ if k == 65 {
|
|
|
rate := rateMap[v]
|
|
|
if rate <= 0 {
|
|
|
resp.Fail(fmt.Sprintf("第%d行金额单位有误, 请按模板导入", i+1), c)
|
|
@@ -3258,7 +3258,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
// FICC 套餐总金额
|
|
|
- if k == 65 {
|
|
|
+ if k == 66 {
|
|
|
amountStr := v
|
|
|
amount, _ := strconv.ParseFloat(amountStr, 64)
|
|
|
if amount > 0 {
|
|
@@ -3273,7 +3273,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
// 权益套餐总金额
|
|
|
- if k == 66 {
|
|
|
+ if k == 67 {
|
|
|
amountStr := v
|
|
|
amount, _ := strconv.ParseFloat(amountStr, 64)
|
|
|
if amount > 0 {
|
|
@@ -3288,12 +3288,12 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
// 约定付款日期
|
|
|
- if k == 67 {
|
|
|
+ if k == 68 {
|
|
|
rowRegister.AgreedPayTime = v
|
|
|
continue
|
|
|
}
|
|
|
// 签订日
|
|
|
- if k == 68 {
|
|
|
+ if k == 69 {
|
|
|
va := cell.Value
|
|
|
if va == "" {
|
|
|
continue
|
|
@@ -3315,7 +3315,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
// 合同状态
|
|
|
- if k == 69 {
|
|
|
+ if k == 70 {
|
|
|
rowRegister.ContractStatus = fms.ContractStatusNameKeyMap[v]
|
|
|
if rowRegister.ContractStatus == 0 {
|
|
|
resp.Fail(fmt.Sprintf("第%d行合同状态不匹配, 请按模板导入", i+1), c)
|
|
@@ -3324,7 +3324,7 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
// 合同编号
|
|
|
- if k == 70 {
|
|
|
+ if k == 71 {
|
|
|
rowContractCode := v
|
|
|
if rowContractCode == "" {
|
|
|
resp.Fail(fmt.Sprintf("第%d行合同编号不可为空, 请按模板导入", i+1), c)
|
|
@@ -3339,13 +3339,13 @@ func (rg *RegisterController) Import(c *gin.Context) {
|
|
|
continue
|
|
|
}
|
|
|
// 合规备注
|
|
|
- if k == 71 {
|
|
|
+ if k == 72 {
|
|
|
rowRegister.Remark = v
|
|
|
continue
|
|
|
}
|
|
|
// 开票列表
|
|
|
|
|
|
- k2 := 71
|
|
|
+ k2 := 72
|
|
|
for ir := 0; ir < invoiceMax; ir++ {
|
|
|
n := ir + 1
|
|
|
// 开票日
|