Browse Source

fix:orm默认值

Roc 2 years ago
parent
commit
d606535bf6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/base_from_calculate.go

+ 1 - 1
models/base_from_calculate.go

@@ -615,7 +615,7 @@ type EdbInfoCalculateBatchEditReq struct {
 		FromTag   string `description:"指标对应标签"`
 		MoveValue int    `description:"移动的值"`
 	}
-	Calendar string `description:"公历/农历"`
+	Calendar string `description:"公历/农历" orm:"default(公历)"`
 }
 
 // CheckFormula2 校验公式是否正常(比如说除法的分母不能为0之类的,实际上就是用预设的字段数据做一次计算)