From 99d05a503ad660ee789cfe0ba475f21ad91a1825 Mon Sep 17 00:00:00 2001 From: cjy Date: Mon, 2 Feb 2026 14:09:24 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=9C=80=E8=BF=91=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=97=B6=E9=97=B4=E7=B2=BE=E5=BA=A6=E7=B2=BE=E7=A1=AE?= =?UTF-8?q?=E5=88=B0=E5=88=86=E9=92=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/logic/contract.go | 4 ++-- internal/logic/customer.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/logic/contract.go b/internal/logic/contract.go index 7e473c9..a0ef033 100644 --- a/internal/logic/contract.go +++ b/internal/logic/contract.go @@ -444,7 +444,7 @@ func GetContractList(req *bundle.ContractListRequest) (res *bundle.ContractListR } // 格式化操作时间 if !contract.OperatorTime.IsZero() { - contractInfo.OperatorTime = contract.OperatorTime.Format("2006-01-02 15:04:05") + contractInfo.OperatorTime = contract.OperatorTime.Format("2006-01-02 15:04") } contractInfoList = append(contractInfoList, contractInfo) } @@ -505,7 +505,7 @@ func GetContractDetail(req *bundle.ContractDetailRequest) (res *bundle.ContractD // 格式化操作时间 if !contract.OperatorTime.IsZero() { - contractProto.OperatorTime = contract.OperatorTime.Format("2006-01-02 15:04:05") + contractProto.OperatorTime = contract.OperatorTime.Format("2006-01-02 15:04") } // 转换支付周期子表 diff --git a/internal/logic/customer.go b/internal/logic/customer.go index 9edc6db..12d726e 100644 --- a/internal/logic/customer.go +++ b/internal/logic/customer.go @@ -74,7 +74,7 @@ func GetCustomerList(req *bundle.CustomerListRequest) (res *bundle.CustomerListR } // 格式化操作时间 if !customer.OperatorTime.IsZero() { - customerInfo.OperatorTime = customer.OperatorTime.Format("2006-01-02 15:04:05") + customerInfo.OperatorTime = customer.OperatorTime.Format("2006-01-02 15:04") } customerInfoList = append(customerInfoList, customerInfo) } @@ -124,7 +124,7 @@ func GetCustomerDetail(req *bundle.CustomerDetailRequest) (res *bundle.CustomerD // 格式化时间字段 if !customer.OperatorTime.IsZero() { - customerProto.OperatorTime = customer.OperatorTime.Format("2006-01-02 15:04:05") + customerProto.OperatorTime = customer.OperatorTime.Format("2006-01-02 15:04") } if !customer.CreatedAt.IsZero() { customerProto.CreatedAt = customer.CreatedAt.Format("2006-01-02 15:04:05")