zhangqian
2024-03-27 03f615aac799e69fabb28b383c7d82503aabb612
增加是否收货字段
2个文件已修改
4 ■■■ 已修改文件
controllers/order.go 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/outsourcing_order_delivery_details.go 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/order.go
@@ -322,6 +322,7 @@
                OutsourcingOrderDeliveryID: delivery.ID,
                OutsourcingOrderProductID:  v.OutsourcingOrderProductID,
                SendAmount:                 v.SendAmount,
                IsReceived:                 2,
            })
        }
        return models.NewOutsourcingOrderDeliveryDetailsSearch().SetOrm(db).CreateBatch(items)
models/outsourcing_order_delivery_details.go
@@ -15,7 +15,8 @@
        OutsourcingOrderDelivery   OutsourcingOrderDelivery `json:"outsourcingOrderDelivery" gorm:"foreignkey:OutsourcingOrderDeliveryID"`
        OutsourcingOrderProductID  uint                     `json:"outsourcingOrderProductID"  gorm:"comment:委外订单产品表ID"` //委外订单产品表ID
        OutsourcingOrderProduct    OutsourcingOrderProduct  `json:"outsourcingOrderProduct"  gorm:"foreignkey:OutsourcingOrderProductID"`
        SendAmount                 decimal.Decimal          `gorm:"type:decimal(18,2);comment:数量" json:"sendAmount"` //发货数量
        SendAmount                 decimal.Decimal          `gorm:"type:decimal(18,2);comment:数量" json:"sendAmount"`       //发货数量
        IsReceived                 int                      `gorm:"type:int(11);default:2;comment:是否收货" json:"isReceived"` //是否确认收货 1 确认 2未确认
    }
    OutsourcingOrderDeliveryDetailsSearch struct {
        OutsourcingOrderDeliveryDetails