fix:最近更新时间精度精确到分钟

This commit is contained in:
cjy 2026-02-02 14:09:24 +08:00
parent c7ee97adcb
commit 99d05a503a
2 changed files with 4 additions and 4 deletions

View File

@ -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")
}
// 转换支付周期子表

View File

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