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")