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