Browse Source

1制作记录

master
huangjiajun 6 months ago
parent
commit
a0d10e658a
3 changed files with 7 additions and 0 deletions
  1. +3
    -0
      app/admin/svc/svc_make_record.go
  2. +1
    -0
      app/db/model/order_goods_doing_flow.go
  3. +3
    -0
      app/ipad/svc/svc_order_make.go

+ 3
- 0
app/admin/svc/svc_make_record.go View File

@@ -32,6 +32,9 @@ func MarkRecord(c *gin.Context) {
if ok1 {
adminName = adminMap[v.AdminId].Name
}
if adminName == "" {
adminName = v.AdminName
}
var tmp = map[string]string{
"id": utils.IntToStr(v.Id),
"state_str": stateArr[v.State],


+ 1
- 0
app/db/model/order_goods_doing_flow.go View File

@@ -17,4 +17,5 @@ type OrderGoodsDoingFlow struct {
AdminId int `json:"admin_id" xorm:"default 0 comment('admin 的id') INT(11)"`
Sku string `json:"sku" xorm:"comment('规格数据') VARCHAR(1000)"`
GoodsTitle string `json:"goods_title" xorm:"comment('商品标题') VARCHAR(255)"`
AdminName string `json:"admin_name" xorm:"comment('') VARCHAR(255)"`
}

+ 3
- 0
app/ipad/svc/svc_order_make.go View File

@@ -158,6 +158,9 @@ func commNewMake(c *gin.Context, args map[string]string) {
GoodsTitle: orderGoods.GoodsTitle,
Sku: orderGoods.Sku,
}
var admin model.Staff
sess.Where("id=?", recordFlow.AdminId).Get(&admin)
recordFlow.AdminName = admin.Name
one, err := sess.InsertOne(recordFlow)
if one == 0 || err != nil {
sess.Rollback()


Loading…
Cancel
Save