|
@@ -15,7 +15,6 @@ type MtjhDataController struct {
|
|
|
BaseAuthController
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// @Title 煤炭江湖数据
|
|
|
// @Description 刷新煤炭江湖数据接口
|
|
|
// @Param request body models.CoalMineDataReq true "type json string"
|
|
@@ -165,7 +164,7 @@ func (this *MtjhDataController) Mtjh() {
|
|
|
if len(py) > 0 {
|
|
|
pys = append(pys, py)
|
|
|
} else {
|
|
|
- if r != '-' && r != '(' && r != ')'{
|
|
|
+ if r != '-' && r != '(' && r != ')' {
|
|
|
pys = append(pys, []string{string(r)})
|
|
|
}
|
|
|
}
|
|
@@ -224,7 +223,7 @@ func (this *MtjhDataController) Mtjh() {
|
|
|
if len(mappingAddList) > 0 {
|
|
|
newId, err := models.AddBaseFromMtjhMappingMuti(mappingAddList)
|
|
|
if err != nil {
|
|
|
- fmt.Println("添加指标名称错误",err.Error())
|
|
|
+ fmt.Println("添加指标名称错误", err.Error())
|
|
|
} else {
|
|
|
fmt.Println("添加指标名称成功", newId)
|
|
|
}
|
|
@@ -250,7 +249,7 @@ func (this *MtjhDataController) Mtjh() {
|
|
|
if len(indexAddList) > 0 {
|
|
|
newId, err := models.AddBaseFromMtjhIndexMuti(indexAddList)
|
|
|
if err != nil {
|
|
|
- fmt.Println("添加指标名称错误",err.Error())
|
|
|
+ fmt.Println("添加指标名称错误", err.Error())
|
|
|
} else {
|
|
|
fmt.Println("添加指标名称成功", newId)
|
|
|
}
|
|
@@ -263,7 +262,6 @@ func (this *MtjhDataController) Mtjh() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// @Title 新增煤炭网指标接口
|
|
|
// @Description 新增煤炭网指标接口
|
|
|
// @Success 200 {object} models.AddEdbInfoReq
|
|
@@ -308,8 +306,8 @@ func (this *MtjhDataController) Add() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// @Title 刷新中国煤炭网指标接口
|
|
|
-// @Description 刷新中国煤炭网指标接口
|
|
|
+// @Title 刷新中国煤炭市场网指标接口
|
|
|
+// @Description 刷新中国煤炭市场网指标接口
|
|
|
// @Success 200 {object} models.RefreshEdbInfoReq
|
|
|
// @router /refresh [post]
|
|
|
func (this *MtjhDataController) Refresh() {
|