|
@@ -1172,6 +1172,7 @@ func (this *CoalMineDataController) Coastal() {
|
|
|
codeMap[v.IndexName] = v.IndexCode
|
|
|
newId, err := models.AddBaseFromCoalmineMapping(v)
|
|
|
if err != nil {
|
|
|
+ utils.FileLog.Info("再次添加公司指标名称错误:", err)
|
|
|
fmt.Println("再次添加公司指标名称错误", err)
|
|
|
continue
|
|
|
} else {
|
|
@@ -1184,6 +1185,7 @@ func (this *CoalMineDataController) Coastal() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ utils.FileLog.Info("指标操作完成")
|
|
|
fmt.Println("指标操作完成")
|
|
|
|
|
|
//给indexItem中的code赋值并插入index表
|
|
@@ -1193,6 +1195,7 @@ func (this *CoalMineDataController) Coastal() {
|
|
|
newId, err := models.AddBaseFromCoalCoastalIndex(v)
|
|
|
if err != nil {
|
|
|
fmt.Println("添加数据错误", err)
|
|
|
+ utils.FileLog.Info("添加数据错误:", err)
|
|
|
} else {
|
|
|
fmt.Println("新增成功", newId)
|
|
|
}
|
|
@@ -1200,6 +1203,7 @@ func (this *CoalMineDataController) Coastal() {
|
|
|
if indexMap[v.IndexName+v.DataTime] != v.DealValue && v.DealValue != "" {
|
|
|
err = models.UpdateBaseFromCoalCoastalIndex(v)
|
|
|
if err != nil {
|
|
|
+ utils.FileLog.Info("修改数据错误错误:", err)
|
|
|
fmt.Println("修改数据错误错误", err)
|
|
|
return
|
|
|
}
|
|
@@ -1341,6 +1345,7 @@ func (this *CoalMineDataController) Inland() {
|
|
|
if err != nil {
|
|
|
parsedTime, err = time.Parse("2006/01/02", text)
|
|
|
if err != nil {
|
|
|
+ utils.FileLog.Info("解析时间字符串出错:", err)
|
|
|
fmt.Println("解析时间字符串出错:", err)
|
|
|
return
|
|
|
}
|
|
@@ -1378,6 +1383,7 @@ func (this *CoalMineDataController) Inland() {
|
|
|
codeMap[v.IndexName] = v.IndexCode
|
|
|
newId, err := models.AddBaseFromCoalmineMapping(v)
|
|
|
if err != nil {
|
|
|
+ utils.FileLog.Info("再次添加公司指标名称错误:", err)
|
|
|
fmt.Println("再次添加公司指标名称错误", err)
|
|
|
continue
|
|
|
} else {
|
|
@@ -1390,6 +1396,7 @@ func (this *CoalMineDataController) Inland() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ utils.FileLog.Info("指标操作完成:")
|
|
|
fmt.Println("指标操作完成")
|
|
|
|
|
|
//给indexItem中的code赋值并插入index表
|
|
@@ -1398,6 +1405,7 @@ func (this *CoalMineDataController) Inland() {
|
|
|
if indexMap[v.IndexName+v.DataTime] == "" && v.DealValue != "" {
|
|
|
newId, err := models.AddBaseFromCoalInlandIndex(v)
|
|
|
if err != nil {
|
|
|
+ utils.FileLog.Info("添加数据错误:", err)
|
|
|
fmt.Println("添加数据错误", err)
|
|
|
} else {
|
|
|
fmt.Println("新增成功", newId)
|
|
@@ -1406,6 +1414,7 @@ func (this *CoalMineDataController) Inland() {
|
|
|
if indexMap[v.IndexName+v.DataTime] != v.DealValue && v.DealValue != "" {
|
|
|
err = models.UpdateBaseFromCoalInlandIndex(v)
|
|
|
if err != nil {
|
|
|
+ utils.FileLog.Info("修改数据错误错误:", err)
|
|
|
fmt.Println("修改数据错误错误", err)
|
|
|
return
|
|
|
}
|