Compare commits
	
		
			No commits in common. "ece5feb935adf9e202ef45a6753c4b96d1e8009c" and "b415537dd7da616da3d8b19904618608f3df03c0" have entirely different histories.
		
	
	
		
			ece5feb935
			...
			b415537dd7
		
	
		
| @ -138,7 +138,6 @@ func GetBundleBalanceByUserId(req *bundle.GetBundleBalanceByUserIdReq) (data mod | ||||
| 		Where("bb.user_id = ?", req.UserId). | ||||
| 		Where("bor.expiration_time > ?", time.Now()). | ||||
| 		Where("bor.deleted_at IS NULL"). | ||||
| 		Order("bb.created_at desc"). | ||||
| 		First(&data).Error | ||||
| 	if err != nil { | ||||
| 		return | ||||
|  | ||||
| @ -47,7 +47,7 @@ func BundleExtendRecordsList(req *bundle.BundleExtendRecordsListRequest) (*bundl | ||||
| 		result := &bundle.BundleExtendRecordItem{} | ||||
| 		copier.Copy(result, &m) | ||||
| 		result.CreatedAt = uint64(m.CreatedAt.UnixMilli()) | ||||
| 		if result.Type == 2 { // 自行购买的情况下操作人就是用户
 | ||||
| 		if result.Type == 2 {  // 自行购买的情况下操作人就是用户
 | ||||
| 			result.OperatorName = result.UserName | ||||
| 			result.OperatorPhoneNumber = result.UserPhoneNumber | ||||
| 		} | ||||
|  | ||||
| @ -89,13 +89,12 @@ type BundleExtensionRecords struct { | ||||
| 	ImagesAdditional            uint   `gorm:"column:images_additional;type:int(11) unsigned;comment:图文额外增加" json:"images_additional"` | ||||
| 	DataAdditional              uint   `gorm:"column:data_additional;type:int(11) unsigned;comment:数据额外增加" json:"data_additional"` | ||||
| 	AvailableDurationAdditional uint   `gorm:"column:available_duration_additional;type:int(11) unsigned;comment:可用时长增加" json:"available_duration_additional"` | ||||
| 	TimeUnit                    uint   `gorm:"column:time_unit;type:int(11) unsigned;comment:时间单位" json:"timeUnit"` | ||||
| 	Type                        int    `gorm:"column:type;type:tinyint(4);comment:类型 1:手动操作 2:自行购买" json:"type"` | ||||
| 	Remark                      string `gorm:"column:remark;type:text;comment:备注" json:"remark"` | ||||
| 	AssociatedOrderNumber       string `gorm:"column:associated_order_number;type:varchar(256);comment:关联订单号" json:"associatedOrderNumber"` | ||||
| 	OperatorId                  int    `gorm:"column:operator_id;type:int(11);comment:操作人id" json:"operator_id"` | ||||
| 	OperatorName                string `gorm:"column:operator_name;type:varchar(256)" json:"operatorName"` | ||||
| 	OperatorPhoneNumber         string `gorm:"column:operator_phone_number;type:varchar(256)" json:"operatorPhoneNumber"` | ||||
| 	TimeUnit                    uint   `gorm:"column:time_unit;type:int(11) unsigned;comment:时间单位" json:"timeUnit"` | ||||
| } | ||||
| 
 | ||||
| // TableName 表名称
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user