Documentation ¶
Index ¶
- func AddJccPurchaseOrder(m *JccPurchaseOrder, o orm.Ormer) (id int64, err error)
- func AgreePurchaseOrderById(orderid int64) error
- func CheckExistById(params JccPurchaseOrder) error
- func CheckOrder(info request.GoodsOrderInfo, orderId int) (int, error)
- func CheckReturnOrder(info request.GoodsOrderInfo, orderId int) (int, error)
- func CompletePurchaseOrderById(db orm.Ormer, orderid int64) error
- func QueryGoodsIdTotalByOrderId(orderIds string) (total int, err error)
- func QueryNewOrderId(orderIds string, page, pageSize, isPage int) (ids []int, err error)
- func QueryOrderCompanyIdByOrderId(orderId int) (companyRoomId int, err error)
- func QueryOrderIdByOrderSn(orderSn string) (int, error)
- func QueryReturnOrderIdByOrderSn(orderSn string) (int, error)
- func RejectPurchaseOrderById(orderid int64) error
- func UpdateGoodOrderTotalMoney(info request.GoodsOrderInfo, orderId int, db orm.Ormer) (int64, error)
- func UpdateLog(OrderIDs string, o orm.Ormer) error
- func UpdatePurchaseGoods(o orm.Ormer, order_id int64, goods_id int64, goodss_id int) error
- func UpdatePurchaseOrderTotleMoney(info *request.PurchaseOrderInfo, db orm.Ormer) (int64, error)
- func UpdateReturnGoodOrderTotalMoney(info request.GoodsOrderInfo, orderId int, db orm.Ormer) (int64, error)
- func UpdateReturnOrderTotleMoney(info *request.PurchaseOrderInfo, db orm.Ormer) (int64, error)
- type CheckPurchaseOrder
- type JccPurchaseGoods
- type JccPurchaseOrder
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddJccPurchaseOrder ¶
func AddJccPurchaseOrder(m *JccPurchaseOrder, o orm.Ormer) (id int64, err error)
func AgreePurchaseOrderById ¶
func CheckExistById ¶
func CheckExistById(params JccPurchaseOrder) error
func CheckOrder ¶
func CheckOrder(info request.GoodsOrderInfo, orderId int) (int, error)
func CheckReturnOrder ¶
func CheckReturnOrder(info request.GoodsOrderInfo, orderId int) (int, error)
func QueryGoodsIdTotalByOrderId ¶
通过jcc_purchase_goods查询goods_id的总数
func QueryNewOrderId ¶
去重复操作并取查询中最新的一条数据
func QueryOrderCompanyIdByOrderId ¶
查询该订单的商品所在的仓库id
func QueryReturnOrderIdByOrderSn ¶
通过订单编号查询订单id
func RejectPurchaseOrderById ¶
func UpdateGoodOrderTotalMoney ¶
func UpdateGoodOrderTotalMoney(info request.GoodsOrderInfo, orderId int, db orm.Ormer) (int64, error)
修改订单商品总价
func UpdatePurchaseGoods ¶
func UpdatePurchaseOrderTotleMoney ¶
修改订单总价
func UpdateReturnGoodOrderTotalMoney ¶
func UpdateReturnGoodOrderTotalMoney(info request.GoodsOrderInfo, orderId int, db orm.Ormer) (int64, error)
修改订单商品总价
func UpdateReturnOrderTotleMoney ¶
修改退货订单总价
Types ¶
type CheckPurchaseOrder ¶
type JccPurchaseGoods ¶
type JccPurchaseGoods struct { Id int `orm:"column(id);auto"` GoodsId int `orm:"column(goods_id)" description:"商品id"` OrderId int `orm:"column(order_id)" description:"订单id"` SupplierId int `orm:"column(supplier_id)" description:"供应商id"` BuyingPrice float64 `orm:"column(buying_price);digits(11);decimals(2)" description:"单价"` Num float64 `orm:"column(num);null;digits(11);decimals(2)" description:"数量"` UnitId int `orm:"column(unit_id)" description:"单位id"` Discount string `orm:"column(discount);size(50);null" description:"折扣"` Money float64 `orm:"column(money);null;digits(11);decimals(2)" description:"金额"` CreatedAt int `orm:"column(created_at);null" description:"创建时间"` UpdatedAt int `orm:"column(updated_at);null" description:"修改时间"` IsDel int8 `orm:"column(is_del);null" description:"是否删除"` }
func QueryPurchaseGoods ¶
func QueryPurchaseGoods(order_id int64) (list []JccPurchaseGoods, err error)
type JccPurchaseOrder ¶
type JccPurchaseOrder struct { Id int64 `orm:"column(id);auto"` BossId int `orm:"column(boss_id)" description:"用户id"` Ordersn string `orm:"column(ordersn);size(255)" description:"订单编号"` BusinessType int8 `orm:"column(business_type);null" description:"业务类型(0:默认为采购;-1为驳回;2:为异常)"` Address string `orm:"column(address);size(255);null" description:"收货地址"` Telphone string `orm:"column(telphone);size(30);null" description:"收货电话"` CompanyroomId int `orm:"column(companyroom_id);null" description:"仓库id"` OrderMoney float64 `orm:"column(order_money);null;digits(11);decimals(2)" description:"订单金额"` AffCompany int `orm:"column(aff_company);null" description:"公司id"` Status int8 `orm:"column(status);null" description:"是否提交草稿箱"` Type int8 `orm:"column(type);null" description:"审核入库('0':未审核;'1':待入库;'2':已完成)"` Approver string `orm:"column(approver);size(255)" description:"审批人"` Savetime int `orm:"column(savetime);null" description:"审核时间"` Remark string `orm:"column(remark);size(255);null" description:"备注"` CreatedAt int `orm:"column(created_at)" description:"创建时间"` UpdatedAt int `orm:"column(updated_at)" description:"修改时间"` DeletedAt int `orm:"column(deleted_at)" description:"删除时间"` IsDel int8 `orm:"column(is_del);null" description:"是否删除"` Kind string `` /* 133-byte string literal not displayed */ }
func QueryPurchaseOrderById ¶
func QueryPurchaseOrderById(orderid int64) (list JccPurchaseOrder, err error)
type T ¶
type T struct { Data []CheckPurchaseOrder Total int Last_page int }
Click to show internal directories.
Click to hide internal directories.