Compare commits
	
		
			5 Commits
		
	
	
		
			b91131b7cd
			...
			4ad9771a3a
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 4ad9771a3a | |||
| 681589cf4d | |||
| d4b8be90ea | |||
| 427b5ce862 | |||
| 9c7d3f1435 | 
| @ -108,6 +108,10 @@ func UpdateOrderRecordByOrderNO(orderRecord *model.BundleOrderRecords) (res *bun | ||||
| 		PaymentStatus: int(orderRecord.Status), | ||||
| 		PaymentTime:   orderRecord.PayTime, | ||||
| 	} | ||||
| 	if orderRecord.CheckoutSessionId != "" { | ||||
| 		valueAdd.CheckoutSessionId = orderRecord.CheckoutSessionId | ||||
| 		valueAdd.CheckoutSessionUrl = orderRecord.CheckoutSessionUrl | ||||
| 	} | ||||
| 	err = app.ModuleClients.BundleDB.Model(&model.BundleOrderValueAdd{}). | ||||
| 		Where("order_no = ?", orderRecord.OrderNo). | ||||
| 		Updates(valueAdd).Error | ||||
| @ -473,10 +477,12 @@ func OrderRecordsListV2(req *bundle.OrderRecordsRequestV2) (res *bundle.OrderRec | ||||
| 					CurrencyType:     int32(sub.CurrencyType), | ||||
| 					//HandlingFee:      float32(sub.HandlingFee),
 | ||||
| 					//ExchangeRate:     float32(sub.ExchangeRate),
 | ||||
| 					OrderAddCreateAt: sub.CreatedAt.Format("2006-01-02 15:04:05"), | ||||
| 					AddPayStatus:     int32(sub.PaymentStatus), | ||||
| 					Contract:         sub.SignContract, | ||||
| 					Snapshot:         sub.Snapshot, | ||||
| 					OrderAddCreateAt:  sub.CreatedAt.Format("2006-01-02 15:04:05"), | ||||
| 					AddPayStatus:      int32(sub.PaymentStatus), | ||||
| 					Contract:          sub.SignContract, | ||||
| 					Snapshot:          sub.Snapshot, | ||||
| 					CheckoutSessionId: sub.CheckoutSessionId, | ||||
| 					CustomerID:        sub.CustomerID, | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| @ -600,6 +606,7 @@ func CreateReconciliation(req *bundle.ReconciliationInfo) (res *bundle.CommonRes | ||||
| 		PayTime:          req.PayTime, | ||||
| 		PayStatus:        int(req.PayStatus), | ||||
| 		SerialNumber:     req.SerialNumber, | ||||
| 		CreationTime:     time.Now().Format("2006-01-02 15:04:05"), | ||||
| 	} | ||||
| 
 | ||||
| 	// 创建记录
 | ||||
|  | ||||
| @ -16,4 +16,5 @@ type Reconciliation struct { | ||||
| 	PayTime          string  `gorm:"column:pay_time;comment:支付渠道" json:"payTime"` | ||||
| 	PayStatus        int     `gorm:"column:pay_status;comment:支付状态" json:"payStatus"` | ||||
| 	SerialNumber     string  `gorm:"column:serial_number;comment:流水号" json:"serialNumber"` | ||||
| 	CreationTime     string  `gorm:"column:creation_time;comment:创建时间" json:"creationTime"` | ||||
| } | ||||
|  | ||||
| @ -93,7 +93,7 @@ message ReconciliationInfo{ | ||||
|   uint64 ID = 1; | ||||
|   string bundleOrderOn = 2; | ||||
|   string bundleAddOrderOn = 3; | ||||
|   string createdAT = 4; | ||||
|   string CreationTime = 4; | ||||
|   string userName = 5; | ||||
|   string userTel = 6; | ||||
|   string bundleName = 7; | ||||
| @ -196,6 +196,8 @@ message OrderAddBundleRecordInfo{ | ||||
|   int32 addPayStatus = 8; | ||||
|   string contract = 9; | ||||
|   string snapshot = 10; | ||||
|   string CheckoutSessionId = 11; | ||||
|   string CustomerID = 12; | ||||
| } | ||||
| message PackagePriceAndTimeResponse{ | ||||
|   float price = 1 [json_name = "price"]; | ||||
|  | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -7,8 +7,8 @@ import ( | ||||
| 	fmt "fmt" | ||||
| 	math "math" | ||||
| 	proto "github.com/golang/protobuf/proto" | ||||
| 	_ "google.golang.org/protobuf/types/descriptorpb" | ||||
| 	_ "github.com/mwitkow/go-proto-validators" | ||||
| 	_ "google.golang.org/protobuf/types/descriptorpb" | ||||
| 	github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" | ||||
| ) | ||||
| 
 | ||||
|  | ||||
| @ -1,7 +1,7 @@ | ||||
| // Code generated by protoc-gen-go-triple. DO NOT EDIT.
 | ||||
| // versions:
 | ||||
| // - protoc-gen-go-triple v1.0.8
 | ||||
| // - protoc             v3.20.3
 | ||||
| // - protoc             v4.24.0--rc1
 | ||||
| // source: pb/bundle.proto
 | ||||
| 
 | ||||
| package bundle | ||||
| @ -47,11 +47,11 @@ type BundleClient interface { | ||||
| 	PackagePriceAndTime(ctx context.Context, in *OrderRecord, opts ...grpc_go.CallOption) (*PackagePriceAndTimeResponse, common.ErrorWithAttachment) | ||||
| 	OrderRecordsListV2(ctx context.Context, in *OrderRecordsRequestV2, opts ...grpc_go.CallOption) (*OrderRecordsResponseV2, common.ErrorWithAttachment) | ||||
| 	OrderListByOrderNo(ctx context.Context, in *OrderInfoByOrderNoRequest, opts ...grpc_go.CallOption) (*OrderInfoByOrderNoResp, common.ErrorWithAttachment) | ||||
| 	// 增值套餐
 | ||||
| 	//增值套餐
 | ||||
| 	CreateValueAddBundle(ctx context.Context, in *CreateValueAddBundleRequest, opts ...grpc_go.CallOption) (*CreateValueAddBundleResponse, common.ErrorWithAttachment) | ||||
| 	ValueAddBundleList(ctx context.Context, in *ValueAddBundleListRequest, opts ...grpc_go.CallOption) (*ValueAddBundleListResponse, common.ErrorWithAttachment) | ||||
| 	ValueAddBundleDetail(ctx context.Context, in *ValueAddBundleDetailRequest, opts ...grpc_go.CallOption) (*ValueAddBundleDetailResponse, common.ErrorWithAttachment) | ||||
| 	// 新增值服务
 | ||||
| 	//新增值服务
 | ||||
| 	SaveValueAddService(ctx context.Context, in *ValueAddServiceLang, opts ...grpc_go.CallOption) (*SaveResponse, common.ErrorWithAttachment) | ||||
| 	ValueAddServiceList(ctx context.Context, in *ValueAddServiceListRequest, opts ...grpc_go.CallOption) (*ValueAddServiceListResponse, common.ErrorWithAttachment) | ||||
| 	ValueAddServiceDetail(ctx context.Context, in *ValueAddServiceDetailRequest, opts ...grpc_go.CallOption) (*ValueAddServiceDetailResponse, common.ErrorWithAttachment) | ||||
| @ -69,7 +69,7 @@ type BundleClient interface { | ||||
| 	GetImageWorkDetail(ctx context.Context, in *GetImageWorkDetailReq, opts ...grpc_go.CallOption) (*GetImageWorkDetailResp, common.ErrorWithAttachment) | ||||
| 	GetVedioWorkDetail(ctx context.Context, in *GetVedioWorkDetailReq, opts ...grpc_go.CallOption) (*GetVedioeWorkDetailResp, common.ErrorWithAttachment) | ||||
| 	ToBeComfirmedWorks(ctx context.Context, in *ToBeComfirmedWorksReq, opts ...grpc_go.CallOption) (*ToBeComfirmedWorksResp, common.ErrorWithAttachment) | ||||
| 	// 对账单
 | ||||
| 	//对账单
 | ||||
| 	GetReconciliationList(ctx context.Context, in *GetReconciliationListReq, opts ...grpc_go.CallOption) (*GetReconciliationListResp, common.ErrorWithAttachment) | ||||
| 	CreateReconciliation(ctx context.Context, in *ReconciliationInfo, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) | ||||
| 	UpdateReconciliation(ctx context.Context, in *ReconciliationInfo, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) | ||||
| @ -397,11 +397,11 @@ type BundleServer interface { | ||||
| 	PackagePriceAndTime(context.Context, *OrderRecord) (*PackagePriceAndTimeResponse, error) | ||||
| 	OrderRecordsListV2(context.Context, *OrderRecordsRequestV2) (*OrderRecordsResponseV2, error) | ||||
| 	OrderListByOrderNo(context.Context, *OrderInfoByOrderNoRequest) (*OrderInfoByOrderNoResp, error) | ||||
| 	// 增值套餐
 | ||||
| 	//增值套餐
 | ||||
| 	CreateValueAddBundle(context.Context, *CreateValueAddBundleRequest) (*CreateValueAddBundleResponse, error) | ||||
| 	ValueAddBundleList(context.Context, *ValueAddBundleListRequest) (*ValueAddBundleListResponse, error) | ||||
| 	ValueAddBundleDetail(context.Context, *ValueAddBundleDetailRequest) (*ValueAddBundleDetailResponse, error) | ||||
| 	// 新增值服务
 | ||||
| 	//新增值服务
 | ||||
| 	SaveValueAddService(context.Context, *ValueAddServiceLang) (*SaveResponse, error) | ||||
| 	ValueAddServiceList(context.Context, *ValueAddServiceListRequest) (*ValueAddServiceListResponse, error) | ||||
| 	ValueAddServiceDetail(context.Context, *ValueAddServiceDetailRequest) (*ValueAddServiceDetailResponse, error) | ||||
| @ -419,7 +419,7 @@ type BundleServer interface { | ||||
| 	GetImageWorkDetail(context.Context, *GetImageWorkDetailReq) (*GetImageWorkDetailResp, error) | ||||
| 	GetVedioWorkDetail(context.Context, *GetVedioWorkDetailReq) (*GetVedioeWorkDetailResp, error) | ||||
| 	ToBeComfirmedWorks(context.Context, *ToBeComfirmedWorksReq) (*ToBeComfirmedWorksResp, error) | ||||
| 	// 对账单
 | ||||
| 	//对账单
 | ||||
| 	GetReconciliationList(context.Context, *GetReconciliationListReq) (*GetReconciliationListResp, error) | ||||
| 	CreateReconciliation(context.Context, *ReconciliationInfo) (*CommonResponse, error) | ||||
| 	UpdateReconciliation(context.Context, *ReconciliationInfo) (*CommonResponse, error) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user