feat: dbms新增支持工单流程审批

This commit is contained in:
meilin.huang
2024-02-29 22:12:50 +08:00
parent bf75483a3c
commit f93231da61
115 changed files with 3280 additions and 553 deletions

View File

@@ -6,6 +6,14 @@ import (
"text/template"
)
// 逻辑空字符串由于gorm更新结构体只更新非零值所以使用该值最为逻辑空字符串方便更新结构体
const LogicEmptyStr = "-"
// 是否为逻辑上空字符串
func IsLogicEmpty(str string) bool {
return str == "" || str == LogicEmptyStr
}
// 可判断中文
func Len(str string) int {
return len([]rune(str))