|
@@ -397,7 +397,7 @@ func EditBalanceExcelChart(excelInfo *excelModel.ExcelInfo, req request.AddBalan
|
|
|
}
|
|
|
chartInfo, err, errMsg, isSendEmail = editBalanceExcelChart(req)
|
|
|
if err != nil {
|
|
|
- errMsg = "新增图表失败!"
|
|
|
+ //errMsg = "新增图表失败!"
|
|
|
err = fmt.Errorf("新增图表失败!%s, %s", errMsg, err.Error())
|
|
|
return
|
|
|
}
|
|
@@ -1237,7 +1237,7 @@ func AddBalanceStaticExcel(oldExcelInfo *excelModel.ExcelInfo, excelClassifyId i
|
|
|
// 表格信息
|
|
|
timestamp := strconv.FormatInt(time.Now().UnixNano(), 10)
|
|
|
excelName := oldExcelInfo.ExcelName
|
|
|
- if pingNameFlag && versionName != "" {
|
|
|
+ if pingNameFlag && versionName != "" && parentId == 0 {
|
|
|
excelName += "(" + versionName + ")"
|
|
|
}
|
|
|
|
|
@@ -1290,7 +1290,7 @@ func AddBalanceStaticExcel(oldExcelInfo *excelModel.ExcelInfo, excelClassifyId i
|
|
|
}
|
|
|
if parentId == 0 && len(childExcelList) > 0 {
|
|
|
for _, childExcelInfo := range childExcelList {
|
|
|
- _, err, errMsg, isSendEmail = AddBalanceStaticExcel(childExcelInfo, excelClassifyId, versionName, sysUser, excelInfo.ExcelInfoId, relExcelInfoId, balanceType, []*excelModel.ExcelInfo{}, false, excelDataMap)
|
|
|
+ _, err, errMsg, isSendEmail = AddBalanceStaticExcel(childExcelInfo, excelClassifyId, versionName, sysUser, excelInfo.ExcelInfoId, relExcelInfoId, balanceType, []*excelModel.ExcelInfo{}, pingNameFlag, excelDataMap)
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|