2.从系统导出的excel数据,在外部对excel某一列进行更改时,新增的要回传到原来的地方;并对改动的地方进行覆盖。
3.销售单管理、出库管理、发货单三个接口里面展示第三方订单编号和快递单号
4.选择多个仓库时,只要选择发货单子就会报错
5.在这个/api/split-account-deduction-log/create接口里,当传参时,如果参数 total_amount 是0,则会报错 {"code":204,"data":{},"msg":"TotalAmount不能为空"} 0是金额数字,不能当空值进行判断(T)
传递参数created_by,没有往数据表里写入
6.商品销毁的同时写入日志,也能通过读取这个日志,还原销毁的商品。传出这个新增的接口
7.新增一个不需要签名认证的分帐扣钱日志列表接口,新增一个返回字段buniness_no,并对这个字段进行模糊查询。
测试接口:/open/split-account-deduction-log/list
8.增加个新接口:首先 调用 /api/sales-order/create 创建销售订单的时候会锁定库存,
现在我需要一个解锁库存的接口,传递参数是订单编号
POST /api/sales-order/unlock-inventory // 解锁销售订单库存
/api/split-account-deduction-log/update /api/sales-order/unlock-inventory 在这两个接口里不需要签名认证
/api/sales-order/unlock-inventory 在这个接口里面返回解锁的所有商品信息
/api/split-account-deduction-log/update 在这个接口里面的status也需要更改,status没有变化
58 lines
2.0 KiB
Go
58 lines
2.0 KiB
Go
package response
|
|
|
|
// DestroyLogItem 销毁日志列表项
|
|
type DestroyLogItem struct {
|
|
ID int64 `json:"id"` //用的这个字段
|
|
ProductID int64 `json:"product_id"`
|
|
Barcode string `json:"barcode"`
|
|
ProductName string `json:"product_name"`
|
|
DestroyedBy string `json:"destroyed_by"`
|
|
DestroyedAt int64 `json:"destroyed_at"`
|
|
RestoredBy string `json:"restored_by"`
|
|
RestoredAt int64 `json:"restored_at"`
|
|
Status int8 `json:"status"`
|
|
StatusText string `json:"status_text"`
|
|
CreatedAt int64 `json:"created_at"`
|
|
}
|
|
|
|
// DestroyLogListResponse 销毁日志列表响应
|
|
type DestroyLogListResponse struct {
|
|
List []DestroyLogItem `json:"list"`
|
|
Total int64 `json:"total"`
|
|
Page int `json:"page"`
|
|
PageSize int `json:"pageSize"`
|
|
}
|
|
|
|
// DestroyLogDetailResponse 销毁日志详情响应
|
|
type DestroyLogDetailResponse struct {
|
|
ID int64 `json:"id"`
|
|
ProductID int64 `json:"product_id"`
|
|
Barcode string `json:"barcode"`
|
|
ProductSnapshot string `json:"product_snapshot"`
|
|
ProductBookSnapshot string `json:"product_book_snapshot"`
|
|
InventorySnapshot string `json:"inventory_snapshot"`
|
|
InventoryDetailSnapshot string `json:"inventory_detail_snapshot"`
|
|
DestroyedBy string `json:"destroyed_by"`
|
|
DestroyedByID int64 `json:"destroyed_by_id"`
|
|
DestroyedAt int64 `json:"destroyed_at"`
|
|
RestoredBy string `json:"restored_by"`
|
|
RestoredByID int64 `json:"restored_by_id"`
|
|
RestoredAt int64 `json:"restored_at"`
|
|
Status int8 `json:"status"`
|
|
StatusText string `json:"status_text"`
|
|
CreatedAt int64 `json:"created_at"`
|
|
UpdatedAt int64 `json:"updated_at"`
|
|
}
|
|
|
|
// GetDestroyLogStatusText 获取销毁日志状态文本
|
|
func GetDestroyLogStatusText(status int8) string {
|
|
switch status {
|
|
case 0:
|
|
return "已销毁"
|
|
case 1:
|
|
return "已还原"
|
|
default:
|
|
return "未知"
|
|
}
|
|
}
|