更新sql缺漏字段,新增自定义类

This commit is contained in:
2023-01-17 17:00:34 +08:00
parent baeb818760
commit 06e3bb9bda
6 changed files with 197 additions and 184 deletions
+9
View File
@@ -0,0 +1,9 @@
package util
// IF 三元表达式
func IF(condition bool, trueValue interface{}, falseValue interface{}) interface{} {
if condition {
return trueValue
}
return falseValue
}