带分页的待审核的核算撤回申请列表完成

This commit is contained in:
2023-07-25 10:45:43 +08:00
parent ab44ff5cc4
commit 6fece99e00
4 changed files with 173 additions and 160 deletions

View File

@@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"strings"
"time"
"github.com/mozillazg/go-pinyin"
"github.com/samber/lo"
@@ -158,3 +159,15 @@ func NullTime2PointerString(nullTime sql.NullTime) *string {
return strPtr
}
}
//该方法用于将时间解析为字符串指针
func TimeToStringPtr(t *time.Time) *string {
if t == nil {
return nil
}
timeStr := t.Format("2006-01-02 15:04:05")
return &timeStr
}