strings.ToLower(

This commit is contained in:
jiangyong27 2025-03-11 18:12:41 +08:00
parent 3cfbd8db9b
commit 0095b3a4ee
4 changed files with 5 additions and 4 deletions

View File

@ -11,7 +11,7 @@ import (
func (ac *ApprovalCheckin) From(d *qyweixin.ApproveDetail) {
value := strings.SplitN(d.GetValue("补卡"), ",", 3)
ac.SpNo = d.SpNo
ac.Username = d.GetUserid()
ac.Username = strings.ToLower(d.GetUserid())
ac.ApplyTime = goutil.TimeToDateTime(d.ApplyTime)
ac.CheckinRemark = d.GetValue("补卡事由")
ac.CheckinDate = goutil.TimeToDate(cast.ToInt64(value[0]))

View File

@ -28,7 +28,7 @@ type ApprovalPayment struct {
func (a *ApprovalPayment) From(d *qyweixin.ApproveDetail) {
a.SpNo = d.SpNo
a.Username = d.GetUserid()
a.Username = strings.ToLower(d.GetUserid())
a.ApplyTime = goutil.TimeToDateTime(d.ApplyTime)
paymentTime := cast.ToInt64(d.GetValue("付款日期"))

View File

@ -4,6 +4,7 @@ import (
"git.u8t.cn/open/gosdk/qyweixin"
"github.com/smbrave/goutil"
"github.com/spf13/cast"
"strings"
"time"
)
@ -35,7 +36,7 @@ type ApprovalRefund struct {
func (refund *ApprovalRefund) From(d *qyweixin.ApproveDetail) {
refund.SpNo = d.SpNo
refund.Username = d.GetUserid()
refund.Username = strings.ToLower(d.GetUserid())
refund.ApplyTime = goutil.TimeToDateTime(d.ApplyTime)
refund.Status = ApprovalRefundStatusCreated
refund.RefundType = d.GetValue("报销类型")

View File

@ -29,7 +29,7 @@ type ApprovalVacation struct {
func (vacation *ApprovalVacation) From(d *qyweixin.ApproveDetail) {
vacation.SpNo = d.SpNo
vacation.Username = d.GetUserid()
vacation.Username = strings.ToLower(d.GetUserid())
vacation.ApplyTime = goutil.TimeToDateTime(d.ApplyTime)
fields := strings.SplitN(d.GetValue("请假类型"), ",", 4)